Template:Navbox: Difference between revisions
From Destinypedia, the Destiny wiki
m (Text replacement - "style="([^"\n]+)" class="([^"\n]+)"" to "class="$2" style="$1"") |
No edit summary |
||
Line 9: | Line 9: | ||
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}} | {{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}} | ||
! style="border-left:2px solid #fdfdfd;width:100%;|<nowiki/> | ! style="border-left:2px solid #fdfdfd;width:100%;|<nowiki/> | ||
! 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 class="nomobile navspace-big" style="float:right;width:6em"> </div>}}| {{#ifeq:{{{state|}}}|plain||<div class="nomobile navspace-big" style="float:left;width:6em;text-align:left"> </div>}}}}| <div class="nomobile navspace-big" style="float:left;width:6em;text-align:left"> {{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div class="nomobile navspace-big" style="float:right;width:6em"> </div>|<div class="nomobile navspace-small" style="float:right;width:2.35em"> </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 class="nomobile navspace-big" style="float:right;width:6em"> </div>}}| {{#ifeq:{{{state|}}}|plain||<div class="nomobile navspace-big" style="float:left;width:6em;text-align:left"> </div>}}}}| <div class="nomobile navspace-big" style="float:left;width:6em;text-align:left"> {{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div class="nomobile navspace-big" style="float:right;width:6em"> </div>|<div class="nomobile navspace-small" style="float:right;width:2.35em"> </div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%"> {{{title}}}</span> }}<!-- | ||
--- Above --- | --- Above --- | ||
-->{{#if:{{{above|}}}| {{#if:{{{title|}}}|<nowiki/> | -->{{#if:{{{above|}}}| {{#if:{{{title|}}}|<nowiki/> | ||
Line 15: | Line 15: | ||
{{!}} }} | {{!}} }} | ||
{{!}}- | {{!}}- | ||
{{!}} class="navbox-abovebelow" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1} | {{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{above}}} }}<!-- | ||
--- First group/list and images --- | --- First group/list and images --- | ||
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<nowiki/> | -->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<nowiki/> | ||
Line 26: | Line 26: | ||
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}" {{!}} <div style="padding:{{{group1padding|{{{grouppadding|0.1em 0.25em 0}}}}}}">{{{group1}}}</div> | {{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}" {{!}} <div style="padding:{{{group1padding|{{{grouppadding|0.1em 0.25em 0}}}}}}">{{{group1}}}</div> | ||
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/> | {{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/> | ||
{{!}} colspan=2 | {{!}} colspan="2" style="}} width:100%;padding:0 !important;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}" {{!}} <div style="padding:{{{list1padding|{{{listpadding|0.1em 0.25em 0}}}}}}"> | ||
{{{list1|}}}</div><!-- | {{{list1|}}}</div><!-- | ||
-->{{#if:{{{image|}}}|<nowiki/> | -->{{#if:{{{image|}}}|<nowiki/> | ||
Line 37: | Line 37: | ||
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group{{#var:key}}style|}}}" {{!}} <div style="padding:{{{grouppadding|0.1em 0.25em 0}}}">{{{group{{#var:key}}}}}</div> | {{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group{{#var:key}}style|}}}" {{!}} <div style="padding:{{{grouppadding|0.1em 0.25em 0}}}">{{{group{{#var:key}}}}}</div> | ||
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/> | {{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/> | ||
{{!}} colspan=2 | {{!}} colspan="2" style="}} width:100%;padding:0 !important;{{{liststyle|}}};{{{evenstyle|}}};{{{list{{#var:key}}style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0.1em 0.25em 0}}}"> | ||
{{#var:value}}}}</div>}}}}}}<!-- | {{#var:value}}}}</div>}}}}}}<!-- | ||
--- Below --- | --- Below --- | ||
Line 45: | Line 45: | ||
{{!}} }} | {{!}} }} | ||
{{!}}- | {{!}}- | ||
{{!}} class="navbox-abovebelow" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1} | {{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{below}}} }} | ||
{{!}}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/> | {{!}}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/> | ||
{{!}}} }}</includeonly><noinclude> | {{!}}} }}</includeonly><noinclude> |
Revision as of 17:39, September 15, 2022
State usage
These are guidelines for the state
parameter:
|state=collapsed
- The table is collapsible and collapsed (default).|state=open
- The table is collapsible and not collapsed.|state=auto
- The table is collapsible and will collapse if multiple boxes are present.|state=plain
- The table is not collapsible.