Template:Navbox: Difference between revisions

No edit summary
m (Text replacement - "nomobile" to "nophone")
Line 9: Line 9:
{{!}} class="navbox-group {{#if:{{{groupstyle|}}}||default}}" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}}
{{!}} class="navbox-group {{#if:{{{groupstyle|}}}||default}}" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}}
! style="border-left:2px solid transparent;width:100%;|<nowiki/>
! style="border-left:2px solid transparent;width:100%;|<nowiki/>
! style="}}{{{basestyle|}}};{{{titlestyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}}" class="navbox-title {{#if:{{{titlestyle|}}}||default}}" {{!}} {{#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">&nbsp;</div>}}| {{#ifeq:{{{state|}}}|plain||<div class="nomobile navspace-big" style="float:left;width:6em;text-align:left">&nbsp;</div>}}}}| <div class="nomobile navspace-big" style="float:left;width:6em;text-align:left"> {{tnavbar|{{{name}}}|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div class="nomobile navspace-big" style="float:right;width:6em">&nbsp;</div>|<div class="nomobile navspace-small" style="float:right;width:2.35em">&nbsp;</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:{{{titlestyle|}}}||default}}" {{!}} {{#if:{{#switch:{{{navbar|}}}|plain|off=1}} {{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div class="nophone navspace-big" style="float:right;width:6em">&nbsp;</div>}}| {{#ifeq:{{{state|}}}|plain||<div class="nophone navspace-big" style="float:left;width:6em;text-align:left">&nbsp;</div>}}}}| <div class="nophone navspace-big" style="float:left;width:6em;text-align:left"> {{tnavbar|{{{name}}}|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div class="nophone navspace-big" style="float:right;width:6em">&nbsp;</div>|<div class="nophone navspace-small" style="float:right;width:2.35em">&nbsp;</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/>

Revision as of 20:03, December 16, 2024

This is the navbox builder. See {{characters}} for an example of how to create a new navbox.

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.