Template:Navbox: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
workers-resources-fandom>Abominação
(Navbox "core" by Nukapedia)
 
workers-resources-fandom>Abominação
(Replaced content with "<onlyinclude><!-- -->{{#invoke:Navbox|main}}<!-- --></onlyinclude> {{Documentation}} ")
Line 1: Line 1:
<onlyinclude><!--
<onlyinclude><!--


-->{{#ifeq:{{lc:{{{1|}}}}}|nested||<!--
-->{{#invoke:Navbox|main}}<!--
--><table cellspacing="0" cellpadding="0" class="va-navbox-border {{#switch:{{lc:{{{position}}}}}|right=va-navbox-right|left=va-navbox-left|bottom|#default=va-navbox-bottom}}" style="{{#if:{{{width|}}}|width:{{{width}}};}}"><tr><td class="va-navbox-padding"><!--
-->}}<!--
 
--><table cellspacing="0" cellpadding="0" class="va-navbox<!--
-->{{#ifeq:{{lc:{{{1|}}}}}|nested|&#032;va-navbox-nested}} <!--
-->{{#switch:{{{position|}}}|left|right=|#default={{#invoke:Navbox|collapse|{{{options|}}}}}}}"><!--
 
--><tr><!--
--><th class="va-navbox-title{{#ifeq:{{lc:{{{1|}}}}}|nested||&#032;va-navbox-maintitle}}" colspan="{{#expr:1{{#if:{{{image|}}}|+2}}{{#if:{{{imageleft|}}}|+2}}}}" style="{{{title style|}}}">{{#if:{{{editlink|}}}|<div class="va-navbox-editlink">{{navbar|{{{editlink}}}}}</div>}}<div class="va-navbox-titletext">{{{title|Title?}}}</div></th><!--
--></tr><!--
 
-->{{#if:{{{nestedA|}}}{{{nestedplainA|}}}|<!--
-->{{Navbox/aux<!--
-->|image meta style={{{style images|}}}<!--
-->|flags=alpha<!--
-->|meta colcount={{#expr:1{{#if:{{{image|}}}|+2}}{{#if:{{{imageleft|}}}|+2}}}}<!--
-->|sideimage2={{{imageleft|}}}|sideimage2 style={{{imageleft style|}}}<!--
-->}}<!--
-->{{#if:{{{nestedA|}}}|{{:{{{nestedA}}}|nested}}|{{{nestedplainA}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockA|}}}|block meta style={{{style blocks|}}}|block style={{{blockA style|}}}<!--
-->|content member style={{{style contentsA|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentA1|}}}|content1 style={{{contentA1 style|}}}<!--
-->|content2={{{contentA2|}}}|content2 style={{{contentA2 style|}}}<!--
-->|content3={{{contentA3|}}}|content3 style={{{contentA3 style|}}}<!--
-->|content4={{{contentA4|}}}|content4 style={{{contentA4 style|}}}<!--
-->|content5={{{contentA5|}}}|content5 style={{{contentA5 style|}}}<!--
-->|content6={{{contentA6|}}}|content6 style={{{contentA6 style|}}}<!--
-->|content7={{{contentA7|}}}|content7 style={{{contentA7 style|}}}<!--
-->|content8={{{contentA8|}}}|content8 style={{{contentA8 style|}}}<!--
-->|group member style={{{style groupsA|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupA1|}}}|group1 style={{{groupA1 style|}}}<!--
-->|group2={{{groupA2|}}}|group2 style={{{groupA2 style|}}}<!--
-->|group3={{{groupA3|}}}|group3 style={{{groupA3 style|}}}<!--
-->|group4={{{groupA4|}}}|group4 style={{{groupA4 style|}}}<!--
-->|group5={{{groupA5|}}}|group5 style={{{groupA5 style|}}}<!--
-->|group6={{{groupA6|}}}|group6 style={{{groupA6 style|}}}<!--
-->|group7={{{groupA7|}}}|group7 style={{{groupA7 style|}}}<!--
-->|group8={{{groupA8|}}}|group8 style={{{groupA8 style|}}}<!--
-->|header={{{headerA|}}}|header meta style={{{style headers|}}}|header style={{{headerA style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageA|}}}|image1 style={{{imageA style|}}}<!--
-->|image2={{{imageleftA|}}}|image2 style={{{imageleftA style|}}}<!--
-->|member style={{{styleA|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsA|}}}<!--
-->|flags=alpha<!--
-->|meta colcount={{#expr:1{{#if:{{{image|}}}|+2}}{{#if:{{{imageleft|}}}|+2}}}}<!--
-->|sideimage2={{{imageleft|}}}|sideimage2 style={{{imageleft style|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedB|}}}{{{nestedplainB|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedB|}}}|{{:{{{nestedB}}}|nested}}|{{{nestedplainB}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockB|}}}|block meta style={{{style blocks|}}}|block style={{{blockB style|}}}<!--
-->|content member style={{{style contentsB|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentB1|}}}|content1 style={{{contentB1 style|}}}<!--
-->|content2={{{contentB2|}}}|content2 style={{{contentB2 style|}}}<!--
-->|content3={{{contentB3|}}}|content3 style={{{contentB3 style|}}}<!--
-->|content4={{{contentB4|}}}|content4 style={{{contentB4 style|}}}<!--
-->|content5={{{contentB5|}}}|content5 style={{{contentB5 style|}}}<!--
-->|content6={{{contentB6|}}}|content6 style={{{contentB6 style|}}}<!--
-->|content7={{{contentB7|}}}|content7 style={{{contentB7 style|}}}<!--
-->|content8={{{contentB8|}}}|content8 style={{{contentB8 style|}}}<!--
-->|group member style={{{style groupsB|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupB1|}}}|group1 style={{{groupB1 style|}}}<!--
-->|group2={{{groupB2|}}}|group2 style={{{groupB2 style|}}}<!--
-->|group3={{{groupB3|}}}|group3 style={{{groupB3 style|}}}<!--
-->|group4={{{groupB4|}}}|group4 style={{{groupB4 style|}}}<!--
-->|group5={{{groupB5|}}}|group5 style={{{groupB5 style|}}}<!--
-->|group6={{{groupB6|}}}|group6 style={{{groupB6 style|}}}<!--
-->|group7={{{groupB7|}}}|group7 style={{{groupB7 style|}}}<!--
-->|group8={{{groupB8|}}}|group8 style={{{groupB8 style|}}}<!--
-->|header={{{headerB|}}}|header meta style={{{style headers|}}}|header style={{{headerB style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageB|}}}|image1 style={{{imageB style|}}}<!--
-->|image2={{{imageleftB|}}}|image2 style={{{imageleftB style|}}}<!--
-->|member style={{{styleB|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsB|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedC|}}}{{{nestedplainC|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedC|}}}|{{:{{{nestedC}}}|nested}}|{{{nestedplainC}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockC|}}}|block meta style={{{style blocks|}}}|block style={{{blockC style|}}}<!--
-->|content member style={{{style contentsC|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentC1|}}}|content1 style={{{contentC1 style|}}}<!--
-->|content2={{{contentC2|}}}|content2 style={{{contentC2 style|}}}<!--
-->|content3={{{contentC3|}}}|content3 style={{{contentC3 style|}}}<!--
-->|content4={{{contentC4|}}}|content4 style={{{contentC4 style|}}}<!--
-->|content5={{{contentC5|}}}|content5 style={{{contentC5 style|}}}<!--
-->|content6={{{contentC6|}}}|content6 style={{{contentC6 style|}}}<!--
-->|content7={{{contentC7|}}}|content7 style={{{contentC7 style|}}}<!--
-->|content8={{{contentC8|}}}|content8 style={{{contentC8 style|}}}<!--
-->|group member style={{{style groupsC|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupC1|}}}|group1 style={{{groupC1 style|}}}<!--
-->|group2={{{groupC2|}}}|group2 style={{{groupC2 style|}}}<!--
-->|group3={{{groupC3|}}}|group3 style={{{groupC3 style|}}}<!--
-->|group4={{{groupC4|}}}|group4 style={{{groupC4 style|}}}<!--
-->|group5={{{groupC5|}}}|group5 style={{{groupC5 style|}}}<!--
-->|group6={{{groupC6|}}}|group6 style={{{groupC6 style|}}}<!--
-->|group7={{{groupC7|}}}|group7 style={{{groupC7 style|}}}<!--
-->|group8={{{groupC8|}}}|group8 style={{{groupC8 style|}}}<!--
-->|header={{{headerC|}}}|header meta style={{{style headers|}}}|header style={{{headerC style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageC|}}}|image1 style={{{imageC style|}}}<!--
-->|image2={{{imageleftC|}}}|image2 style={{{imageleftC style|}}}<!--
-->|member style={{{styleC|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsC|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedD|}}}{{{nestedplainD|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedD|}}}|{{:{{{nestedD}}}|nested}}|{{{nestedplainD}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockD|}}}|block meta style={{{style blocks|}}}|block style={{{blockD style|}}}<!--
-->|content member style={{{style contentsD|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentD1|}}}|content1 style={{{contentD1 style|}}}<!--
-->|content2={{{contentD2|}}}|content2 style={{{contentD2 style|}}}<!--
-->|content3={{{contentD3|}}}|content3 style={{{contentD3 style|}}}<!--
-->|content4={{{contentD4|}}}|content4 style={{{contentD4 style|}}}<!--
-->|content5={{{contentD5|}}}|content5 style={{{contentD5 style|}}}<!--
-->|content6={{{contentD6|}}}|content6 style={{{contentD6 style|}}}<!--
-->|content7={{{contentD7|}}}|content7 style={{{contentD7 style|}}}<!--
-->|content8={{{contentD8|}}}|content8 style={{{contentD8 style|}}}<!--
-->|group member style={{{style groupsD|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupD1|}}}|group1 style={{{groupD1 style|}}}<!--
-->|group2={{{groupD2|}}}|group2 style={{{groupD2 style|}}}<!--
-->|group3={{{groupD3|}}}|group3 style={{{groupD3 style|}}}<!--
-->|group4={{{groupD4|}}}|group4 style={{{groupD4 style|}}}<!--
-->|group5={{{groupD5|}}}|group5 style={{{groupD5 style|}}}<!--
-->|group6={{{groupD6|}}}|group6 style={{{groupD6 style|}}}<!--
-->|group7={{{groupD7|}}}|group7 style={{{groupD7 style|}}}<!--
-->|group8={{{groupD8|}}}|group8 style={{{groupD8 style|}}}<!--
-->|header={{{headerD|}}}|header meta style={{{style headers|}}}|header style={{{headerD style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageD|}}}|image1 style={{{imageD style|}}}<!--
-->|image2={{{imageleftD|}}}|image2 style={{{imageleftD style|}}}<!--
-->|member style={{{styleD|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsD|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedE|}}}{{{nestedplainE|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedE|}}}|{{:{{{nestedE}}}|nested}}|{{{nestedplainE}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockE|}}}|block meta style={{{style blocks|}}}|block style={{{blockE style|}}}<!--
-->|content member style={{{style contentsE|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentE1|}}}|content1 style={{{contentE1 style|}}}<!--
-->|content2={{{contentE2|}}}|content2 style={{{contentE2 style|}}}<!--
-->|content3={{{contentE3|}}}|content3 style={{{contentE3 style|}}}<!--
-->|content4={{{contentE4|}}}|content4 style={{{contentE4 style|}}}<!--
-->|content5={{{contentE5|}}}|content5 style={{{contentE5 style|}}}<!--
-->|content6={{{contentE6|}}}|content6 style={{{contentE6 style|}}}<!--
-->|content7={{{contentE7|}}}|content7 style={{{contentE7 style|}}}<!--
-->|content8={{{contentE8|}}}|content8 style={{{contentE8 style|}}}<!--
-->|group member style={{{style groupsE|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupE1|}}}|group1 style={{{groupE1 style|}}}<!--
-->|group2={{{groupE2|}}}|group2 style={{{groupE2 style|}}}<!--
-->|group3={{{groupE3|}}}|group3 style={{{groupE3 style|}}}<!--
-->|group4={{{groupE4|}}}|group4 style={{{groupE4 style|}}}<!--
-->|group5={{{groupE5|}}}|group5 style={{{groupE5 style|}}}<!--
-->|group6={{{groupE6|}}}|group6 style={{{groupE6 style|}}}<!--
-->|group7={{{groupE7|}}}|group7 style={{{groupE7 style|}}}<!--
-->|group8={{{groupE8|}}}|group8 style={{{groupE8 style|}}}<!--
-->|header={{{headerE|}}}|header meta style={{{style headers|}}}|header style={{{headerE style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageE|}}}|image1 style={{{imageE style|}}}<!--
-->|image2={{{imageleftE|}}}|image2 style={{{imageleftE style|}}}<!--
-->|member style={{{styleE|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsE|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedF|}}}{{{nestedplainF|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedF|}}}|{{:{{{nestedF}}}|nested}}|{{{nestedplainF}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockF|}}}|block meta style={{{style blocks|}}}|block style={{{blockF style|}}}<!--
-->|content member style={{{style contentsF|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentF1|}}}|content1 style={{{contentF1 style|}}}<!--
-->|content2={{{contentF2|}}}|content2 style={{{contentF2 style|}}}<!--
-->|content3={{{contentF3|}}}|content3 style={{{contentF3 style|}}}<!--
-->|content4={{{contentF4|}}}|content4 style={{{contentF4 style|}}}<!--
-->|content5={{{contentF5|}}}|content5 style={{{contentF5 style|}}}<!--
-->|content6={{{contentF6|}}}|content6 style={{{contentF6 style|}}}<!--
-->|content7={{{contentF7|}}}|content7 style={{{contentF7 style|}}}<!--
-->|content8={{{contentF8|}}}|content8 style={{{contentF8 style|}}}<!--
-->|group member style={{{style groupsF|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupF1|}}}|group1 style={{{groupF1 style|}}}<!--
-->|group2={{{groupF2|}}}|group2 style={{{groupF2 style|}}}<!--
-->|group3={{{groupF3|}}}|group3 style={{{groupF3 style|}}}<!--
-->|group4={{{groupF4|}}}|group4 style={{{groupF4 style|}}}<!--
-->|group5={{{groupF5|}}}|group5 style={{{groupF5 style|}}}<!--
-->|group6={{{groupF6|}}}|group6 style={{{groupF6 style|}}}<!--
-->|group7={{{groupF7|}}}|group7 style={{{groupF7 style|}}}<!--
-->|group8={{{groupF8|}}}|group8 style={{{groupF8 style|}}}<!--
-->|header={{{headerF|}}}|header meta style={{{style headers|}}}|header style={{{headerF style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageF|}}}|image1 style={{{imageF style|}}}<!--
-->|image2={{{imageleftF|}}}|image2 style={{{imageleftF style|}}}<!--
-->|member style={{{styleF|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsF|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedG|}}}{{{nestedplainG|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedG|}}}|{{:{{{nestedG}}}|nested}}|{{{nestedplainG}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockG|}}}|block meta style={{{style blocks|}}}|block style={{{blockG style|}}}<!--
-->|content member style={{{style contentsG|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentG1|}}}|content1 style={{{contentG1 style|}}}<!--
-->|content2={{{contentG2|}}}|content2 style={{{contentG2 style|}}}<!--
-->|content3={{{contentG3|}}}|content3 style={{{contentG3 style|}}}<!--
-->|content4={{{contentG4|}}}|content4 style={{{contentG4 style|}}}<!--
-->|content5={{{contentG5|}}}|content5 style={{{contentG5 style|}}}<!--
-->|content6={{{contentG6|}}}|content6 style={{{contentG6 style|}}}<!--
-->|content7={{{contentG7|}}}|content7 style={{{contentG7 style|}}}<!--
-->|content8={{{contentG8|}}}|content8 style={{{contentG8 style|}}}<!--
-->|group member style={{{style groupsG|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupG1|}}}|group1 style={{{groupG1 style|}}}<!--
-->|group2={{{groupG2|}}}|group2 style={{{groupG2 style|}}}<!--
-->|group3={{{groupG3|}}}|group3 style={{{groupG3 style|}}}<!--
-->|group4={{{groupG4|}}}|group4 style={{{groupG4 style|}}}<!--
-->|group5={{{groupG5|}}}|group5 style={{{groupG5 style|}}}<!--
-->|group6={{{groupG6|}}}|group6 style={{{groupG6 style|}}}<!--
-->|group7={{{groupG7|}}}|group7 style={{{groupG7 style|}}}<!--
-->|group8={{{groupG8|}}}|group8 style={{{groupG8 style|}}}<!--
-->|header={{{headerG|}}}|header meta style={{{style headers|}}}|header style={{{headerG style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageG|}}}|image1 style={{{imageG style|}}}<!--
-->|image2={{{imageleftG|}}}|image2 style={{{imageleftG style|}}}<!--
-->|member style={{{styleG|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsG|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedH|}}}{{{nestedplainH|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedH|}}}|{{:{{{nestedH}}}|nested}}|{{{nestedplainH}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockH|}}}|block meta style={{{style blocks|}}}|block style={{{blockH style|}}}<!--
-->|content member style={{{style contentsH|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentH1|}}}|content1 style={{{contentH1 style|}}}<!--
-->|content2={{{contentH2|}}}|content2 style={{{contentH2 style|}}}<!--
-->|content3={{{contentH3|}}}|content3 style={{{contentH3 style|}}}<!--
-->|content4={{{contentH4|}}}|content4 style={{{contentH4 style|}}}<!--
-->|content5={{{contentH5|}}}|content5 style={{{contentH5 style|}}}<!--
-->|content6={{{contentH6|}}}|content6 style={{{contentH6 style|}}}<!--
-->|content7={{{contentH7|}}}|content7 style={{{contentH7 style|}}}<!--
-->|content8={{{contentH8|}}}|content8 style={{{contentH8 style|}}}<!--
-->|group member style={{{style groupsH|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupH1|}}}|group1 style={{{groupH1 style|}}}<!--
-->|group2={{{groupH2|}}}|group2 style={{{groupH2 style|}}}<!--
-->|group3={{{groupH3|}}}|group3 style={{{groupH3 style|}}}<!--
-->|group4={{{groupH4|}}}|group4 style={{{groupH4 style|}}}<!--
-->|group5={{{groupH5|}}}|group5 style={{{groupH5 style|}}}<!--
-->|group6={{{groupH6|}}}|group6 style={{{groupH6 style|}}}<!--
-->|group7={{{groupH7|}}}|group7 style={{{groupH7 style|}}}<!--
-->|group8={{{groupH8|}}}|group8 style={{{groupH8 style|}}}<!--
-->|header={{{headerH|}}}|header meta style={{{style headers|}}}|header style={{{headerH style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageH|}}}|image1 style={{{imageH style|}}}<!--
-->|image2={{{imageleftH|}}}|image2 style={{{imageleftH style|}}}<!--
-->|member style={{{styleH|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsH|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedI|}}}{{{nestedplainI|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedI|}}}|{{:{{{nestedI}}}|nested}}|{{{nestedplainI}}}}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockI|}}}|block meta style={{{style blocks|}}}|block style={{{blockI style|}}}<!--
-->|content member style={{{style contentsI|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentI1|}}}|content1 style={{{contentI1 style|}}}<!--
-->|content2={{{contentI2|}}}|content2 style={{{contentI2 style|}}}<!--
-->|content3={{{contentI3|}}}|content3 style={{{contentI3 style|}}}<!--
-->|content4={{{contentI4|}}}|content4 style={{{contentI4 style|}}}<!--
-->|content5={{{contentI5|}}}|content5 style={{{contentI5 style|}}}<!--
-->|content6={{{contentI6|}}}|content6 style={{{contentI6 style|}}}<!--
-->|content7={{{contentI7|}}}|content7 style={{{contentI7 style|}}}<!--
-->|content8={{{contentI8|}}}|content8 style={{{contentI8 style|}}}<!--
-->|group member style={{{style groupsI|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupI1|}}}|group1 style={{{groupI1 style|}}}<!--
-->|group2={{{groupI2|}}}|group2 style={{{groupI2 style|}}}<!--
-->|group3={{{groupI3|}}}|group3 style={{{groupI3 style|}}}<!--
-->|group4={{{groupI4|}}}|group4 style={{{groupI4 style|}}}<!--
-->|group5={{{groupI5|}}}|group5 style={{{groupI5 style|}}}<!--
-->|group6={{{groupI6|}}}|group6 style={{{groupI6 style|}}}<!--
-->|group7={{{groupI7|}}}|group7 style={{{groupI7 style|}}}<!--
-->|group8={{{groupI8|}}}|group8 style={{{groupI8 style|}}}<!--
-->|header={{{headerI|}}}|header meta style={{{style headers|}}}|header style={{{headerI style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageI|}}}|image1 style={{{imageI style|}}}<!--
-->|image2={{{imageleftI|}}}|image2 style={{{imageleftI style|}}}<!--
-->|member style={{{styleI|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsI|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{nestedJ|}}}{{{nestedplainJ|}}}|<!--
--><div class="va-navbox-space-v"></div><!--
-->{{#if:{{{nestedJ|}}}|{{:{{{nestedJ}}}|nested}}|{{{nestedplainJ}}}}}<!--
-->{{Navbox/aux<!--
-->|image meta style={{{style images|}}}<!--
-->|flags=omega<!--
-->|meta colcount={{#expr:1{{#if:{{{image|}}}|+2}}{{#if:{{{imageleft|}}}|+2}}}}<!--
-->|sideimage1={{{image|}}}|sideimage1 style={{{image style|}}}<!--
-->}}<!--
-->|<!--
-->{{Navbox/aux<!--
-->|block={{{blockJ|}}}|block meta style={{{style blocks|}}}|block style={{{blockJ style|}}}<!--
-->|content member style={{{style contentsJ|}}}|content meta style={{{style contents|}}}<!--
-->|content1={{{contentJ1|}}}|content1 style={{{contentJ1 style|}}}<!--
-->|content2={{{contentJ2|}}}|content2 style={{{contentJ2 style|}}}<!--
-->|content3={{{contentJ3|}}}|content3 style={{{contentJ3 style|}}}<!--
-->|content4={{{contentJ4|}}}|content4 style={{{contentJ4 style|}}}<!--
-->|content5={{{contentJ5|}}}|content5 style={{{contentJ5 style|}}}<!--
-->|content6={{{contentJ6|}}}|content6 style={{{contentJ6 style|}}}<!--
-->|content7={{{contentJ7|}}}|content7 style={{{contentJ7 style|}}}<!--
-->|content8={{{contentJ8|}}}|content8 style={{{contentJ8 style|}}}<!--
-->|group member style={{{style groupsJ|}}}|group meta style={{{style groups|}}}<!--
-->|group1={{{groupJ1|}}}|group1 style={{{groupJ1 style|}}}<!--
-->|group2={{{groupJ2|}}}|group2 style={{{groupJ2 style|}}}<!--
-->|group3={{{groupJ3|}}}|group3 style={{{groupJ3 style|}}}<!--
-->|group4={{{groupJ4|}}}|group4 style={{{groupJ4 style|}}}<!--
-->|group5={{{groupJ5|}}}|group5 style={{{groupJ5 style|}}}<!--
-->|group6={{{groupJ6|}}}|group6 style={{{groupJ6 style|}}}<!--
-->|group7={{{groupJ7|}}}|group7 style={{{groupJ7 style|}}}<!--
-->|group8={{{groupJ8|}}}|group8 style={{{groupJ8 style|}}}<!--
-->|header={{{headerJ|}}}|header meta style={{{style headers|}}}|header style={{{headerJ style|}}}<!--
-->|image meta style={{{style images|}}}<!--
-->|image1={{{imageJ|}}}|image1 style={{{imageJ style|}}}<!--
-->|image2={{{imageleftJ|}}}|image2 style={{{imageleftJ style|}}}<!--
-->|member style={{{styleJ|}}}|meta style={{{style|}}}<!--
-->|meta options={{{options|}}}|options={{{optionsJ|}}}<!--
-->|flags=omega<!--
-->|meta colcount={{#expr:1{{#if:{{{image|}}}|+2}}{{#if:{{{imageleft|}}}|+2}}}}<!--
-->|sideimage1={{{image|}}}|sideimage1 style={{{image style|}}}<!--
-->}}<!--
-->}}<!--
 
-->{{#if:{{{footer|}}}|<!--
--><tr class="va-navbox-space-v"><td colspan="{{#expr:1{{#if:{{{image|}}}|+2}}{{#if:{{{imageleft|}}}|+2}}}}"></td></tr><!--
--><tr><!--
--><td class="va-navbox-footer" colspan="{{#expr:1{{#if:{{{image|}}}|+2}}{{#if:{{{imageleft|}}}|+2}}}}" style="{{#replace:{{#if:{{{style|}}}|{{{style|}}};}}{{{footer style|}}}|;;|;}}">{{{footer}}}</td><!--
--></tr><!--
-->}}<!--
 
--></table><!--
 
-->{{#ifeq:{{lc:{{{1|}}}}}|nested||<!--
--></td></tr></table><!--
-->}}<!--


--></onlyinclude>
--></onlyinclude>
{{Documentation}}
[[Category:Navbox templates| ]]
[[Category:Navbox templates| ]]

Revision as of 04:04, 10 January 2023

Template documentation (for the template shown above, sometimes hidden or invisible)

Lua error in package.lua at line 80: module 'Dev:Arguments' not found.

This template is used to build navboxes. It is highly recommended to use this template only for building other templates, instead of using it on pages directly.

CSS styles are defined at:

Features

  • Supports up to unlimited rows
    • Hides rows without a value
  • Supports image and left image
  • Supports subheaders
    • Subheaders are automatically hidden if they have no rows under them (can be overridden per header)
    • Subheaders can be collapsed (configurable per header or globally)
  • Fully styled through CSS by default (see Common.css)
  • Supports custom styles and classes.
  • Alternating row styles (can be disabled)
  • Can be run from wikicode (#invoke) or directly in a Module via "require"

Parameters

Here is a list of all supported parameters.

  • (n) should be replaced by any valid number.
  • Underlined values are defaults.

All parameters are optional.

Main Parameters

template/name
Name of the template, used for VDE (view/discuss/edit) links. Will be passed directly to {{vdelinks}}
border/unnamed parameter 1
Can be used to control the border of the navbox. Currently only supports the value "child", making the navbox a child navbox of another one.
title
The main title of the box.
above
Used to add a row that appears above all image, header and data rows.
header(n)
Used to add subheaders to the navbox. Headers are hidden by default unless there are any list rows under them.
show(n) = yes/no
Use this parameter to force show/hide a section. The number should correspond to the number of the header that started the section.
showall = yes
Use this to force show all sections. Can be overridden with individual show(n) parameters.
group(n)
Contains the group label for a row. If not present, the corresponding list will expand to fill the gap.
list(n)
The actual list for the row.
below
Used to add a row that appears below all header and data rows.

Images

The navbox supports 2 images (one left and one right). Both images support full syntax ([[File:Name.ext|...]]) and filename (File:Name.ext). In case of the former, the respective width and link parameters will be ignored.

image
Specify an image for the right side
imagewidth = 100px
If you didn't use the full syntax, use this to specify the width of the image
imagelink
You can use this to link the image to a certain page.
imageleft
Specify an image for the left side
imageleftwidth = 100px
Width for the left image
imageleftlink
Link for the left image

Style Parameters

alternaterows = yes/no/swap
You can optionally add this to disable alternating row styles. If set to swap, the odd rows will be the alternate rows; otherwise the even rows are.
bodystyle
bodyclass
Classes and styles to add to the navbox itself
titlestyle
titleclass
Classes and styles to add to the title
abovestyle
aboveclass
Classes and styles to add to the above row
imagestyle
imageclass
Classes and styles to add to the image
imageleftstyle
imageleftclass
Classes and styles to add to the left image
rowclass
Classes to add to all list rows
altrowclass = alt
Classes to add to list rows with alternating styles
groupstyle
groupclass
Classes and styles to add to the groups
altgroupstyle
altgroupclass
Classes and styles to add to the groups in alternate rows (if enabled)
liststyle
listclass
Classes and styles to add to the lists
altliststyle
altlistclass
Classes and styles to add to the lists in alternate rows (if enabled)
belowstyle
belowclass
Classes and styles to add to the below row

Collapsing

The Navbox supports two forms of collapsing: for the navbox itself and for individual subsections.

state = collapsed/expanded/plain
This parameter controls the collapsing of the navbox itself. If set to collapsed, the box will be collapsed by default. If set to expanded, the box can be collapsed, but will be open by default. If set to plain, the box can not be collapsed and no Show/Hide link will show.
state(n) = collapsed/expanded/plain
Used to control the collapsing of a single section. A section goes from one header to the next. The number should thus correspond to the one of the header that is above the section to collapse. Options are the same as above.
defaultstate = collapsed/expanded/plain
Sets the default collapse state for the subsections only. Can still be overridden by individual state(n) parameters.

Examples

Simple Example

{{Navbox
 |title      = A simple navbox
 |template   = Navbox/doc <!-- Used for V D E links -->
 |above      = Text to appear on top

 |group1     = First Group
 |list1      = 
* This
* Is
* How
* You
* Make
* Lists
 |group2     = Lists support subitems 
 |list2      =
* Item 1
** Item 1.1
** Item 1.2
* Item 2
** Item 2.1
 |list3      = List without group (centered)
 |group4     = Group without list (not shown)
 |group99999 = 99999th Group
 |list99999  = Any number works

 |below      = Text to appear on bottom
}}

Headers Example

{{Navbox
 |title   = Navbox with subheaders

 |group1  = First Group
 |list1   = This list is before the first header

 |header2 = Header for section 2
 |group2  = Second Group
 |list2   = Second List (part of section 2)
 |group3  = Third Group
 |list3   = Third List (also part of section 2)

 |header4 = Header with no lists (Not shown)

 |header5 = Another Header
 |list5   = Another list (part of section 5)

 |header6 = Another header with no lists (force shown)
 |show6   = yes

 |header7 = A header with a list that is force hidden
 |list7   = Not shown either
 |show7   = no
}}

Images Example

{{Navbox
 |title      = Navbox with images

 |group1     = First Group
 |list1      = First List

 |header2    = Some Header
 |list2      = Some List
 
 |image      = File:Wiki.png
 |imagewidth = 60px
 |imagelink  = w:
 
 |imageleft  = [[File:Example.jpg|50px]]
 
 |below      = Below goes below images too
}}

Collapsing Example

{{Navbox
 |title   = Navbox with collapsing
 |state   = collapsed
 
 |header1 = First Header (Plain)
 |group1  = First Group
 |list1   = This list is before the first header
 |group2  = Second Group
 |list2   = Second List
 
 |header3 = Second Header (Expanded)
 |state3  = expanded
 |group3  = Third Group
 |list3   = Third List
 |group4  = Fourth Group
 |list4   = Fourth List
 
 |header5 = Third Header (Collapsed)
 |state5  = collapsed
 |group5  = Fifth Group
 |list5   = Fifth List
 |group6  = Sixth Group
 |list6   = Sixth List
}}

Custom Styles Example

Example using wikipedia style colors. The values represent CSS classes.

Note: It is recommended to use the classes over the styles if possible. To view/edit the default styles, see MediaWiki:Common.css

{{Navbox
 |title        = .navbox-title
 |above        = .navbox-above

 |header1      = .navbox-header
 |group1       = .navbox-row-group
 |list1        = .navbox-row-list
 |group2       = .alt .navbox-row-group
 |list2        = .alt .navbox-row-list
 |list3        = .navbox-list.no-group

 |below        = .navbox-below
 
 |bodystyle    = background: #fdfdfd; color: black; border: 1px solid #aaa; padding: 3px
 |titlestyle   = background: #ccf; color: black
 |abovestyle   = background: #ddf; color: black
 |headerstyle  = background: #ddf; color: black
 |groupstyle   = background: #ddf; border-right: 2px solid white; color: black; text-align: right; padding-right: 1em
 |liststyle    = background: transparent; color: black
 |altliststyle = background: #f7f7f7; color: black
 |belowstyle   = background: #ddf; color: black
}}

Subgroups Example

{{Navbox
 |title   = Navbox with subgroups
 |group1  = Normal group
 |list1   = Normal list
 |group2  = Subgrouped
 |list2   = {{Navbox|child
  |group1 = First subgroup
  |list1  = List goes here
  |group2 = Second...
  |list2  = Another list
  |image  = [[File:Example.jpg|48px]] <!-- An image for this group -->
  |alternaterows = swap <!-- Makes box start with an alt row -->
 }}
}}
Documentation transcluded from Template:Navbox/doc.