Template:Infobox: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added Liquids, Logic and Tool styling for respective categories)
No edit summary
Line 1: Line 1:
<div class="infobox">
<div class="infobox">
<div class="infobox-header" style="
<div class="infobox-header" style="
{{#switch: {{{category}}}
{{#switch: {{{category}}}
| Combat                = background: #FF0000; color: white;
| Combat                = background: #FF0000; color: white;
| Liquids              = background: #8FDBFF;
| Liquids              = background: #8FDBFF;
| Logic                = background: #7401DF; color: #6cdf01;
| Logic                = background: #7401DF; color: #6cdf01;
| Intermediate products = background: #AAAAAA;
| Intermediate products = background: #AAAAAA;
| Machinery            = background: #FFA600;
| Machinery            = background: #FFA600;
| Resource              = background: #444444; color: white;
| Resource              = background: #444444; color: white;
| Science pack          = background: #A1056F; color: white;
| Science pack          = background: #A1056F; color: white;
| Technology            = background: #228B22;
| Technology            = background: #228B22;
| Tool                  = background: #62B1F6;
| Tool                  = background: #62B1F6;
| #default              =  
| #default              =  
}}
}}
">
">


{{#ifexist: File:{{{icon|{{No language suffix}} }}}.png| <!--We might not want to do it for ifexist spamming Special:WantedPages -->
<div class="header-icon">
<div class="header-icon">
{{Icon|{{{icon|{{No language suffix}} }}} }}
{{Icon|{{{icon|{{No language suffix}} }}} }}
</div>
</div>
}}


<div class="header-text">
<div class="header-text">
<div>
<div>
{{{name|{{No language suffix}} }}}
{{{name|{{No language suffix}} }}}
</div>
</div>


<div>
<div>
{{#if: {{{category|}}} | [[:Category:{{{category}}} | {{{category-name|{{{category|}}} }}} ]] }}
{{#if: {{{category|}}} | [[:Category:{{{category}}} | {{{category-name|{{{category|}}} }}} ]] }}
</div>
</div>
</div>
</div>



Revision as of 19:59, 29 August 2016


Template:Infobox 
User:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/rowUser:TheWombatGuru/Infobox/vrowUser:TheWombatGuru/Infobox/vrowUser:TheWombatGuru/Infobox/vrowUser:TheWombatGuru/Infobox/vrowUser:TheWombatGuru/Infobox/vrowUser:TheWombatGuru/Infobox/vrowUser:TheWombatGuru/Infobox/vrowUser:TheWombatGuru/Infobox/vrowUser:TheWombatGuru/Infobox/vrow