User:Mozzarella/Icon: Difference between revisions

From Terra Invicta Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><!--
<includeonly>
-->{{#switch: {{{1}}}
<span style="background-color: {{bgcolor|transparent}}; display: inline-block;">{{#switch: {{{1}}}
  | water = <span style="background-color: none; display: inline-block;">[[File:ICO water.png|20px|water]]</span>
  | water = [[File:ICO water.png|{{size|20px}}|water]]
  | volatiles = <span style="background-color: none; display: inline-block;">[[File:ICO volatiles.png|20px|volatiles]]</span>
  | volatiles = [[File:ICO volatiles.png|{{size|20px}}|volatiles]]
| metal
| metals
| base metals = [[File:ICO metal.png|{{size|20px}}|base metals]]
| nobles
| noble metals = [[File:ICO metal noble.png|{{size|20px}}|noble metals]]
| fissile
| fissiles = [[File:ICO fissile.png|{{size|20px}}|fissiles]]
  | #default = ''No such icon''
  | #default = ''No such icon''
}}</includeonly><noinclude>{{User:Mozzarella/Icon|water}}
}}</span></includeonly><noinclude>
A template for inserting resource icons.
 
== Usage ==
 
To get the water icon for example:
<pre>{{icon|water}}</pre>
 
These are the words that work:
 
{| class="wikitable"
|-
! name(s) !! icon
|-
| water || {{icon|water}}
|-
| volatiles || {{icon|volatiles}}
|-
| metal / metals / base metals || {{icon|metal}}
|-
| nobles / noble metals  || {{icon|nobles}}
|-
| fissile / fissilies || {{icon|fissiles}}
|}
 
</noinclude>
</noinclude>

Revision as of 04:21, 15 November 2022

A template for inserting resource icons.

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