Difference between revisions of "Template:Navbox/sandbox"
Jump to navigation
Jump to search
Template documentation[create]
test>CapitalR (typo fix) |
test>CapitalR (updating sandbox) |
||
| Line 1: | Line 1: | ||
| − | < | + | <!-- |
| − | + | ||
| − | + | Please do not edit without discussion first as this is a VERY complex template. | |
| + | |||
| + | -->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="navbox" cellspacing="0" <!-- | ||
-->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- | -->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- | ||
--><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!-- | --><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!-- | ||
| − | -->#default=collapsible {{#if:{{{state|}}}|{{{state|}}}|autocollapse}}}}}} | + | -->#default=collapsible {{#if:{{{state|}}}|{{{state|}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!-- |
| − | + | -->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!-- | |
-->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!-- | -->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!-- | ||
| Line 18: | Line 20: | ||
-->class="navbox-title"><!-- | -->class="navbox-title"><!-- | ||
| − | -->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|none=1}}}}|<!-- | + | -->{{#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:{{{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>}}}}|<!-- | -->{{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;"> </div>}}}}|<!-- | ||
| Line 25: | Line 28: | ||
--></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}}}<!-- | --></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;"> </div>}}}}<!-- | ||
| − | --><span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|none=100|#default=110}}%;"><!-- | + | --><span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!-- |
-->{{{title}}}</span></th></tr>}}<!-- | -->{{{title}}}</span></th></tr>}}<!-- | ||
| Line 233: | Line 236: | ||
| − | --></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup=<div>|none=|#default=</td></tr></table>}} | + | --></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!-- |
| + | |||
| + | --><noinclude> | ||
| + | |||
| + | {{pp-template|small=yes}} | ||
| + | |||
| + | {{documentation}} | ||
| + | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
| + | </noinclude> | ||
Revision as of 04:04, 5 May 2008
| This is the template sandbox page for Template:Navbox (diff). |
| Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |