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
m WHOOPS
This is a mess
Line 1: Line 1:
<includeonly>
<includeonly><infobox>
{{#invoke:CosmeticInfo|getAllData|name={{{name}}}}}
{{#if:{{{name}}}|<infobox>
<title source="name">
<title source="name">
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
Line 11: Line 9:
<header><center>Details</center></header>
<header><center>Details</center></header>
<data source="name">
<data source="name">
<format>{{#switch: {{lc:{{{type}}}}}<!--
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getType|name={{{name}}}}}}}<!--
-->| hat = [[File:Hat.png|x18px|center|link=]] [[Category:Hats]]<!--
-->| hat = [[File:Hat.png|x18px|center|link=]] [[Category:Hats]]<!--
-->| accessory = [[File:Accessory.png|x18px|center|link=]] [[Category:Accessories]]<!--
-->| accessory = [[File:Accessory.png|x18px|center|link=]] [[Category:Accessories]]<!--
Line 20: Line 18:
</data>
</data>
<data source="name">
<data source="name">
<format>{{#switch: {{lc:{{{rarity}}}}}<!--
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
-->| common = [[File:Common.png|x18px|center|link=]]<!--
-->| common = [[File:Common.png|x18px|center|link=]]<!--
-->| uncommon = [[File:Uncommon.png|x18px|center|link=]]<!--
-->| uncommon = [[File:Uncommon.png|x18px|center|link=]]<!--
Line 26: Line 24:
-->| epic = [[File:Epic.png|x18px|center|link=]]<!--
-->| epic = [[File:Epic.png|x18px|center|link=]]<!--
-->| legendary = [[File:Legendary.png|x18px|center|frameless|link=]]<!--
-->| legendary = [[File:Legendary.png|x18px|center|frameless|link=]]<!--
-->| mythic = [[File:Mythic.png|x18px|center|link=]]}}[[Category:{{ucfirst:{{{rarity}}}}} Cosmetics]]</format>
-->| mythic = [[File:Mythic.png|x18px|center|link=]]}}[[Category:{{ucfirst:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}} Cosmetics]]</format>
</data>
</data>
<data source="rarity2">
<data source="rarity2">
Line 34: Line 32:
</data>
</data>
<data source="name">
<data source="name">
<format>{{#if:{{{colorable}}}|<center>[[File:Icon-Color.png|20px]] Colorable</center>[[Category:Colorable Cosmetics]]}}</format>
<format>{{#if:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|<center>[[File:Icon-Color.png|20px]] Colorable</center>[[Category:Colorable Cosmetics]]}}</format>
</data>
</data>
</group>
</group>
<data source="added_in">
<data source="added_in">
<format><center>Added in [[{{{added_in}}}]]<br />({{PatchDate|{{{added_in}}}})</center></format>
<format><center>Added in [[{{{added_in}}}]]<br />({{PatchDate|{{{added_in}}}}})</center></format>
</data>
</data>
<group>
<group>
<header><center>Collection</center></header>
<header><center>Collection</center></header>
<data source="name">
<data source="name">
<format><center>{{#switch: {{lc:{{{collection}}}}}<!--
<format><center>{{#switch: {{lc:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}<!--
-->| oceanic | natural | mechanical | magical | royal | hidden | special | bonus =<!--
-->| oceanic | natural | mechanical | magical | royal | hidden | special | bonus =<!--
-->[[File:{{ucfirst:{{{collection}}}}} Collection.png|32px|center|link={{ucfirst:{{{collection}}}}} Collection]]<!--
-->[[File:{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection.png|32px|center|link={{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]]<!--
--> [[{{ucfirst:{{{collection}}}}} Collection]] [[Category:{{ucfirst:{{{collection}}}}} Collection Cosmetics]]<!--
--> [[{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]] [[Category:{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection Cosmetics]]<!--
-->| mythic gate = [[File:Icon-Mastery-Gate.png|32px|center|link=Mythic Gate Collection]] [[Mythic Gate Collection]]<!--
-->| mythic gate = [[File:Icon-Mastery-Gate.png|32px|center|link=Mythic Gate Collection]] [[Mythic Gate Collection]]<!--
--> [[Category:Mythic Gate Collection Cosmetics]]<!--
--> [[Category:Mythic Gate Collection Cosmetics]]<!--
Line 81: Line 79:
-->| spooky = [[File:Spooky Huntmaster Badge.png|32px|center|link=Spooky Collection]] [[Spooky Collection]]<!--
-->| spooky = [[File:Spooky Huntmaster Badge.png|32px|center|link=Spooky Collection]] [[Spooky Collection]]<!--
--> [[Category:Spooky Collection Cosmetics]]<!--
--> [[Category:Spooky Collection Cosmetics]]<!--
-->| aura | trail = [[File:Icon-{{ucfirst:{{{collection}}}}}.png|32px|center|link={{ucfirst:{{{collection}}}}} Collection]]<!--
-->| aura | trail = [[File:Icon-{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}.png|32px|center|link={{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]]<!--
--> [[{{ucfirst:{{{collection}}}}} Collection]] [[Category:{{ucfirst:{{{collection}}}}} Collection Cosmetics]]}}</center></format>
--> [[{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]] [[Category:{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection Cosmetics]]}}</center></format>
</data>
</data>
</group>
</group>
Line 95: Line 93:
<data source="name">
<data source="name">
<label>[[File:Style Trophy.png|32px]]</label>
<label>[[File:Style Trophy.png|32px]]</label>
<format>{{#ifeq:{{{isBonusTrophies}}}|false|{{{trophies}}} {{#if:{{{colorable}}}|([[File:Icon-Color.png|20px]]+10)}}}}</format>
<format>{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|false|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}} {{#if:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|([[File:Icon-Color.png|20px]]+10)}}}}</format>
</data>
</data>
<data source="name">
<data source="name">
<label>[[File:Icon-Champion Score Bonus.png|32px]]</label>
<label>[[File:Icon-Champion Score Bonus.png|32px]]</label>
<format>{{#ifeq:{{{isBonusTrophies}}}|true|{{{trophies}}} {{#if:{{{colorable}}}|([[File:Icon-Color.png|20px]]+10)}}}}</format>
<format>{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}} {{#if:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|([[File:Icon-Color.png|20px]]+10)}}}}</format>
</data>
</data>
<data source="name">
<data source="name">
<label>[[File:Royal Reputation.png|32px]]</label>
<label>[[File:Royal Reputation.png|32px]]</label>
<format>{{#if: {{{canBeDonated}}}|
<format>{{#if: {{#invoke:CosmeticInfo|canBeDonated|name={{{name}}}}}|
{{#switch: {{lc:{{{rarity}}}}}<!--
{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
-->| common = 1<!--
-->| common = 1<!--
-->| uncommon = 2<!--
-->| uncommon = 2<!--
Line 117: Line 115:
<data source="scavenge_cosmetic">
<data source="scavenge_cosmetic">
<label>Cosmetic Token</label>
<label>Cosmetic Token</label>
<format>{{#switch: {{lc:{{{rarity}}}}}<!--
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
-->| common = 200 [[File:Silver.png|20px]]<!--
-->| common = 200 [[File:Silver.png|20px]]<!--
-->| uncommon = 750 [[File:Silver.png|20px]]<!--
-->| uncommon = 750 [[File:Silver.png|20px]]<!--
Line 127: Line 125:
<data source="scavenge_blueprint">
<data source="scavenge_blueprint">
<label>Blueprint</label>
<label>Blueprint</label>
<format>{{#switch: {{lc:{{{rarity}}}}}<!--
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
-->| common = 50 [[File:Silver.png|20px]]<!--
-->| common = 50 [[File:Silver.png|20px]]<!--
-->| uncommon = 150 [[File:Silver.png|20px]]<!--
-->| uncommon = 150 [[File:Silver.png|20px]]<!--
Line 137: Line 135:
</group>
</group>
<group>
<group>
<header><center>Global Number Owned{{{lastUpdatedIcon}}}</center></header>
<header><center>Global Number Owned{{#invoke:CosmeticInfo|lastUpdatedIcon}}</center></header>
<data source="name">
<data source="name">
<format>{{#if:{{{globalNumberOwned}}}|<center>{{{globalNumberOwned}}}</center>}}</format>
<format>{{#if:{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{{name}}}}}|<center>{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{{name}}}}}</center>}}</format>
</data>
</data>
</group>
</group>
</infobox>
</infobox>
{{#if:{{#iferror:{{{description}}}|}}|<blockquote>{{{description}}}</blockquote>}}}}
{{#if:{{#iferror:{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}|}}|<blockquote>{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}</blockquote>}}</includeonly>
'''{{{name}}}''' is a {{Rarity|{{{rarity}}}|Text}}{{#if:{{{rarity2}}}| and {{Rarity|{{{rarity2}}}|Text}}}} {{Type|{{{type}}}}} [[cosmetic]], found within the {{Collection|{{{collection}}}}}, that was introduced in [[Patch {{{added_in}}}]]. {{{unlock_method}}}
'''{{{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.|
 
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}}}}}<!--
{{#if:{{{colorable}}}|It is {{Colorable}}, meaning players can apply [[Chroma Pack|chroma packs]] to it, allowing them to change its colour.
 
Owning it rewards the player with a total of {{Style Trophy|{{#expr:{{{trophies}}}+10}}|text = yes}} - {{Style Trophy|{{{trophies}}}}} 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|{{{trophies}}}|text = yes}}.}}
 
{{#if:{{{scavenge_cosmetic}}}|<br /><br />Its token form can be scavenged for {{#switch: {{lc:{{{rarity}}}}}<!--
     -->| common = 200<!--
     -->| common = 200<!--
     -->| uncommon = 750<!--
     -->| uncommon = 750<!--
Line 163: Line 155:
     -->| epic = 5<!--
     -->| epic = 5<!--
     -->| legendary = 7<!--
     -->| legendary = 7<!--
     -->| mythic = 10}} {{Royal Reputation}} in the [[Scavenger's Hideout]].}}
     -->| mythic = 10}} {{Royal Reputation}} in the [[Scavenger's Hideout]].}}</includeonly><noinclude><templatedata>
</includeonly><noinclude><templatedata>
{
{
"params": {
"params": {

Revision as of 09:13, 15 March 2025

{{{name}}} is a and cosmetic, found within the Collection, that was introduced in [[Patch {{{added_in}}}]]. {{{unlock_method}}}It is Colorable, meaning players can apply chroma packs to it, allowing them to change its colour.

Owning it rewards the player with a total of 10 Style Trophies - for owning it and an extra 10 if all 4 chroma packs are applied to it.

Its token form can be scavenged for and in the Scavenger's Hideout.</includeonly>

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
addedadded

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