Template:Navbox: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
! style="}}{{{basestyle|}}};{{{titlestyle|}}}" colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} class="navbox-title {{#if:{{{titleclass|}}}|{{{titleclass}}}}}" {{!}} {{#if:{{#switch:{{{navbar|}}}|plain|off=1}} {{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}| {{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;"> </div>}}}}| <div style="float:left; width:6em;text-align:left;"> {{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"> {{{title}}}</span> }}<!-- | ! style="}}{{{basestyle|}}};{{{titlestyle|}}}" colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} class="navbox-title {{#if:{{{titleclass|}}}|{{{titleclass}}}}}" {{!}} {{#if:{{#switch:{{{navbar|}}}|plain|off=1}} {{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}| {{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;"> </div>}}}}| <div style="float:left; width:6em;text-align:left;"> {{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"> {{{title}}}</span> }}<!-- | ||
--- Above --- | --- Above --- | ||
-- | -->{{#if:{{{above|}}}| {{#if:{{{title|}}}|<nowiki/> | ||
{{!}}- style="height:2px;" | {{!}}- style="height:2px;" | ||
{{!}} }} | {{!}} }} | ||
Line 22: | Line 22: | ||
{{!}}-<!-- | {{!}}-<!-- | ||
-->{{#if:{{{imageleft|}}}|<nowiki/> | -->{{#if:{{{imageleft|}}}|<nowiki/> | ||
{{!}} style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" rowspan={{#expr:1{{# | {{!}} style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" rowspan={{#expr:1{{#forargs:list|key|value|{{#ifeq:{{#expr:{{#len:{{#var:key}}}}<5}}|1|{{#ifeq:{{#var:key}}|1||{{#if:{{{list{{#var:key}}|}}}|+2}}}}}}}}}} {{!}} {{{imageleft|}}} }}<!-- | ||
-->{{#if:{{{group1|}}}|<nowiki/> | -->{{#if:{{{group1|}}}|<nowiki/> | ||
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}" {{!}} {{{group1}}} | {{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}" {{!}} {{{group1}}} | ||
Line 28: | Line 28: | ||
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}" {{!}} <div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">{{{list1|}}}</div><!-- | {{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}" {{!}} <div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">{{{list1|}}}</div><!-- | ||
-->{{#if:{{{image|}}}|<nowiki/> | -->{{#if:{{{image|}}}|<nowiki/> | ||
{{!}} style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" rowspan={{#expr:1{{# | {{!}} style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" rowspan={{#expr:1{{#forargs:list|key|value|{{#ifeq:{{#expr:{{#len:{{#var:key}}}}<5}}|1|{{#ifeq:{{#var:key}}|1||{{#if:{{{list{{#var:key}}|}}}|+2}}}}}}}}}} {{!}} {{{image|}}} }} }}<!-- | ||
--- Remaining groups/lists --- | --- Remaining groups/lists --- | ||
-->{{#forargs:list|key|value|{{#ifeq:{{#expr:{{#len:{{#var:key}}}}<5}}|1|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:value}}| {{#if:{{{title|}}}{{{above|}}}{{{list{{#expr:{{#var:key}}-1}}|}}}|<nowiki/> | -->{{#forargs:list|key|value|{{#ifeq:{{#expr:{{#len:{{#var:key}}}}<5}}|1|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:value}}| {{#if:{{{title|}}}{{{above|}}}{{{list{{#expr:{{#var:key}}-1}}|}}}|<nowiki/> |
Revision as of 14:20, February 12, 2021
|
State usage
These are guidelines for the state
parameter.
- Nothing/not set - The table is collapsible and not collapsed by default.
|state=collapsed
- The table is collapsible and collapsed by default.|state=plain
- The table is not collapsible.