Template:Collapsible navfobox: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
Bongolium500 (talk | contribs) No edit summary |
Bongolium500 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<div class="collapsible-navfobox">{{#tag:infobox|{{#if:{{{header|}}}|{{#if:{{{headerNotOnPage|}}}|{{#ifeq:{{PAGENAME}}|{{{headerNotOnPage}}}|<header><div style="margin:3px;"><center style="{{{altHeaderStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{altHeader}}}</span><span class="mw-customtoggle-navfoboxAll-{{#vardefineecho:id|{{#expr:{{#var:id|0}}+1}}}}" title="Show/hide" style="float:right;">+</span></center></div></header>|<header><div style="margin:3px;"><center style="{{{headerStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{header}}}</span><span class="mw-customtoggle-navfoboxAll-{{#var:id}}" title="Show/hide" style="float:right;">+</span></center></div></header>}}|<header><div style="margin:3px;"><center style="{{{headerStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{header}}}</span><span class="mw-customtoggle-navfoboxAll-{{#var:id}}" title="Show/hide" style="float:right;">+</span></center></div></header>}}}} | <div class="collapsible-navfobox">{{#tag:infobox|{{#if:{{{header|}}}|{{#if:{{{headerNotOnPage|}}}|{{#ifeq:{{PAGENAME}}|{{{headerNotOnPage}}}|<header><div style="margin:3px;"><center style="{{{altHeaderStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{altHeader}}}</span><span class="mw-customtoggle-navfoboxAll-{{#vardefineecho:id|{{#expr:{{#var:id|0}}+1}}}}" title="Show/hide" style="float:right;">+</span></center></div></header>|<header><div style="margin:3px;"><center style="{{{headerStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{header}}}</span><span class="mw-customtoggle-navfoboxAll-{{#vardefineecho:id|{{#expr:{{#var:id|0}}+1}}}}" title="Show/hide" style="float:right;">+</span></center></div></header>}}|<header><div style="margin:3px;"><center style="{{{headerStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{header}}}</span><span class="mw-customtoggle-navfoboxAll-{{#vardefineecho:id|{{#expr:{{#var:id|0}}+1}}}}" title="Show/hide" style="float:right;">+</span></center></div></header>}}}} | ||
{{#fornumargs: num | {{#fornumargs: num | ||
| value | | value |
Latest revision as of 20:35, 22 May 2023
Instructions for {{Collapsible navfobox}}
{{collapsible navfobox}} is used almost identically to {{navfobox}}. The difference is that sections are collapsible. Currently, all sections are collapsible by default and there is no option to change this. Setting |collapsed= to any non-blank value will cause the navfobox to start collapsed by default, shown to the right. Instead setting |fullCollapsed= to any non-blank value will cause every section to start collapsed by default as well.