Template

SERVERRANKtoRank

From Dogcraft Wiki

(Created page with "<noinclude> <nowiki>{{Siterank|<rank>}}</nowiki> is an internal template that converts output from the <nowiki>{{SITERANK}}</nowiki> template into the format recognised by the...")
 
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>[[Category:User data templates]]
<nowiki>{{Siterank|<rank>}}</nowiki> is an internal template that converts output from the <nowiki>{{SITERANK}}</nowiki> template into the format recognised by the <nowiki>{{Rank}}</nowiki> template.  
<nowiki>{{SERVERRANKtoRank|<rank>}}</nowiki> is a technical template that converts output from the <nowiki>{{SERVERRANK}}</nowiki> template into the format recognised by the <nowiki>{{Rank}}</nowiki> template.  


==Example==
==Example==
<nowiki>{{Siteank|cyberdog}}</nowiki> → {{Siterank|cyberdog}}
<nowiki>{{SERVERRANKtoRank|cyberdog}}</nowiki> → {{SERVERRANKtoRank|cyberdog}}


==Template data==
<templatedata>
{
"params": {
"1": {
"label": "SITERANK output",
"description": "An all lowercase rank name outputted by the SITERANK template. Can be: endergod, headmod, admin, webadmin, mod, chatmod, events, staff, helper, vip, pioneer, patreon, ironpatreon, goldpatreon, emeraldpatreon, diamondpatreon and cyberdog",
"example": "chatmod",
"type": "string",
"required": true
}
},
"description": "A technical template to convert between the output of {{SERVERRANK}} and the accepted input format of {{Rank}}.",
"format": "inline"
}
</templatedata>
</noinclude><includeonly>{{#switch:{{{1}}}
</noinclude><includeonly>{{#switch:{{{1}}}
|endergod=EnderGod
|endergod=EnderGod

Latest revision as of 13:17, 4 December 2023

{{SERVERRANKtoRank|<rank>}} is a technical template that converts output from the {{SERVERRANK}} template into the format recognised by the {{Rank}} template.

Example

{{SERVERRANKtoRank|cyberdog}} → CyberDog


Template data

A technical template to convert between the output of {{SERVERRANK}} and the accepted input format of {{Rank}}.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
SITERANK output1

An all lowercase rank name outputted by the SITERANK template. Can be: endergod, headmod, admin, webadmin, mod, chatmod, events, staff, helper, vip, pioneer, patreon, ironpatreon, goldpatreon, emeraldpatreon, diamondpatreon and cyberdog

Example
chatmod
Stringrequired
Background Valentine's Day Event 2024 by TheWhiteTigerNL