Actions

Template

Difference between revisions of "Icon"

From Unofficial Stationeers Wiki

Line 1: Line 1:
<div class="stationeers-icon" style="display: inline-block;margin: 5px;position: relative;padding: 3px;width: 32px;height: 32px;border: 1px solid #4B4543;background-color:#{{{color|929292}}};">{{#ifexist: File:{{ConvertName|{{{1}}}}}.png | [[File:{{ConvertName|{{{1}}}}}.png{{!}}32px{{!}}link={{{3|{{{1}}}{{If language suffix}}}}}]] | [[File:Placeholder icon.png{{!}}link=]] <includeonly><div style="display:none;">[[File:{{ConvertName|{{{1}}}}}.png{{!}}32px]]</div></includeonly>}}<div class="{{{icon-text-class|stationeers-icon-text}}}" style="position: absolute;bottom: 0;right: 3px;color: #fff;font-size: larger;font-weight: bold;text-shadow: 0px 1px 1px #000,0px -1px 1px #000,1px 0px 1px #000,-1px 0px 1px #000;pointer-events: none;">{{{2|}}}</div></div><noinclude>{{doc}}</noinclude>
+
<div class="stationeers-icon" style="display: inline-block;margin: 5px;position: relative;padding: 3px;width: 32px;height: 32px;border: 1px solid #4B4543;background-color:#{{{color|929292}}};">
 +
[[File:{{#switch:{{lc:{{{1|}}}}}
 +
<!-- PvE / Standard -->
 +
| coal = ItemCoalOre.png{{!}}link=Coal
 +
| activity = Activity (map icon).png{{!}}link=Activity
 +
| #default = Placeholder icon.png
 +
}}|{{{size|32px}}}]]
 +
<div class="{{{icon-text-class|stationeers-icon-text}}}" style="position: absolute;bottom: 0;right: 3px;color: #fff;font-size: larger;font-weight: bold;text-shadow: 0px 1px 1px #000,0px -1px 1px #000,1px 0px 1px #000,-1px 0px 1px #000;pointer-events: none;">{{{2|}}}</div>
 +
</div>

Revision as of 12:04, 13 January 2018

Placeholder icon.png