Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Icon: Difference between revisions

Template page
Emilgardis (talk | contribs)
try to fix wrong expansion
Emilgardis (talk | contribs)
try to use icon even if not predefined
Line 176: Line 176:
  |volatiles      |Volatiles      |H2  |h2  = Icon-volatiles.png{{!}}link=Volatiles
  |volatiles      |Volatiles      |H2  |h2  = Icon-volatiles.png{{!}}link=Volatiles
  |water          |Water          |H2O |h2o = Icon-water.png{{!}}link=Water
  |water          |Water          |H2O |h2o = Icon-water.png{{!}}link=Water
  | #default = Placeholder icon.png{{!}}link={{{1|}}}
 
  | #default = {{#ifexist: File:{{1|}}.png | File:{{1|}}.png| Placeholder icon.png }} {{!}}link={{{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>

Revision as of 12:08, 1 May 2024

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

Examples

{{icon}}


{{icon|Iron|1}}

1


{{icon|drill|1}}

1


{{icon|drill}}


{{icon|time|500}}

500 ticks at 2 ticks per second

500


{{icon|energy|1000}}

1000


{{icon|oxygen}}

Contents