Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Icon: Difference between revisions

Template page
m Add continent/world (and Loka) linked icon entries
m Add continent/world (and Loka) linked icon entries
Line 20: Line 20:


Continent/world icons (and <code>Loka</code>) are a linked kind instead: icon and name render bundled together as a single link to the subject's own article, e.g. <code><nowiki>{{Icon|Zyre}}</nowiki></code> alone renders the icon and "Zyre" as one link, with nothing more to type next to it.
Continent/world icons (and <code>Loka</code>) are a linked kind instead: icon and name render bundled together as a single link to the subject's own article, e.g. <code><nowiki>{{Icon|Zyre}}</nowiki></code> alone renders the icon and "Zyre" as one link, with nothing more to type next to it.
In running prose:
<pre>A premium [[Account Transfer]] costs 500 {{Icon|Orbs}} Orbs.</pre>
renders as:
: A premium [[Account Transfer]] costs 500 {{Icon|Orbs}} Orbs.


== Supported icons ==
== Supported icons ==


{| class="wikitable"
{| class="wikitable"
! Name
! Example
! Renders
! Aliases
! File
! Renders as
|-
|-
| <code>orbs / <code>orb</code></code>
| <code><nowiki>{{Icon|Orbs}}</nowiki></code>
| [[File:Orbs icon.png|x14px|link=]] (linked to [[Orbs]])
| <code>orb</code>
| [[:File:Orbs icon.png]]
| {{Icon|Orbs}}
|-
|-
| <code>ascalon</code>
| <code><nowiki>{{Icon|Ascalon}}</nowiki></code>
| [[File:Shield ascalon.png|14px|link=]] Ascalon (linked to [[Ascalon]])
| —
| [[:File:Shield ascalon.png]]
| {{Icon|Ascalon}}
|-
|-
| <code>kalros</code>
| <code><nowiki>{{Icon|Kalros}}</nowiki></code>
| [[File:Shield kalros.png|14px|link=]] Kalros (linked to [[Kalros]])
| —
| [[:File:Shield kalros.png]]
| {{Icon|Kalros}}
|-
|-
| <code>garama</code>
| <code><nowiki>{{Icon|Garama}}</nowiki></code>
| [[File:Shield garama.png|14px|link=]] Garama (linked to [[Garama]])
| —
| [[:File:Shield garama.png]]
| {{Icon|Garama}}
|-
|-
| <code>aladra</code>
| <code><nowiki>{{Icon|Aladra}}</nowiki></code>
| [[File:Shield aladra.png|14px|link=]] Aladra (linked to [[Aladra]])
| —
| [[:File:Shield aladra.png]]
| {{Icon|Aladra}}
|-
|-
| <code>balak</code>
| <code><nowiki>{{Icon|Balak}}</nowiki></code>
| [[File:Shield balak.png|14px|link=]] Balak (linked to [[Balak]])
| —
| [[:File:Shield balak.png]]
| {{Icon|Balak}}
|-
|-
| <code>rivina</code>
| <code><nowiki>{{Icon|Rivina}}</nowiki></code>
| [[File:Shield rivina.png|14px|link=]] Rivina (linked to [[Rivina]])
| —
| [[:File:Shield rivina.png]]
| {{Icon|Rivina}}
|-
|-
| <code>zyre</code>
| <code><nowiki>{{Icon|Zyre}}</nowiki></code>
| [[File:Shield pvp.png|14px|link=]] Zyre (linked to [[Zyre]])
| —
| [[:File:Shield pvp.png]]
| {{Icon|Zyre}}
|-
|-
| <code>the end</code>
| <code><nowiki>{{Icon|The End}}</nowiki></code>
| [[File:Shield end.png|14px|link=]] The End (linked to [[The End]])
| —
| [[:File:Shield end.png]]
| {{Icon|The End}}
|-
|-
| <code>nether</code>
| <code><nowiki>{{Icon|Nether}}</nowiki></code>
| [[File:Shield nether.png|14px|link=]] Nether (linked to [[The Nether]])
| —
| [[:File:Shield nether.png]]
| {{Icon|Nether}}
|-
|-
| <code>loka</code>
| <code><nowiki>{{Icon|Loka}}</nowiki></code>
| [[File:Loka icon.png|14px|link=]] Loka (linked to [[Loka]])
| —
| [[:File:Loka icon.png]]
| {{Icon|Loka}}
|}
|}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 19:44, 21 August 2026

Usage

{{Icon|Orbs}}

Renders just the icon (case-insensitive name match) -- put it before a word in running prose yourself, e.g. {{Icon|Orbs}} Orbs, the same way Template:Infobox tournament's mode icon sits before "3v3"/"Potion". An unrecognised name renders a visible error instead of silently showing nothing, so a typo is easy to spot.

Continent/world icons (and Loka) are a linked kind instead: icon and name render bundled together as a single link to the subject's own article, e.g. {{Icon|Zyre}} alone renders the icon and "Zyre" as one link, with nothing more to type next to it.

In running prose:

A premium [[Account Transfer]] costs 500 {{Icon|Orbs}} Orbs.

renders as:

A premium Account Transfer costs 500 Orbs Orbs.

Supported icons

Example Aliases File Renders as
{{Icon|Orbs}} orb File:Orbs icon.png Orbs
{{Icon|Ascalon}} File:Shield ascalon.png Ascalon Ascalon
{{Icon|Kalros}} File:Shield kalros.png Kalros Kalros
{{Icon|Garama}} File:Shield garama.png Garama Garama
{{Icon|Aladra}} File:Shield aladra.png Aladra Aladra
{{Icon|Balak}} File:Shield balak.png Balak Balak
{{Icon|Rivina}} File:Shield rivina.png Rivina Rivina
{{Icon|Zyre}} File:Shield pvp.png Zyre Zyre
{{Icon|The End}} File:Shield end.png The End The End
{{Icon|Nether}} File:Shield nether.png Nether Nether
{{Icon|Loka}} File:Loka icon.png Loka Loka