Template:Navbox: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
No edit summary
Line 3: Line 3:
{{!}}-
{{!}}-
{{!}} style="padding:2px;" {{!}} }}
{{!}} style="padding:2px;" {{!}} }}
{{{!}} cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|#default=mw-collapsible {{#ifeq:{{{state|collapsed}}}|collapsed|mw-collapsed}}}}}} {{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};" <!--
{{{!}} cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|auto|autocollapse=mw-collapsible autocollapse|#default=mw-collapsible {{#ifeq:{{{state|collapsed}}}|collapsed|mw-collapsed}} }}}} {{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};" <!--
--- Title and navbar ---
--- Title and navbar ---
-->{{#if:{{{title|}}}|<nowiki/>
-->{{#if:{{{title|}}}|<nowiki/>
Line 50: Line 50:
* Nothing/not set - The table is collapsible and collapsed by default.
* Nothing/not set - The table is collapsible and collapsed by default.
* <code>|state='''open'''</code> - The table is collapsible and not collapsed.
* <code>|state='''open'''</code> - The table is collapsible and not collapsed.
* <code>|state='''auto'''</code> - The table is collapsible and will collapse if more than two present.
* <code>|state='''plain'''</code> - The table is not collapsible.
* <code>|state='''plain'''</code> - The table is not collapsible.


[[Category:Parent templates]]</noinclude>
[[Category:Parent templates]]</noinclude>

Revision as of 17:21, February 12, 2021

State usage

These are guidelines for the state parameter.

  • Nothing/not set - The table is collapsible and collapsed by default.
  • |state=open - The table is collapsible and not collapsed.
  • |state=auto - The table is collapsible and will collapse if more than two present.
  • |state=plain - The table is not collapsible.