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 | {{{!}} 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|}}};" <!-- | ||
--- Title and navbar --- | --- Title and navbar --- | ||
-->{{#if:{{{title|}}}|<nowiki/> | -->{{#if:{{{title|}}}|<nowiki/> | ||
Line 48: | Line 48: | ||
== State usage == | == State usage == | ||
These are guidelines for the <code>state</code> parameter. | These are guidelines for the <code>state</code> parameter. | ||
* Nothing/not set - The table is collapsible and | * Nothing/not set - The table is collapsible and collapsed by default. | ||
* <code>|state=''' | * <code>|state='''open'''</code> - The table is collapsible and not collapsed. | ||
* <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 15:47, 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=plain
- The table is not collapsible.