[view] [edit] Template documentation

This template can be used to add icons as generated by Template:Icon in front of words.

Use this template to standardise the order of elements in bonuses. It also suppresses alt text for improved accessibility.

Parameters edit

Parameter Description Required Default
1 The icon to use. For a list of icons see Template:Icon/doc. required none
2 Width of the icon
  • If preceded by an 'x', sets height instead of width
  • Can be used instead of parameter 4 if set to 'red', 'yellow', or 'green'.
optional As defined by Template:Icon.
Typically either 24px or 52px.
3 / mod Inserts a string between the icon and text optional none
4 Name of template to apply to parameter 3 (e.g. {{green}}) optional none
5 / text Text to display optional parameter 1
mod Adds a modifier between the icon and text. Can also be used with colored variants
  • mod=text will yield a plaintext modifier
  • mod green=text will yield a green modifier
  • mod red=text will yield a red modifier
  • mod yellow=text will yield a yellow modifier
optional none
prefix / pre Text added to the front of parameter 1 for the purpose of determining the icon, but excluded from the displayed icon text. (e.g. pre-ftl) optional none
suffix / suf Text added to the end of parameter 1 for the purpose of determining the icon, but excluded from the displayed icon text. (e.g. tech) optional none
icon Sets custom icon, uses {{icon link}} template instead, with parameter 1 as anchor link option none
icon2-5 icon2, icon3, icon4, icon5
Inserts an additional icon image between the icon and text.
optional none
tech Formats the icon text using Template:Tech with this parameter as the style.
  • Doesn't format text produced by parameter 3.
optional none
link Sets the link of the icon. Usable only with supported icons. optional none
hover Sets the hover text of the icon. Usable only with supported icons. optional none
nowrap If set to yes, keeps the icon and the text in the same line. optional no

Examples edit

Wiki text Produces
{{iconify|Militarist}} File:Militarist.png Militarist
{{iconify|Militarist|36px|<br>}} File:Militarist.png
Militarist
{{iconify|Militarist|icon2=Fanatic Militarist||Some degree of}} File:Militarist.pngFile:Fanatic militarist.png Some degree of Militarist
{{iconify|Fanatic Purifiers|icon2=Devouring Swarm|icon3=Determined Exterminator|text=Genocidal}} Fanatic PurifiersDevouring SwarmDetermined Exterminator Genocidal
{{iconify|Influence|mod=50}} File:Influence.png 50 Influence
{{iconify|Minerals||−4|red}} File:Minerals.png −4 Minerals
{{iconify|Scholar}} File:Subclass scientist scholar medium.png Scholar
{{iconify|Scholar|pre=pre-ftl}} Scholar Scholar
{{iconify|Mercantile}} Mercantile Mercantile
{{iconify|Mercantile|suf=tradition}} Mercantile Mercantile
{{iconify|Amenities||+2|green|suf=add}} File:Mod planet amenities add.png +2 Amenities
{{iconify|Juggernaut|24px|suf=tech|tech=rare}} File:Tech juggernaut.png Juggernaut
{{iconify|Commander|24px}} Commander Commander
{{iconify|Commander|x24px}} Commander Commander
{{iconify|Capacity Subsidies|icon=edict}} Capacity Subsidies Capacity Subsidies

List of available icons edit

By default:

Main article: Template:Icon/doc#List of available icons

If icon parameter is used:

Main article: Template:Icon link/doc#Supported icons