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 1: Line 1:
<includeonly><templatestyles src="Template:Icon/styles.css" />{{#switch:{{lc:{{{1|}}}}}
<includeonly><templatestyles src="Template:Icon/styles.css" />{{#switch:{{lc:{{{1|}}}}}
|orbs|orb=<span class="loka-icon loka-icon--orbs">[[File:Orbs icon.png|x14px|link=Orbs|alt=Orbs]]</span>
|orbs|orb=<span class="loka-icon loka-icon--orbs loka-icon--linked">[[File:Orbs icon.png|x14px|link=Orbs|alt=Orbs]]&#32;[[Orbs|Orbs]]</span>
|ascalon=<span class="loka-icon loka-icon--ascalon loka-icon--linked">[[File:Shield ascalon.png|14px|link=Ascalon|alt=Ascalon]]&#32;[[Ascalon|Ascalon]]</span>
|ascalon=<span class="loka-icon loka-icon--ascalon loka-icon--linked">[[File:Shield ascalon.png|14px|link=Ascalon|alt=Ascalon]]&#32;[[Ascalon|Ascalon]]</span>
|kalros=<span class="loka-icon loka-icon--kalros loka-icon--linked">[[File:Shield kalros.png|14px|link=Kalros|alt=Kalros]]&#32;[[Kalros|Kalros]]</span>
|kalros=<span class="loka-icon loka-icon--kalros loka-icon--linked">[[File:Shield kalros.png|14px|link=Kalros|alt=Kalros]]&#32;[[Kalros|Kalros]]</span>
Line 17: Line 17:
<pre>{{Icon|Orbs}}</pre>
<pre>{{Icon|Orbs}}</pre>


Renders just the icon (case-insensitive name match) -- put it before a word in running prose yourself, e.g. <code><nowiki>{{Icon|Orbs}} Orbs</nowiki></code>, 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.
Renders the icon and name bundled together as a single link to the subject's own article (case-insensitive name match) -- e.g. <code><nowiki>{{Icon|Zyre}}</nowiki></code> 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.
 
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:
In running prose:


<pre>A premium [[Account Transfer]] costs 500 {{Icon|Orbs}} Orbs.</pre>
<pre>A premium [[Account Transfer]] costs 500 {{Icon|Orbs}}.</pre>


renders as:
renders as:


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


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

Revision as of 19:58, 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 Orbs Orbs.

Supported icons

Example Aliases File Renders as
{{Icon|Orbs}} orb File:Orbs icon.png Orbs 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