Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Cosmetic: Difference between revisions

Template page
mNo edit summary
Final edit (?)
Line 116: Line 116:
<label>Cosmetic Token</label>
<label>Cosmetic Token</label>
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
-->| common = 200 [[File:Silver.png|20px]]<!--
-->| common = {{Silver|200}}<!--
-->| uncommon = 750 [[File:Silver.png|20px]]<!--
-->| uncommon = {{Silver|750}}<!--
-->| rare = 2,000 [[File:Silver.png|20px]]<!--
-->| rare = {{Silver|2,000}}<!--
-->| epic = 3,750 [[File:Silver.png|20px]]<!--
-->| epic = {{Silver|3,750}}<!--
-->| legendary = 6,250 [[File:Silver.png|20px]]<!--
-->| legendary = {{Silver|6,250}}<!--
-->| mythic = 18,000 [[File:Silver.png|20px]]}}</format>
-->| mythic = {{Silver|18,000}}}}</format>
</data>
</data>
<data source="scavenge_blueprint">
<data source="scavenge_blueprint">
<label>Blueprint</label>
<label>Blueprint</label>
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
-->| common = 50 [[File:Silver.png|20px]]<!--
-->| common = {{Silver|50}}<!--
-->| uncommon = 150 [[File:Silver.png|20px]]<!--
-->| uncommon = {{Silver|150}}<!--
-->| rare = 300 [[File:Silver.png|20px]]<!--
-->| rare = {{Silver|300}}<!--
-->| epic = 850 [[File:Silver.png|20px]]<!--
-->| epic = {{Silver|850}}<!--
-->| legendary = 1,200 [[File:Silver.png|20px]]<!--
-->| legendary = {{Silver|1,200}}<!--
-->| mythic = 3,500 [[File:Silver.png|20px]]}}</format>
-->| mythic = {{Silver|3,500}}}}</format>
</data>
</data>
</group>
</group>
Line 142: Line 142:
</infobox>
</infobox>
{{#if:{{#iferror:{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}|}}|<blockquote>{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}</blockquote>}}
{{#if:{{#iferror:{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}|}}|<blockquote>{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}</blockquote>}}
'''{{{name}}}''' is a {{Rarity|{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}|Text}}{{#if:{{{rarity2}}}| and {{Rarity|{{{rarity2}}}|Text}}}} {{Type|{{#invoke:CosmeticInfo|getType|name={{{name}}}}}}} [[cosmetic]], found within the {{Collection|{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}, that was introduced in [[Patch {{{added_in}}}]]. {{{unlock_method}}}{{#if:{{{colorable}}}|It is {{Colorable}}, meaning players can apply [[Chroma Pack|chroma packs]] to it, allowing them to change its colour.<br /><br />Owning it rewards the player with a total of {{Style Trophy|{{#expr:{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}+10}}|text = yes}} - {{Style Trophy|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}}} for owning it and an extra {{Style Trophy|10}} if all 4 [[Chroma Pack|chroma packs]] are applied to it.|
'''{{{name}}}''' is a {{Rarity|{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}|Text}}{{#if:{{{rarity2}}}| and {{Rarity|{{{rarity2}}}|Text}}}} {{Type|{{#invoke:CosmeticInfo|getType|name={{{name}}}}}}} [[cosmetic]], found within the {{Collection|{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}, that was introduced in [[Patch {{{added_in}}}]]. {{{unlock_method}}}{{#if:{{{colorable}}}|<br /><br />It is {{Colorable}}, meaning players can apply [[Chroma Pack|chroma packs]] to it, allowing them to change its colour.<br /><br />Owning it rewards the player with a total of {{Style Trophy|{{#expr:{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}+10}}|text = yes}} - {{Style Trophy|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}}} for owning it and an extra {{Style Trophy|10}} if all 4 [[Chroma Pack|chroma packs]] are applied to it.|
It rewards the player with a total of {{Style Trophy|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}|text = yes}}.}}{{#if:{{{scavenge_cosmetic}}}|<br /><br />Its token form can be scavenged for {{#switch: {{lc:{{{rarity}}}}}<!--
It rewards the player with a total of {{Style Trophy|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}|text = yes}}.}}{{#if:{{{scavenge_cosmetic}}}|<br /><br />Its token form can be scavenged for {{Silver|{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
     -->| common = 200<!--
     -->| common = 200<!--
     -->| uncommon = 750<!--
     -->| uncommon = 750<!--
Line 149: Line 149:
     -->| epic = 3,750<!--
     -->| epic = 3,750<!--
     -->| legendary = 6,250<!--
     -->| legendary = 6,250<!--
     -->| mythic = 18,000}} {{Silver}} and {{#switch: {{lc:{{{rarity}}}}}<!--
     -->| mythic = 18,000}}}} and {{Royal Reputation|{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
     -->| common = 1<!--
     -->| common = 1<!--
     -->| uncommon = 2<!--
     -->| uncommon = 2<!--
Line 155: Line 155:
     -->| epic = 5<!--
     -->| epic = 5<!--
     -->| legendary = 7<!--
     -->| legendary = 7<!--
     -->| mythic = 10}} {{Royal Reputation}} in the [[Scavenger's Hideout]].}}</includeonly><noinclude><templatedata>
     -->| mythic = 10}}}} in the [[Scavenger's Hideout]].}}</includeonly><noinclude><templatedata>
{
{
"params": {
"params": {
Line 176: Line 176:
]
]
},
},
"added": {
"added_in": {
"description": "The patch version the cosmetic was added",
"description": "The patch version the cosmetic was added",
"type": "string",
"type": "string",
Line 203: Line 203:
"image",
"image",
"rarity2",
"rarity2",
"added",
"added_in",
"obtaining",
"obtaining",
"scavenge_cosmetic",
"scavenge_cosmetic",

Revision as of 09:19, 15 March 2025

Creates an infobox and various standard sentences for Cosmetics pages.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

The name of the cosmetic

Example
Frog Friend
Stringrequired
imageimage

The (animated) image of the cosmetic, if the file is not found at File:{{{name}}}.png

Fileoptional
rarity2rarity2

The (special) rarity of the cosmetic

Suggested values
seasonal limited
Stringoptional
added_inadded_in

The patch version the cosmetic was added

Example
0.8.0
Stringrequired
obtainingobtaining

The in-game string for how this cosmetic is obtained

Stringrequired
scavenge_cosmeticscavenge_cosmetic

Is the cosmetic token scavengeable?

Booleansuggested
scavenge_blueprintscavenge_blueprint

Is the blueprint scavengeable?

Booleansuggested