Template:Infobox/StageEx: Difference between revisions

From Inkipedia, the Splatoon wiki
(Adding title override option (for the tab title as well as the infobox)
(Fixed a problem when too many tabs are added to an Infobox Gobbler by adding a ​ zero-width space)
Line 4: Line 4:
|border={{{color}}}
|border={{{color}}}
|open
|open
}}<span class="tagTab" style="display: none; padding: 2px; margin-right: 2px; cursor: default; border-width: 1px 3px 1px 3px; border-style: solid; border-radius: 4px; font-size: 12px; border-color: rgba({{{color}}}, 0.5); background-color: rgba({{{color}}}, 0.2); outline-color: rgba({{{color}}}, 0.3); ">{{#if:{{{title|}}}|{{{title}}}|{{{game}}}}}</span>
}}<span class="tagTab" style="display: none; padding: 2px; margin-right: 2px; cursor: default; border-width: 1px 3px 1px 3px; border-style: solid; border-radius: 4px; font-size: 12px; border-color: rgba({{{color}}}, 0.5); background-color: rgba({{{color}}}, 0.2); outline-color: rgba({{{color}}}, 0.3); ">{{#if:{{{title|}}}|{{{title}}}|{{{game}}}}}&#8203;</span>
{{InfoboxTitle|color={{{color}}}|{{#if:{{{title|}}}|{{{title}}}|{{{name}}}}}}}
{{InfoboxTitle|color={{{color}}}|{{#if:{{{title|}}}|{{{title}}}|{{{name}}}}}}}
[[File:{{#if:{{{image|}}}|{{{image}}}|{{#switch:{{{game|}}}
[[File:{{#if:{{{image|}}}|{{{image}}}|{{#switch:{{{game|}}}

Revision as of 17:15, 3 July 2018

Produces an infobox for a stage.

{{Infobox/Stage
|name     = Moray Towers
|game     = Splatoon
|introduced = July 11, 2015
|totalbp  = 1,760p
|spawn    = false
|hasabysshazard = true
}}
{{Infobox/Stage
|name     = Moray Towers
|game     = Splatoon 2
|introduced = Launch
|totalbp  = 2,212p
|features = [[Inkrail]]s
|spawn    = false
|hasabysshazard = true
}}

Examples