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: | ||
{{#tag:infobox|{{#if:{{{header|}}}|{{#if:{{{headerNotOnPage|}}}|{{#ifeq:{{PAGENAME}}|{{{headerNotOnPage}}}|<header><center style="{{{altHeaderStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{altHeader}}}</span | {{#tag:infobox|{{#if:{{{header|}}}|{{#if:{{{headerNotOnPage|}}}|{{#ifeq:{{PAGENAME}}|{{{headerNotOnPage}}}|<header><center style="{{{altHeaderStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{altHeader}}}</span><span class="mw-customtoggle-navfoboxAll" title="Show/hide" style="float:right;">+</span></center></header>|<header><center style="{{{headerStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{header}}}</span><span class="mw-customtoggle-navfoboxAll" title="Show/hide" style="float:right;">+</span></center></header>}}|<header><center style="{{{headerStyle|font-weight:500;}}}"><span style="padding-top:10px;">{{{header}}}</span><span class="mw-customtoggle-navfoboxAll" title="Show/hide" style="float:right;">+</span></center></header>}}}} | ||
{{#fornumargs: num | {{#fornumargs: num | ||
| value | | value | ||
|{{#if:{{{t{{#var:num}}|}}}|<header><div class="mw-collapsible" id="mw-customcollapsible-navfoboxAll"><center style="{{{titleStyle|font-weight:500;font-size:75%;}}}">{{{t{{#var:num}}}}} | |{{#if:{{{t{{#var:num}}|}}}|<header><div class="mw-collapsible" id="mw-customcollapsible-navfoboxAll"><center style="{{{titleStyle|font-weight:500;font-size:75%;}}}">{{{t{{#var:num}}}}}<span class="mw-customtoggle-navfoboxS{{#var:num}}" title="Show/hide" style="float:right;">+</span></center></div></header>}} | ||
<navigation><div class="mw-collapsible" id="mw-customcollapsible-navfoboxAll"><div class="mw-collapsible" id="mw-customcollapsible-navfoboxS{{#var:num}}"><center style="{{{section{{#var:num}}Style|font-weight:normal;}}}">{{#var:value}}</center></div></div></navigation> | <navigation><div class="mw-collapsible" id="mw-customcollapsible-navfoboxAll"><div class="mw-collapsible" id="mw-customcollapsible-navfoboxS{{#var:num}}"><center style="{{{section{{#var:num}}Style|font-weight:normal;}}}">{{#var:value}}</center></div></div></navigation> | ||
}} | }} | ||
|theme="infobox"}}<noinclude>{{Documentation}}[[Category:Navigation templates]]</noinclude> | |theme="infobox"}}<noinclude>{{Documentation}}[[Category:Navigation templates]]</noinclude> |
Revision as of 22:04, 12 February 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.