Template

Rank

From Dogcraft Wiki

m (Adding {{SITERANK}} compatibility using {{Siterank}})
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>[[Category:Annotation templates]]
<nowiki>{{Rank|<rank>|<custom text (optional, uses <rank> if empty)>}}</nowiki> appends <nowiki>[]'s</nowiki> to text and colors it based on rank color in-game.
<nowiki>{{Rank|<rank>|<custom text (optional, uses <rank> if empty)>}}</nowiki> appends <nowiki>[]'s</nowiki> to text and colors it based on rank color in-game.


Line 7: Line 7:
==Usage==
==Usage==
<nowiki>{{Rank|Mod}}</nowiki> → {{Rank|Mod}} <br>
<nowiki>{{Rank|Mod}}</nowiki> → {{Rank|Mod}} <br>
<nowiki>{{Rank|Mod|Staff Rep}}</nowiki> → {{Rank|Mod|Staff Rep}}
<nowiki>{{Rank|Mod|Staff Liaison}}</nowiki> → {{Rank|Mod|Staff Liaison}}


==Template Data==
==Template Data==
Line 22: Line 22:
}
}
}</templatedata>
}</templatedata>
</noinclude><includeonly>{{#switch:{{Siterank|{{{1}}}}}
</noinclude><includeonly>{{#switch:{{SERVERRANKtoRank|{{{1}}}}}
|EnderGod=<span style="color:#5555FF">
|EnderGod=<span style="color:#5555FF">
|HeadMod=<span style="color:#55FF55>
|HeadMod=<span style="color:#55FF55>
Line 30: Line 30:
|Events=<span style="color:#FFAA00>
|Events=<span style="color:#FFAA00>
|Staff=<span style="color:Cyan">
|Staff=<span style="color:Cyan">
|DisHeadMod=<span style="color:#55FF55">
|DisMod=<span style="color:Gold">
|Helper=<span style="color:Cyan">
|Helper=<span style="color:Cyan">
|VIP=<span style="color:#FFAA00>
|VIP=<span style="color:#FFAA00>
Line 38: Line 40:
|EmeraldPatreon=<span style="color:#00AA00">
|EmeraldPatreon=<span style="color:#00AA00">
|DiamondPatreon=<span style="color:#00AAAA">
|DiamondPatreon=<span style="color:#00AAAA">
|PatreonMod=<span style="color:olive">
|Website Headmod=<span style="color:#006633>
|Website Headmod=<span style="color:#006633>
|VIP Moderator=<span style="color:#CC3300>
|VIP Moderator=<span style="color:#CC3300>
Line 45: Line 48:
|CyberDog=<span style="color:black">
|CyberDog=<span style="color:black">
|WebAdmin=<span style="color:#fc54fc">
|WebAdmin=<span style="color:#fc54fc">
|<span style="color:Black">}}{{#if:{{{2|}}}|<nowiki>[</nowiki>{{{2|}}}<nowiki>]</nowiki>|<nowiki>[</nowiki>{{{1}}}<nowiki>]</nowiki>}}</span></includeonly><noinclude>
|<span style="color:Black">}}{{#if:{{{2|}}}|<nowiki>[</nowiki>{{{2|}}}<nowiki>]</nowiki>|<nowiki>[</nowiki>{{SERVERRANKtoRank|{{{1}}}}}<nowiki>]</nowiki>}}</span></includeonly><noinclude>

Latest revision as of 13:05, 29 December 2023

{{Rank|<rank>|<custom text (optional, uses <rank> if empty)>}} appends []'s to text and colors it based on rank color in-game.

Example

[Mod]

Usage

{{Rank|Mod}} → [Mod]
{{Rank|Mod|Staff Liaison}} → [Staff Liaison]

Template Data

Appends []'s to text and colors it based on rank color in-game.

Template parameters

ParameterDescriptionTypeStatus
Rank1

Rank name, such as: EnderGod, HeadMod, Admin, Mod, ChatMod, Events, Staff, Helper, VIP, Pioneer, Patreon, ect.

Default
CyberDog
Stringrequired