Template:Icon: Difference between revisions

From Terra Invicta Official Wiki
(Fixed newline issues, added more icons, added bgcolor and size parameters.)
(Fixed another newline issue.)
 
Line 1: Line 1:
<includeonly>
<includeonly><span style="background-color: {{{bgcolor|transparent}}}; display: inline-block;">{{#switch: {{{1}}}
<span style="background-color: {{{bgcolor|transparent}}}; display: inline-block;">{{#switch: {{{1}}}
  | money = [[File:ICO currency.png|{{{size|20px}}}|money]]
  | money = [[File:ICO currency.png|{{{size|20px}}}|money]]
  | influence = [[File:ICO influence.png|{{{size|20px}}}|influence]]
  | influence = [[File:ICO influence.png|{{{size|20px}}}|influence]]
Line 24: Line 23:
  | antimatter
  | antimatter
  | antimatters = [[File:ICO antimatter.png|{{{size|20px}}}|antimatter]]
  | antimatters = [[File:ICO antimatter.png|{{{size|20px}}}|antimatter]]
  | #default = ''No such icon''
  | #default = ''No such icon''
}}</span></includeonly><noinclude>
}}</span></includeonly><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.

name(s) icon
money money
influence influence
ops ops
boost boost
mc / mission control mission control
research research
projects projects
cp / control point / control points control points
water water
volatiles volatiles
metal / metals / base metals base metals
nobles / noble metals noble metals
fissile / fissiles fissiles
exotics exotics
antimatter / antimatters antimatter