Template:Icon link

Revision as of 18:33, 25 February 2025 by MLD>Lorenerd11
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view] [edit] Template documentation


This template is used to generate icons with custom links.

Parameters

Parameter Description Required Default
1 Icon used required
2 Anchor link required
3 If set to iconify, adds the text of parameter 2 after the icon optional
iconify
  • If set to yes, appends the text of parameter 2 after the icon
  • If set to full, also adds the text of parameter 1
optional
w Sets the size of the icon optional 24px
page Sets / overrides the linked page optional

Supported icons

Parameter 1 Icon Linked page Notes
anomaly Anomaly# Also supports specific anomaly levels, i.e. [[File:Discovery level {{#replace:anomaly 1|anomaly}}.png|28px|link=Anomaly#|]] for 'anomaly 1', etc.
digsite File:Archaeology map icon.png Archaeological site# Also accepts 'archaeological site' or 'archaeology site'
astral rift File:Astral rift map icon.png Astral rift#
edict File:Menu icon edicts.png Edicts#
policy File:Menu icon policies.png Policies#
agenda File:Agenda.png Agenda#
situation File:Navbar icons situation.png Situations#
research speed Icon and link used depends on the tech field specified in parameter 2.
  • If parameter 2 does not match any tech field, standard research speed icon will be used.

Examples

Wiki text Produces
{{icon link|policy|Civilian Economy|iconify=yes}} Civilian Economy Civilian Economy
{{icon link|edict|Capacity Subsidies|iconify=yes}} Capacity Subsidies Capacity Subsidies
{{icon link|edict|Capacity Subsidies|iconify=full}} Capacity Subsidies Capacity Subsidies edict
{{icon link|research speed|Computing|iconify=full}} Computing research speed Computing research speed