Difference between revisions of "Template:Navbox"
Jump to navigation
Jump to search
Nate Russell (talk | contribs) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 22: | Line 22: | ||
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!-- | -->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!-- | ||
-->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!-- | -->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!-- | ||
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}|<!-- | -->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span class="navbox-book-span" style="float:right;width:6em;"> </span>}}|<!-- | ||
-->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;"> </span>}}}}|<!-- | -->{{#ifeq:{{{state|}}}|plain||<span class="navbox-book-span" style="float:left;width:6em;"> </span>}}}}|<!-- | ||
-->{{#if:{{{name|}}}|{{Navbar|{{{name}}}|mini=1|<!-- | -->{{#if:{{{name|}}}|{{Navbar|{{{name}}}|mini=1|<!-- | ||
-->fontstyle={{{basestyle|}}};{{{titlestyle|}}};background:none transparent;border:none;}}|<!-- | -->fontstyle={{{basestyle|}}};{{{titlestyle|}}};background:none transparent;border:none;}}|<!-- | ||
--><span class="error" style="float:left;white-space:nowrap;">Error: No name provided</span>}}<!-- | --><span class="error" style="float:left;white-space:nowrap;">Error: No name provided</span>}}<!-- | ||
-->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}}}<!-- | -->{{#ifeq:{{{state|}}}|plain|<span class="navbox-book-span" style="float:right;width:6em;"> </span>}}}}<!-- | ||
--><div class="{{{titleclass|}}}" style="font-size:110%;"> | --><div class="{{{titleclass|}}}" style="font-size:110%;"> | ||
Line 288: | Line 288: | ||
|hlist vcard | |hlist vcard | ||
|vcard hlist = | |vcard hlist = | ||
|#default = {{{listclass|}}} | |#default = {{#switch:{{{listclass|}}} | ||
|plainlist | |||
|hlist | |||
|hlist hnum | |||
|hlist vcard | |||
|vcard hlist = | |||
|#default = {{#ifeq:{{{tracking|}}}|no||[[Category:Navigational boxes without horizontal lists]]}} | |||
}} | |||
}} | }} | ||
}} | }} | ||
}}}}}}< | }}}}}}<!-- | ||
{{documentation}} | -->{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{lc:{{SUBPAGENAME}}}} | ||
<!-- Add categories and interwikis to the /doc | |sandbox | ||
</noinclude> | |testcases = | ||
|#default = {{#switch:{{{liststyle|}}} | |||
|padding: 0.25em 0; line-height: 1.3em; | |||
|padding:0.25em 0; line-height:1.4em; width:auto; | |||
|padding:0.4em 0; line-height:1.4em; = [[Category:Navigational boxes with custom list spacing]] | |||
|#default = | |||
}} | |||
}}}}<includeonly>{{template other|{{#if:{{{titlestyle|}}}{{{groupstyle|}}}|[[Category:Navboxes using background colours]]}}}}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude> |
Latest revision as of 02:47, 1 February 2021
File:Template-info.png Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |