Template:Icon: Difference between revisions
Template page
More actions
m Add continent/world (and Loka) linked icon entries |
m Add variant support to {{Icon}} (a name can now have more than one icon, selected via a second parameter) |
||
| Line 26: | Line 26: | ||
: A premium [[Account Transfer]] costs 500 {{Icon|Orbs}}. | : A premium [[Account Transfer]] costs 500 {{Icon|Orbs}}. | ||
A name with more than one icon (e.g. two senses of the same abbreviation) takes an optional second parameter to pick which one -- <code><nowiki>{{Icon|LCR|Ballot}}</nowiki></code> -- and falls back to a default variant if the second parameter is left out. | |||
== Supported icons == | == Supported icons == | ||
Revision as of 21:09, 21 August 2026
Usage
{{Icon|Orbs}}
Renders the icon and name bundled together as a single link to the subject's own article (case-insensitive name match) -- e.g. {{Icon|Zyre}} alone renders the icon and "Zyre" as one link, nothing more to type next to it. An unrecognised name renders a visible error instead of silently showing nothing, so a typo is easy to spot.
In running prose:
A premium [[Account Transfer]] costs 500 {{Icon|Orbs}}.
renders as:
- A premium Account Transfer costs 500 .
A name with more than one icon (e.g. two senses of the same abbreviation) takes an optional second parameter to pick which one -- {{Icon|LCR|Ballot}} -- and falls back to a default variant if the second parameter is left out.
Supported icons
| Example | Aliases | File | Renders as |
|---|---|---|---|
{{Icon|Orbs}}
|
orb
|
File:Orbs icon.png | |
{{Icon|Ascalon}}
|
— | File:Shield ascalon.png | |
{{Icon|Kalros}}
|
— | File:Shield kalros.png | |
{{Icon|Garama}}
|
— | File:Shield garama.png | |
{{Icon|Aladra}}
|
— | File:Shield aladra.png | |
{{Icon|Balak}}
|
— | File:Shield balak.png | |
{{Icon|Rivina}}
|
— | File:Shield rivina.png | |
{{Icon|Zyre}}
|
— | File:Shield pvp.png | |
{{Icon|The End}}
|
— | File:Shield end.png | |
{{Icon|Nether}}
|
— | File:Shield nether.png | |
{{Icon|Loka}}
|
— | File:Loka icon.png |