Template:Icon: Difference between revisions

From Terra Invicta Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#switch: {{{1}}}
{{#switch: {{{1}}}
  | water = [[File:ICO water.png|20px|water]] | volatiles = [[File:ICO volatiles.png|20px|volatiles]]
  | water = [[File:ICO water.png|20px|water]]
| volatiles = [[File:ICO volatiles.png|20px|volatiles]]
  | metal
  | metal
  | metals
  | metals
Line 10: Line 11:
  | fissiles = [[File:ICO fissile.png|20px|fissiles]]
  | fissiles = [[File:ICO fissile.png|20px|fissiles]]
  | #default = ''No such icon''
  | #default = ''No such icon''
}}</includeonly>
}}</includeonly><noinclude>
<noinclude>
A template for inserting resource icons. (It doesn't work yet, as parser functions don't seem to expand...)
A template for inserting resource icons. (It doesn't work yet, as parser functions don't seem to expand...)



Revision as of 04:14, 15 November 2022

A template for inserting resource icons. (It doesn't work yet, as parser functions don't seem to expand...)

Usage

To get the water icon for example:

{{icon|water}}

These are the words that work:

name(s) icon
water

water

volatiles

volatiles

metal / metals / base metals

base metals

nobles / noble metals

noble metals

fissile / fissilies

fissiles