Difference between revisions of "Template:Navbox"

From Captain of Industry Wiki
Jump to: navigation, search
(add icon parameter)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<footer>
<templatestyles src="Template:Navbox/styles.css" />{{clear}}
<templatestyles src="Template:Navbox/styles.css" />
{| 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"
{| class="{{#ifeq:{{{collapsed}}}|true|mw-collapsible mw-collapsed|mw-collapsible}}" data-expandtext="show" data-collapsetext="hide" style="text-align:left; background-color: rgba(252,162,58,1); border: 1px solid rgba(0,0,0,1); 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:rgba(0,0,0,1); color:#fff;" | <span style="font: bold 20px sans-serif">[[:Category:{{{title}}}|{{{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|}}}|
{{!}} class="above" {{!}} {{{above}}}
{{!}} class="above" colspan="2" {{!}} {{{above}}}
}}
}}
|-
|-
{{#if:{{{group1|}}}|
{{#if:{{{group1|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group1}}}|{{{group1}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group2}}}|{{{group2}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group3}}}|{{{group3}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group4}}}|{{{group4}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group5}}}|{{{group5}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group6}}}|{{{group6}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group7}}}|{{{group7}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group8}}}|{{{group8}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group9}}}|{{{group9}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group10}}}|{{{group10}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group11}}}|{{{group11}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group12}}}|{{{group12}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group13}}}|{{{group13}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group14}}}|{{{group14}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group15}}}|{{{group15}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group16}}}|{{{group16}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group17}}}|{{{group17}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group18}}}|{{{group18}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group19}}}|{{{group19}}}]] {{!}}{{!}} class="row_even" {{!}} {{{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|}}}|
{{!}} class="group" {{!}} [[:Category:{{{group20}}}|{{{group20}}}]] {{!}}{{!}} class="row_odd" {{!}} {{{list20}}}
{{!}} class="group" {{!}} {{#if:{{{icon20|}}}|{{infoicon|{{{icon20}}}|icononly=yes|new=yes}}}} {{#if:{{{nocat|}}}{{{nocat20|}}}|{{{group20}}}|[[:Category:{{{group20}}}|{{{group20}}}]]}} {{!}}{{!}} class="row_odd" {{!}} {{{list20}}}
}}
|-
{{#if:{{{below|}}}|
{{!}} class="below" colspan="2" {{!}} {{{below}}}
}}
}}
|-
</footer>
</includeonly><noinclude><pre>{{Navbox
</includeonly><noinclude><pre>{{Navbox
|size=default
|size=default
|title=Machines
|title=Machines
|group1=Metallurgy & Smelting
|group1=Metallurgy & Smelting
|icon1=Metallurgy & Smelting
|list1=[[Arc Furnace]] &bull;
|list1=[[Arc Furnace]] &bull;
|group2=Storage
|group2=Storage
|icon2=Storage
|list2=Mixer, Other
|list2=Mixer, Other
|group3=Other
|group3=Other
|list3=Mixer
|list3=Mixer
|nocat3=1
}}</pre>
}}</pre>
{{Navbox
{{Navbox
Line 109: Line 109:
|title=Machines
|title=Machines
|group1=Metallurgy & Smelting
|group1=Metallurgy & Smelting
|icon1=Metallurgy & Smelting
|list1=[[Arc Furnace]] &bull; [[Arc Furnace II]] &bull;
|list1=[[Arc Furnace]] &bull; [[Arc Furnace II]] &bull;
|group2=Storage
|group2=Storage
|icon2=Storage
|list2=Mixer, Other
|list2=Mixer, Other
|group3=Other
|group3=Other
|list3=Mixer
|list3=Mixer
|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
}}