Difference between revisions of "Icon"
From Unofficial Stationeers Wiki
(Add gases and liquids) |
Emilgardis (talk | contribs) (use proper fallback) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="stationeers-icon" style="display: inline-block;margin-left: 5px;margin-right: 5px;position: relative;padding: 1px;width: 32px;height: 32px;background-color:{{{color|}}};"> | <div class="stationeers-icon" style="display: inline-block;margin-left: 5px;margin-right: 5px;position: relative;padding: 1px;width: 32px;height: 32px;background-color:{{{color|}}};"> | ||
− | [[File:{{#switch | + | [[File:{{#switch:{{{1|}}} |
<!-- Meta --> | <!-- Meta --> | ||
| time = Time.png{{!}}link={{!}}{{{2|}}} ticks at 2 ticks per second | | time = Time.png{{!}}link={{!}}{{{2|}}} ticks at 2 ticks per second | ||
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={{#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 06:13, 1 May 2024
Examples[edit]
{{icon}}
{{icon|Iron|1}}
{{icon|drill|1}}
{{icon|drill}}
{{icon|time|500}}
{{icon|energy|1000}}
{{icon|oxygen}}
The above documentation is transcluded from Template:Icon/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |