Template:Icon: Difference between revisions
From Terra Invicta Official Wiki
No edit summary Tag: Manual revert |
Mozzarella (talk | contribs) (Fixed another newline issue.) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><span style="background-color: {{{bgcolor|transparent}}}; display: inline-block;">{{#switch: {{{1}}} | ||
{{#switch: {{{1}}} | | money = [[File:ICO currency.png|{{{size|20px}}}|money]] | ||
| water = [[File:ICO water.png|20px|water]] | | influence = [[File:ICO influence.png|{{{size|20px}}}|influence]] | ||
| volatiles = [[File:ICO volatiles.png|20px|volatiles]] | | ops = [[File:ICO ops.png|{{{size|20px}}}|ops]] | ||
| boost = [[File:ICO boost.png|{{{size|20px}}}|boost]] | |||
| mc | |||
| mission control = [[File:ICO mission control.png|{{{size|20px}}}|mission control]] | |||
| research = [[File:ICO research.png|{{{size|20px}}}|research]] | |||
| projects = [[File:ICO projects.png|{{{size|20px}}}|projects]] | |||
| cp | |||
| control point | |||
| control points = [[File:ICO ControlPoint empty.png|{{{size|20px}}}|control points]] | |||
| water = [[File:ICO water.png|{{{size|20px}}}|water]] | |||
| volatiles = [[File:ICO volatiles.png|{{{size|20px}}}|volatiles]] | |||
| metal | | metal | ||
| metals | | metals | ||
| base metals = [[File:ICO metal.png|20px|base metals]] | | base metals = [[File:ICO metal.png|{{{size|20px}}}|base metals]] | ||
| nobles | | nobles | ||
| noble metals = [[File:ICO metal noble.png|20px|noble metals]] | | noble metals = [[File:ICO metal noble.png|{{{size|20px}}}|noble metals]] | ||
| fissile | | fissile | ||
| fissiles = [[File:ICO fissile.png|20px|fissiles]] | | fissiles = [[File:ICO fissile.png|{{{size|20px}}}|fissiles]] | ||
| exotics = [[File:ICO exotics.png|{{{size|20px}}}|exotics]] | |||
| antimatter | |||
| antimatters = [[File:ICO antimatter.png|{{{size|20px}}}|antimatter]] | |||
| #default = ''No such icon'' | | #default = ''No such icon'' | ||
}} | }}</span></includeonly><noinclude> | ||
</includeonly> | |||
<noinclude> | |||
A template for inserting resource icons. | A template for inserting resource icons. | ||
== Usage == | == Usage == | ||
<pre>{{icon|water}}</pre> | To get the water icon for example: | ||
<pre>{{icon|water|bgcolor=transparent|size=20px}}</pre> | |||
Words for icons are shown in the following table. Parameters "bgcolor" and "size" are optional. | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 26: | Line 38: | ||
! name(s) !! icon | ! name(s) !! icon | ||
|- | |- | ||
| | | money || style="background-color: DarkSlateGray" align="center" | {{icon|money}} | ||
|- | |- | ||
| | | influence || style="background-color: DarkSlateGray" align="center" | {{icon|influence}} | ||
|- | |- | ||
| | | ops || style="background-color: DarkSlateGray" align="center" | {{icon|ops}} | ||
|- | |- | ||
| | | boost || style="background-color: DarkSlateGray" align="center" | {{icon|boost}} | ||
|- | |- | ||
| fissile / | | mc / mission control || style="background-color: DarkSlateGray" align="center" | {{icon|mc}} | ||
|} | |- | ||
| research || style="background-color: DarkSlateGray" align="center" | {{icon|research}} | |||
|- | |||
| projects || style="background-color: DarkSlateGray" align="center" | {{icon|projects}} | |||
|- | |||
| cp / control point / control points || style="background-color: DarkSlateGray" align="center" | {{icon|cp}} | |||
|- | |||
| water || style="background-color: DarkSlateGray" align="center" | {{icon|water}} | |||
|- | |||
| volatiles || style="background-color: DarkSlateGray" align="center" | {{icon|volatiles}} | |||
|- | |||
| metal / metals / base metals || style="background-color: DarkSlateGray" align="center" | {{icon|metal}} | |||
|- | |||
| nobles / noble metals || style="background-color: DarkSlateGray" align="center" | {{icon|nobles}} | |||
|- | |||
| fissile / fissiles || style="background-color: DarkSlateGray" align="center" | {{icon|fissiles}} | |||
|- | |||
| exotics || style="background-color: DarkSlateGray" align="center" | {{icon|exotics}} | |||
|- | |||
| antimatter / antimatters || style="background-color: DarkSlateGray" align="center" | {{icon|antimatter}} | |||
</noinclude> | </noinclude> |
Latest revision as of 05:18, 15 November 2022
A template for inserting resource icons.
Usage
To get the water icon for example:
{{icon|water|bgcolor=transparent|size=20px}}
Words for icons are shown in the following table. Parameters "bgcolor" and "size" are optional.