Template

Rank

From Dogcraft Wiki

mNo edit summary
mNo edit summary
Line 11: Line 11:
==Template Data==
==Template Data==
<templatedata>{
<templatedata>{
  "description": "Appends []'s to text and colors it based on rank color in-game.",
"description": "Appends []'s to text and colors it based on rank color in-game.",
  "params": {
"params": {
    "1": {
"1": {
      "label": "Rank",
"label": "Rank",
      "description": "Rank name, such as: EnderGod, HeadMod, Admin, Mod, ChatMod, Events, Staff, Helper, VIP, Pioneer, Patreon",
"description": "Rank name, such as: EnderGod, HeadMod, Admin, Mod, ChatMod, Events, Staff, Helper, VIP, Pioneer, Patreon, ect.",
      "type": "string",
"type": "string",
      "default": "CyberDog",
"default": "CyberDog",
      "required": true
"required": true
    }
}
  }
}
}</templatedata>
}</templatedata>
</noinclude><includeonly>{{#switch:{{{1}}}
</noinclude><includeonly>{{#switch:{{{1}}}
Line 44: Line 44:
|Administrator (Forum)=<span style="color:#663399">
|Administrator (Forum)=<span style="color:#663399">
|CyberDog=<span style="color:black">
|CyberDog=<span style="color:black">
|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>{{{1}}}<nowiki>]</nowiki>}}</span></includeonly><noinclude>

Revision as of 03:10, 6 December 2020

{{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 Rep}} → [Staff Rep]

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
This page was last modified on 6 December 2020, at 03:10. (10 months ago)