Template:Icon: Difference between revisions
More actions
m Docs: group Lock/Title/KM Death/KM Kill/Donator Star under a new Collectibles section (Donator Stars as its own subsection), capitalise Ranked Icons; add killmessage/killmsg, deathmessage/deathmsg, ?, rep/communityrep, thenether aliases |
m Point LCR icon link at Community Representative |
||
| Line 36: | Line 36: | ||
}} | }} | ||
|lcr|rep|communityrep={{#switch:{{lc:{{{2|megaphone}}}}} | |lcr|rep|communityrep={{#switch:{{lc:{{{2|megaphone}}}}} | ||
|megaphone|mega={{#if:{{{nolink|}}}|<span class="loka-icon loka-icon--lcr-megaphone loka-icon--bare">[[File:LCR icon (megaphone).png|x16px|link=|alt=LCR]]</span>|<span class="loka-icon loka-icon--lcr-megaphone loka-icon--linked">[[File:LCR icon (megaphone).png|x16px|link= | |megaphone|mega={{#if:{{{nolink|}}}|<span class="loka-icon loka-icon--lcr-megaphone loka-icon--bare">[[File:LCR icon (megaphone).png|x16px|link=|alt=LCR]]</span>|<span class="loka-icon loka-icon--lcr-megaphone loka-icon--linked">[[File:LCR icon (megaphone).png|x16px|link=Community Representative|alt=LCR]][[Community Representative|LCR]]</span>}} | ||
|ballot={{#if:{{{nolink|}}}|<span class="loka-icon loka-icon--lcr-ballot loka-icon--bare">[[File:LCR icon (ballot).png|x16px|link=|alt=LCR]]</span>|<span class="loka-icon loka-icon--lcr-ballot loka-icon--linked">[[File:LCR icon (ballot).png|x16px|link= | |ballot={{#if:{{{nolink|}}}|<span class="loka-icon loka-icon--lcr-ballot loka-icon--bare">[[File:LCR icon (ballot).png|x16px|link=|alt=LCR]]</span>|<span class="loka-icon loka-icon--lcr-ballot loka-icon--linked">[[File:LCR icon (ballot).png|x16px|link=Community Representative|alt=LCR]][[Community Representative|LCR]]</span>}} | ||
|#default=<strong class="error">Unknown lcr variant: {{{2|}}}</strong> | |#default=<strong class="error">Unknown lcr variant: {{{2|}}}</strong> | ||
}} | }} | ||
Revision as of 09:37, 22 August 2026
Usage
{{icon|name}}
renders a small icon, e.g. {{icon|zyre}} in running prose:
- Zyre has the most PvP activity of the isolated worlds, alongside the End.
Name matching is case- and space-insensitive -- zyre, Zyre and ZYRE all match the same icon, and a name normally written with a space (e.g. "Shard Pouch") can be typed either way: {{icon|shard pouch}} and {{icon|shardpouch}} render identically. Every name below also has its own shorter aliases (see the Aliases column) -- an unrecognised name renders a visible error instead of silently showing nothing, so a typo is easy to spot rather than quietly vanishing.
Some icons come with their own article link and bundled label text (e.g. Zyre links to Zyre); others are bare -- just the icon, meant to sit before a word you type yourself, the same way {{icon|zyre}} sits before "the End" in the example above. The tables below mark which is which.
Variants
A name with more than one icon (e.g. two senses of the same abbreviation, or a set of rarity tiers) takes an optional second parameter to pick which one:
{{icon|name|variant}}
e.g. {{icon|lcr|ballot}}. Where a default variant is defined, leaving the second parameter out falls back to it, so the bare {{icon|lcr}} still renders something rather than erroring. Some names (e.g. Rank, Capital) have no sensible default and require an explicit variant, or render an error. Each variant can have its own alias too, shown in the same Variant column as the variant name itself where it's a parallel short form (e.g. Lock's rarities double as 1-6), or in Aliases where it's an abbreviation of one specific variant (e.g. Rank's dia2 for diamond2).
Dropping the link
A normally-linked icon can be set to nolink=yes to drop the link, the bundled label text, and the pill background, leaving just the bare icon -- useful where the surrounding text or table cell already says what it is, so repeating it as a link would be redundant:
{{icon|donatorstar|1|nolink=yes}}
renders as: (compare to the full, linked form: ). No effect on an already-bare icon.
Supported icons
| Example | Variant | Aliases | File | Renders as |
|---|---|---|---|---|
{{icon|orbs|<variant>}}
|
emoji
|
orb
|
File:Orbs icon.png | |
web
|
File:Orbs icon (web).png | |||
{{icon|ascalon}}
|
— | asc, west
|
File:Shield ascalon.png | |
{{icon|kalros}}
|
— | north
|
File:Shield kalros.png | |
{{icon|garama}}
|
— | south
|
File:Shield garama.png | |
{{icon|aladra}}
|
— | spawn
|
File:Shield aladra.png | |
{{icon|balak}}
|
— | bigboi
|
File:Shield balak.png | |
{{icon|rivina}}
|
— | rivi, lilboi
|
File:Shield rivina.png | |
{{icon|zyre}}
|
— | isles
|
File:Shield pvp.png | |
{{icon|theend}}
|
— | end
|
File:Shield end.png | |
{{icon|nether}}
|
— | thenether
|
File:Shield nether.png | |
{{icon|loka|<variant>}}
|
crest
|
logo
|
File:Loka icon.png | |
pixel
|
File:Loka icon (pixel).png | |||
{{icon|capital|<variant>}}
|
world
|
world cap
|
File:World Capital icon.png | |
continent
|
cont cap
|
File:Continent Capital icon.png | ||
{{icon|dev}}
|
— | developer, lokadev
|
File:Dev icon.png | |
{{icon|shardpouch}}
|
— | sp
|
File:Shard Pouch icon.png | |
{{icon|soulboundbag}}
|
— | sb bag, sb
|
File:Soulbound Bag icon.png | |
{{icon|waterstone}}
|
— | — | File:Waterstone icon.png | |
{{icon|twitch}}
|
— | ttv
|
File:Twitch icon.png | |
{{icon|youtube}}
|
— | yt
|
File:YouTube icon.png | |
{{icon|guide|<variant>}}
|
gold
|
— | File:Guide icon (gold).png | |
purple
|
File:Guide icon (purple).png | |||
{{icon|lcr|<variant>}}
|
megaphone
|
mega
|
File:LCR icon (megaphone).png | |
ballot
|
— | File:LCR icon (ballot).png | ||
{{icon|powershard|<variant>}}
|
single
|
shard
|
Power Shard icon (single).... | |
core
|
Power Shard icon (core).pn... | |||
cluster
|
Power Shard icon (cluster)... | |||
{{icon|basiccrystal}}
|
— | — | File:Basic Crystal icon.png | |
{{icon|basicshard}}
|
— | — | File:Basic Shard icon.png | |
{{icon|blood|<variant>}}
|
normal
|
— | File:Blood icon (normal).png | |
stained
|
File:Blood icon (stained).png | |||
coagulated
|
Blood icon (coagulated).pn... | |||
{{icon|leafcutter}}
|
— | — | File:Leaf Cutter icon.png | |
{{icon|opyc}}
|
— | — | File:Opyc icon.png | |
{{icon|unknown}}
|
— | ?
|
File:Unknown icon.png | |
{{icon|recallstone}}
|
— | — | File:Recall Stone icon.png | |
{{icon|voidstorage|<variant>}}
|
input
|
vs
|
Void Storage icon (input).... | |
output
|
Void Storage icon (output)... | |||
{{icon|webbedbola}}
|
— | antipearl, bola
|
File:Webbed Bola icon.png | |
{{icon|xpbottle|<variant>}}
|
small
|
xp
|
File:XP Bottle icon (small).png | |
medium
|
XP Bottle icon (medium).pn... | |||
large
|
File:XP Bottle icon (large).png |
Collectibles
Donator Stars
| Example | Variant | Aliases | File | Renders as |
|---|---|---|---|---|
{{icon|donatorstar|<variant>}}
|
1
|
donor
|
File:Donator Star icon (1).png | |
2
|
File:Donator Star icon (2).png | |||
3
|
File:Donator Star icon (3).png | |||
4
|
File:Donator Star icon (4).png | |||
5
|
File:Donator Star icon (5).png | |||
6
|
File:Donator Star icon (6).png | |||
7
|
File:Donator Star icon (7).png | |||
8
|
File:Donator Star icon (8).png |
Ranked Icons
| Example | Variant | Aliases | File | Renders as |
|---|---|---|---|---|
{{icon|rank|<variant>}}
|
wood
|
— | File:Rank icon (wood).png | |
stone1
|
— | File:Rank icon (stone1).png | ||
stone2
|
— | File:Rank icon (stone2).png | ||
stone3
|
— | File:Rank icon (stone3).png | ||
iron1
|
— | File:Rank icon (iron1).png | ||
iron2
|
— | File:Rank icon (iron2).png | ||
iron3
|
— | File:Rank icon (iron3).png | ||
copper1
|
— | File:Rank icon (copper1).png | ||
copper2
|
— | File:Rank icon (copper2).png | ||
copper3
|
— | File:Rank icon (copper3).png | ||
gold1
|
— | File:Rank icon (gold1).png | ||
gold2
|
— | File:Rank icon (gold2).png | ||
gold3
|
— | File:Rank icon (gold3).png | ||
emerald1
|
em1
|
File:Rank icon (emerald1).png | ||
emerald2
|
em2
|
File:Rank icon (emerald2).png | ||
emerald3
|
em3
|
File:Rank icon (emerald3).png | ||
diamond1
|
dia1
|
File:Rank icon (diamond1).png | ||
diamond2
|
dia2
|
File:Rank icon (diamond2).png | ||
diamond3
|
dia3
|
File:Rank icon (diamond3).png | ||
netherite1
|
neth1
|
File:Rank icon (netherite1).png | ||
netherite2
|
neth2
|
File:Rank icon (netherite2).png | ||
netherite3
|
neth3
|
File:Rank icon (netherite3).png | ||
bedrock
|
— | File:Rank icon (bedrock).png |