Actions

Template

Difference between revisions of "Icon"

From Unofficial Stationeers Wiki

(try to use icon even if not predefined)
(use proper fallback)
 
(One intermediate revision by the same user not shown)
Line 177: Line 177:
 
  |water          |Water          |H2O |h2o = Icon-water.png{{!}}link=Water
 
  |water          |Water          |H2O |h2o = Icon-water.png{{!}}link=Water
  
  | #default = {{#ifexist: File:{{1|}}.png | File:{{1|}}.png| Placeholder icon.png }} {{!}}link={{{1|}}}
+
  | #default = {{#ifexist: File:{{1|}}.png | File:{{1|}}.png| Placeholder icon.png }} {{!}}link={{#if: {{{3|}}} | {{{3|}}} | {{ #ifexist: {{{1|}}} | {{{1|}}} }} }}
 
}}|{{{size|32px}}}]]
 
}}|{{{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 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>

Latest revision as of 07:13, 1 May 2024

Template documentation[view] [edit] [history] [purge]

Examples[edit]

{{icon}}

Placeholder icon.png


{{icon|Iron|1}}

ItemIronIngot.png

1


{{icon|drill|1}}

ItemDrill.png

1


{{icon|drill}}

ItemDrill.png


{{icon|time|500}}

500 ticks at 2 ticks per second

500


{{icon|energy|1000}}

Energy.png

1000


{{icon|oxygen}}

Icon-oxygen.png