Difference between revisions of "Template:Navbox"

From Captain of Industry Wiki
Jump to: navigation, search
(add icon parameter)
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="{{#ifeq:{{{collapsed}}}|true|mw-collapsible mw-collapsed|mw-collapsible}}" data-expandtext="show" data-collapsetext="hide" style="text-align:left; background-color:#F9F9F9; border: 1px solid #68191B; width:{{#switch:{{lc:{{{size|}}}}} | wide = 90 | thin = 30 | #default = 60}}%" align="center" cellpadding="4px" cellspacing="2px"
<includeonly>
<templatestyles src="Template:Navbox/styles.css" />{{clear}}
{| class="{{#ifeq:{{{collapsed}}}|true|mw-collapsible mw-collapsed|mw-collapsible}} navbox" data-expandtext="show" data-collapsetext="hide" width:{{#switch:{{lc:{{{size|}}}}} | wide = 90 | thin = 30 | #default = 80}}%" align="center" cellpadding="4px" cellspacing="2px"
|-
|-
| colspan=2 height=30px style="text-align:center; background-color:#68191B; color:#fff;" | <span style="font: bold 20px sans-serif">{{{title}}}</span> <span style="float:left; font: 12px/24px sans-serif;"></span>
| colspan=2 height=30px class="navbox_header" | <span class="navbox_title">[[:Category:{{{title}}}|{{{title}}}]]</span>
|-  
|-  
{{#if:{{{above|}}}|
{{#if:{{{above|}}}|
{{!}} colspan=2 style="text-align:center; font-weight:bold; background-color:#68191B; color:#fff;" {{!}} {{{above}}}
{{!}} class="above" colspan="2" {{!}} {{{above}}}
}}
}}
|-
|-
{{#if:{{{group1|}}}|
{{#if:{{{group1|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; {{#if:{{{min-width|}}}|min-width:{{{min-width}}};}} width:10%; padding-right:8px; color:#fff;" {{!}} {{{group1}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list1}}}
{{!}} class="group" {{!}} {{#if:{{{icon1|}}}|{{infoicon|{{{icon1}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat1|}}}|{{{group1}}}|[[:Category:{{{group1}}}|{{{group1}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list1}}}
}}
}}
|-
|-
{{#if:{{{group2|}}}|
{{#if:{{{group2|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group2}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list2}}}
{{!}} class="group" {{!}} {{#if:{{{icon2|}}}|{{infoicon|{{{icon2}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat2|}}}|{{{group2}}}|[[:Category:{{{group2}}}|{{{group2}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list2}}}
}}
}}
|-
|-
{{#if:{{{group3|}}}|
{{#if:{{{group3|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group3}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list3}}}
{{!}} class="group" {{!}} {{#if:{{{icon3|}}}|{{infoicon|{{{icon3}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat3|}}}|{{{group3}}}|[[:Category:{{{group3}}}|{{{group3}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list3}}}
}}
}}
|-
|-
{{#if:{{{group4|}}}|
{{#if:{{{group4|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group4}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list4}}}
{{!}} class="group" {{!}} {{#if:{{{icon4|}}}|{{infoicon|{{{icon4}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat4|}}}|{{{group4}}}|[[:Category:{{{group4}}}|{{{group4}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list4}}}
}}
}}
|-
|-
{{#if:{{{group5|}}}|
{{#if:{{{group5|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group5}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list5}}}
{{!}} class="group" {{!}} {{#if:{{{icon5|}}}|{{infoicon|{{{icon5}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat5|}}}|{{{group5}}}|[[:Category:{{{group5}}}|{{{group5}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list5}}}
}}
}}
|-
|-
{{#if:{{{group6|}}}|
{{#if:{{{group6|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group6}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list6}}}
{{!}} class="group" {{!}} {{#if:{{{icon6|}}}|{{infoicon|{{{icon6}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat6|}}}|{{{group6}}}|[[:Category:{{{group6}}}|{{{group6}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list6}}}
}}
}}
|-
|-
{{#if:{{{group7|}}}|
{{#if:{{{group7|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group7}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list7}}}
{{!}} class="group" {{!}} {{#if:{{{icon7|}}}|{{infoicon|{{{icon7}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat7|}}}|{{{group7}}}|[[:Category:{{{group7}}}|{{{group7}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list7}}}
}}
}}
|-
|-
{{#if:{{{group8|}}}|
{{#if:{{{group8|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group8}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list8}}}
{{!}} class="group" {{!}} {{#if:{{{icon8|}}}|{{infoicon|{{{icon8}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat8|}}}|{{{group8}}}|[[:Category:{{{group8}}}|{{{group8}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list8}}}
}}
}}
|-
|-
{{#if:{{{group9|}}}|
{{#if:{{{group9|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group9}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list9}}}
{{!}} class="group" {{!}} {{#if:{{{icon9|}}}|{{infoicon|{{{icon9}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat9|}}}|{{{group9}}}|[[:Category:{{{group9}}}|{{{group9}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list9}}}
}}
}}
|-
|-
{{#if:{{{group10|}}}|
{{#if:{{{group10|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group10}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list10}}}
{{!}} class="group" {{!}} {{#if:{{{icon10|}}}|{{infoicon|{{{icon10}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat10|}}}|{{{group10}}}|[[:Category:{{{group10}}}|{{{group10}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list10}}}
}}
}}
|-
|-
{{#if:{{{group11|}}}|
{{#if:{{{group11|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group11}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list11}}}
{{!}} class="group" {{!}} {{#if:{{{icon11|}}}|{{infoicon|{{{icon11}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat11|}}}|{{{group11}}}|[[:Category:{{{group11}}}|{{{group11}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list11}}}
}}
}}
|-
|-
{{#if:{{{group12|}}}|
{{#if:{{{group12|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group12}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list12}}}
{{!}} class="group" {{!}} {{#if:{{{icon12|}}}|{{infoicon|{{{icon12}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat12|}}}|{{{group12}}}|[[:Category:{{{group12}}}|{{{group12}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list12}}}
}}
}}
|-
|-
{{#if:{{{group13|}}}|
{{#if:{{{group13|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group13}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list13}}}
{{!}} class="group" {{!}} {{#if:{{{icon13|}}}|{{infoicon|{{{icon13}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat13|}}}|{{{group13}}}|[[:Category:{{{group13}}}|{{{group13}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list13}}}
}}
}}
|-
|-
{{#if:{{{group14|}}}|
{{#if:{{{group14|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group14}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list14}}}
{{!}} class="group" {{!}} {{#if:{{{icon14|}}}|{{infoicon|{{{icon14}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat14|}}}|{{{group14}}}|[[:Category:{{{group14}}}|{{{group14}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list14}}}
}}
}}
|-
|-
{{#if:{{{group15|}}}|
{{#if:{{{group15|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group15}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list15}}}
{{!}} class="group" {{!}} {{#if:{{{icon15|}}}|{{infoicon|{{{icon15}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat15|}}}|{{{group15}}}|[[:Category:{{{group15}}}|{{{group15}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list15}}}
}}
}}
|-
|-
{{#if:{{{group16|}}}|
{{#if:{{{group16|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group16}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list16}}}
{{!}} class="group" {{!}} {{#if:{{{icon16|}}}|{{infoicon|{{{icon16}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat16|}}}|{{{group16}}}|[[:Category:{{{group16}}}|{{{group16}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list16}}}
}}
}}
|-
|-
{{#if:{{{group17|}}}|
{{#if:{{{group17|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group17}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list17}}}
{{!}} class="group" {{!}} {{#if:{{{icon17|}}}|{{infoicon|{{{icon17}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat17|}}}|{{{group17}}}|[[:Category:{{{group17}}}|{{{group17}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list17}}}
}}
}}
|-
|-
{{#if:{{{group18|}}}|
{{#if:{{{group18|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group18}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list18}}}
{{!}} class="group" {{!}} {{#if:{{{icon18|}}}|{{infoicon|{{{icon18}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat18|}}}|{{{group18}}}|[[:Category:{{{group18}}}|{{{group18}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list18}}}
}}
}}
|-
|-
{{#if:{{{group19|}}}|
{{#if:{{{group19|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group19}}} {{!}}{{!}} style="background-color:#F9F9F9;" {{!}} {{{list19}}}
{{!}} class="group" {{!}} {{#if:{{{icon19|}}}|{{infoicon|{{{icon19}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat19|}}}|{{{group19}}}|[[:Category:{{{group19}}}|{{{group19}}}]]}} {{!}}{{!}} class="row_even" {{!}} {{{list19}}}
}}
}}
|-
|-
{{#if:{{{group20|}}}|
{{#if:{{{group20|}}}|
{{!}} style="text-align:right; font-weight:bold; background-color:#68191B; width:10%; padding-right:8px; color:#fff;" {{!}} {{{group20}}} {{!}}{{!}} style="background-color:#EEE;" {{!}} {{{list20}}}
{{!}} class="group" {{!}} {{#if:{{{icon20|}}}|{{infoicon|{{{icon20}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat20|}}}|{{{group20}}}|[[:Category:{{{group20}}}|{{{group20}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list20}}}
}}
}}
|-
|-  
{{#if:{{{below|}}}|
{{#if:{{{below|}}}|
{{!}} colspan=2 style="text-align:center; font-weight:bold; background-color:#68191B; color:#fff;" {{!}} {{{below}}}}}
{{!}} class="below" colspan="2" {{!}} {{{below}}}
|}</includeonly><noinclude><pre>{{Navbox
}}
</includeonly><noinclude><pre>{{Navbox
|size=default
|size=default
|template=Navbox
|title=Machines
|title=[[:Machines]]
|group1=Metallurgy & Smelting
|above={{ID|above}}
|icon1=Metallurgy & Smelting
|group1={{ID|group1}}
|list1=[[Arc Furnace]] &bull;
|list1={{ID|list1}}
|group2=Storage
|group2={{ID|group2}}
|icon2=Storage
|list2={{ID|list2}}
|list2=Mixer, Other
|group3={{ID|group3}}
|group3=Other
|list3={{ID|list3}}
|list3=Mixer
|below={{ID|below}}
|nocat3=1
}}</pre>
}}</pre>
{{Navbox
{{Navbox
|size=default
|size=default
|template=Navbox
|title=Machines
|title=[[:Machines]]
|group1=Metallurgy & Smelting
|above=[[:Waste Management]]
|icon1=Metallurgy & Smelting
|group1={{ID|group1}}
|list1=[[Arc Furnace]] &bull; [[Arc Furnace II]] &bull;
|list1={{ID|list1}}
|group2=Storage
|group2={{ID|group2}}
|icon2=Storage
|list2={{ID|list2}}
|list2=Mixer, Other
|group3={{ID|group3}}
|group3=Other
|list3={{ID|list3}}
|list3=Mixer
|below={{ID|below}}
|nocat3=1
}}
}}
</noinclude>
</noinclude>

Latest revision as of 06:35, 23 May 2023

{{Navbox
|size=default
|title=Machines
|group1=Metallurgy & Smelting
|icon1=Metallurgy & Smelting
|list1=[[Arc Furnace]] •
|group2=Storage
|icon2=Storage
|list2=Mixer, Other
|group3=Other
|list3=Mixer
|nocat3=1
}}