Template:Rank: Difference between revisions

From RetroMC
Jump to navigation Jump to search
(Added 2 more ranks and fixed a rank bug)
(Converted span to div)
Tag: Reverted
Line 8: Line 8:
{{#switch: {{{1}}}
{{#switch: {{{1}}}
<!-- Playtime ranks -->
<!-- Playtime ranks -->
| wanderer = [[Ranks#Wanderer|<span style="color: {{MCColor-raw|&8}};">[</span><span style="color: {{MCColor-raw|&7}};">Wanderer</span><span style="color: {{MCColor-raw|&8}};">]</span>]]
| wanderer = [[Ranks#Wanderer|<div style="color: {{MCColor-raw|&8}};">[</div><div style="color: {{MCColor-raw|&7}};">Wanderer</div><div style="color: {{MCColor-raw|&8}};">]</div>]]
| citizen = [[Ranks#Citizen|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&a}};">Citizen</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| citizen = [[Ranks#Citizen|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&a}};">Citizen</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| goldcitizen  
| goldcitizen  
| goldencitizen  
| goldencitizen  
| gold_citizen
| gold_citizen
| golden_citizen  
| golden_citizen  
| trusted = [[Ranks#Gold_Citizen|<span style="color: {{MCColor-raw|&6}};">[</span><span style="color: {{MCColor-raw|&a}};">Citizen</span><span style="color: {{MCColor-raw|&6}};">]</span>]]
| trusted = [[Ranks#Gold_Citizen|<div style="color: {{MCColor-raw|&6}};">[</div><div style="color: {{MCColor-raw|&a}};">Citizen</div><div style="color: {{MCColor-raw|&6}};">]</div>]]
| diamondcitizen
| diamondcitizen
| diamond_citizen = [[Ranks#Diamond_Citizen|<span style="color: {{MCColor-raw|&b}};">[</span><span style="color: {{MCColor-raw|&a}};">Citizen</span><span style="color: {{MCColor-raw|&b}};">]</span>]]
| diamond_citizen = [[Ranks#Diamond_Citizen|<div style="color: {{MCColor-raw|&b}};">[</div><div style="color: {{MCColor-raw|&a}};">Citizen</div><div style="color: {{MCColor-raw|&b}};">]</div>]]
<!-- Donator ranks -->
<!-- Donator ranks -->
| hero = [[Ranks#Hero|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&2}};">Hero</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| hero = [[Ranks#Hero|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&2}};">Hero</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| legend = [[Ranks#Legend|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&9}};">Legend</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| legend = [[Ranks#Legend|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&9}};">Legend</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| mystic = [[Ranks#Mystic|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&b}};">Mystic</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| mystic = [[Ranks#Mystic|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&b}};">Mystic</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| donator = [[Ranks#Donator(+,_++)|<span style="color: {{MCColor-raw|&8}};">[</span><span style="color: {{MCColor-raw|&c}};">Donator</span><span style="color: {{MCColor-raw|&8}};">]</span>]]
| donator = [[Ranks#Donator(+,_++)|<div style="color: {{MCColor-raw|&8}};">[</div><div style="color: {{MCColor-raw|&c}};">Donator</div><div style="color: {{MCColor-raw|&8}};">]</div>]]
| donator+  
| donator+  
| donatorplus = [[Ranks#Donator(+,_++)|<span style="color: {{MCColor-raw|&8}};">[</span><span style="color: {{MCColor-raw|&c}};">Donator</span><span style="color: {{MCColor-raw|&4}};">+</span><span style="color: {{MCColor-raw|&8}};">]</span>]]
| donatorplus = [[Ranks#Donator(+,_++)|<div style="color: {{MCColor-raw|&8}};">[</div><div style="color: {{MCColor-raw|&c}};">Donator</div><div style="color: {{MCColor-raw|&4}};">+</div><div style="color: {{MCColor-raw|&8}};">]</div>]]
| donator++
| donator++
| donatorplus+
| donatorplus+
| donator+plus
| donator+plus
| donatorplusplus = [[Ranks#Donator(+,_++)|<span style="color: {{MCColor-raw|&8}};">[</span><span style="color: {{MCColor-raw|&c}};">Donator</span><span style="color: {{MCColor-raw|&4}};">++</span><span style="color: {{MCColor-raw|&8}};">]</span>]]
| donatorplusplus = [[Ranks#Donator(+,_++)|<div style="color: {{MCColor-raw|&8}};">[</div><div style="color: {{MCColor-raw|&c}};">Donator</div><div style="color: {{MCColor-raw|&4}};">++</div><div style="color: {{MCColor-raw|&8}};">]</div>]]
<!-- Staff ranks -->
<!-- Staff ranks -->
| trial
| trial
| trialhelper
| trialhelper
| trial_helper = [[Ranks#Trial_Helper|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&a}};">Trial Helper</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| trial_helper = [[Ranks#Trial_Helper|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&a}};">Trial Helper</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| helper = [[Ranks#Helper|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&3}};">Helper</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| helper = [[Ranks#Helper|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&3}};">Helper</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| mod
| mod
| moderator = [[Ranks#Moderator|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&6}};">Moderator</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| moderator = [[Ranks#Moderator|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&6}};">Moderator</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| administrator
| administrator
| admin = [[Ranks#Admin|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&4}};">Admin</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| admin = [[Ranks#Admin|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&4}};">Admin</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| dev
| dev
| developer = [[Ranks#Developer|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&c}};">Developer</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| developer = [[Ranks#Developer|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&c}};">Developer</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
| infrastructure = [[Ranks#Infrastructure|<span style="color: {{MCColor-raw|&f}};">[</span><span style="color: {{MCColor-raw|&6}};">Infrastructure</span><span style="color: {{MCColor-raw|&f}};">]</span>]]
| infrastructure = [[Ranks#Infrastructure|<div style="color: {{MCColor-raw|&f}};">[</div><div style="color: {{MCColor-raw|&6}};">Infrastructure</div><div style="color: {{MCColor-raw|&f}};">]</div>]]
}}
}}

Revision as of 21:32, 21 August 2024

This provides the rank format as seen in-game, with a link to the corresponding one on the Ranks page – invoke this via:

{{rank|<rankname>}}

where <rankname> is self explanatory.
{{rank|wanderer}} outputs

[
Wanderer
]

.

⚠️ Warning: Only lowercase rank names are accepted as 16.png Noggisoggi didn't, doesn't and will not want to spend over 9000 hours adding every permuation of rank names in terms of capitalisation.