Difference between revisions of "Template:Navbox"

From Industrial-Craft-Wiki
Jump to: navigation, search
(Everything seems to be working again.)
m (Protected "Template:Navbox": High traffic page: Just in case ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(3 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
Please do not edit without discussion first as this is a VERY complex template.
 
Please do not edit without discussion first as this is a VERY complex template.
  
--><includeonly>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="navbox {{{bodyclass|}}}" cellspacing="0" <!--
+
-->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="navbox {{{bodyclass|}}}" cellspacing="0" <!--
 
  -->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!--
 
  -->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!--
  
Line 10: Line 10:
 
  -->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!--
 
  -->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 22: Line 21:
 
-->{{#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|<div style="float:right;width:6em;">&nbsp;</div>}}|<!--
+
  -->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;">&nbsp;</span>}}|<!--
  -->{{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}|<!--
+
  -->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;">&nbsp;</span>}}}}|<!--
  --><div style="float:left; width:6em;text-align:left;"><!--
+
  --><span style="float:left;width:6em;text-align:left;">{{#if:{{{name|}}}|<!--
  -->{{Navbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}}<!--
+
  -->{{Navbar|{{{name}}}|mini=1|fontstyle={{{basestyle|}}};{{{titlestyle|}}};<!--
  --></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}}<!--
+
-->background:none transparent;border:none;font-size:100%;}}|<!--
 +
  --><span class="error" style="white-space:nowrap;">Error: No name provided</span>}}</span><!--
 +
-->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;">&nbsp;</span>}}}}<!--
  
 
  --><span class="{{{titleclass|}}}" style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!--
 
  --><span class="{{{titleclass|}}}" style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!--
 
  -->{{{title}}}</span></th></tr>}}<!--
 
  -->{{{title}}}</span></th></tr>}}<!--
 
  
  
Line 38: Line 38:
 
  --><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
 
  --><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
 
  -->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!--
 
  -->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!--
 
  
  
Line 72: Line 71:
  
 
--></tr>}}<!--
 
--></tr>}}<!--
 
  
  
Line 258: Line 256:
 
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!--
 
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!--
  
--></includeonly><noinclude>
+
--><noinclude>
{{/doc}}
 
  
[[Category:Templates|N]]
+
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 01:46, 31 January 2016


Template-info.png Documentation

This template is too complex to be documented, instead refer to Template:Navbox for the Wikipedia documentation of this template.

The above documentation is transcluded from Template:Navbox/doc. (edit | history)