Template:Icon: Difference between revisions
Template page
More actions
Create Template:Icon, a small extensible inline icon (starting with Orbs) |
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=<span class="loka-icon loka-icon--orbs">[[File:Orbs icon.png|x14px|link=|alt=Orbs]]</span> | |orbs=<span class="loka-icon loka-icon--orbs">[[File:Orbs icon.png|x14px|link=|alt=Orbs]]</span> | ||
|ascalon=<span class="loka-icon loka-icon--ascalon loka-icon--linked">[[Ascalon|[[File:Shield ascalon.png|14px|link=|alt=Ascalon]] Ascalon]]</span> | |||
|kalros=<span class="loka-icon loka-icon--kalros loka-icon--linked">[[Kalros|[[File:Shield kalros.png|14px|link=|alt=Kalros]] Kalros]]</span> | |||
|garama=<span class="loka-icon loka-icon--garama loka-icon--linked">[[Garama|[[File:Shield garama.png|14px|link=|alt=Garama]] Garama]]</span> | |||
|aladra=<span class="loka-icon loka-icon--aladra loka-icon--linked">[[Aladra|[[File:Shield aladra.png|14px|link=|alt=Aladra]] Aladra]]</span> | |||
|balak=<span class="loka-icon loka-icon--balak loka-icon--linked">[[Balak|[[File:Shield balak.png|14px|link=|alt=Balak]] Balak]]</span> | |||
|rivina=<span class="loka-icon loka-icon--rivina loka-icon--linked">[[Rivina|[[File:Shield rivina.png|14px|link=|alt=Rivina]] Rivina]]</span> | |||
|zyre=<span class="loka-icon loka-icon--zyre loka-icon--linked">[[Zyre|[[File:Shield pvp.png|14px|link=|alt=Zyre]] Zyre]]</span> | |||
|the end=<span class="loka-icon loka-icon--the-end loka-icon--linked">[[The End|[[File:Shield end.png|14px|link=|alt=The End]] The End]]</span> | |||
|nether=<span class="loka-icon loka-icon--nether loka-icon--linked">[[The Nether|[[File:Shield nether.png|14px|link=|alt=Nether]] Nether]]</span> | |||
|loka=<span class="loka-icon loka-icon--loka loka-icon--linked">[[Loka|[[File:Loka icon.png|14px|link=|alt=Loka]] Loka]]</span> | |||
|#default=<strong class="error">Unknown icon: {{{1|}}}</strong> | |#default=<strong class="error">Unknown icon: {{{1|}}}</strong> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| Line 8: | Line 18: | ||
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 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. | ||
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. | |||
== Supported icons == | == Supported icons == | ||
| Line 17: | Line 29: | ||
| <code>orbs</code> | | <code>orbs</code> | ||
| [[File:Orbs icon.png|x14px|link=]] | | [[File:Orbs icon.png|x14px|link=]] | ||
|- | |||
| <code>ascalon</code> | |||
| [[File:Shield ascalon.png|14px|link=]] Ascalon (linked to [[Ascalon]]) | |||
|- | |||
| <code>kalros</code> | |||
| [[File:Shield kalros.png|14px|link=]] Kalros (linked to [[Kalros]]) | |||
|- | |||
| <code>garama</code> | |||
| [[File:Shield garama.png|14px|link=]] Garama (linked to [[Garama]]) | |||
|- | |||
| <code>aladra</code> | |||
| [[File:Shield aladra.png|14px|link=]] Aladra (linked to [[Aladra]]) | |||
|- | |||
| <code>balak</code> | |||
| [[File:Shield balak.png|14px|link=]] Balak (linked to [[Balak]]) | |||
|- | |||
| <code>rivina</code> | |||
| [[File:Shield rivina.png|14px|link=]] Rivina (linked to [[Rivina]]) | |||
|- | |||
| <code>zyre</code> | |||
| [[File:Shield pvp.png|14px|link=]] Zyre (linked to [[Zyre]]) | |||
|- | |||
| <code>the end</code> | |||
| [[File:Shield end.png|14px|link=]] The End (linked to [[The End]]) | |||
|- | |||
| <code>nether</code> | |||
| [[File:Shield nether.png|14px|link=]] Nether (linked to [[The Nether]]) | |||
|- | |||
| <code>loka</code> | |||
| [[File:Loka icon.png|14px|link=]] Loka (linked to [[Loka]]) | |||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 19:12, 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.
Supported icons
| Name | Renders |
|---|---|
orbs
|
|
ascalon
|
|
kalros
|
|
garama
|
|
aladra
|
|
balak
|
|
rivina
|
|
zyre
|
|
the end
|
|
nether
|
|
loka
|