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
scavenging/blueprint info now automated + updated templatedata
 
(48 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><infobox>
<includeonly>
{{#seo:|description={{#invoke:CosmeticInfo|getDescription|name={{{name}}}|plain=true}}}}
<infobox>
<title source="name">
<title source="name">
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
Line 9: Line 11:
<header><center>Details</center></header>
<header><center>Details</center></header>
<data source="name">
<data source="name">
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getType|name={{{name}}}}}}}<!--
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getCategory|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 18: Line 20:
</data>
</data>
<data source="name">
<data source="name">
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
<format>{{#switch: {{#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=]]<!--
-->| rare = [[File:Rare.png|x18px|center|link=]]<!--
-->| Rare = [[File:Rare.png|x18px|center|link=]]<!--
-->| 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:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}} Cosmetics]]</format>
-->| Mythic = [[File:Mythic.png|x18px|center|link=]]}}[[Category:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}} Cosmetics]]</format>
</data>
</data>
<data source="rarity2">
<data source="name">
<format>{{#switch: {{lc:{{{rarity2}}}}}<!--
<format>{{#switch: {{#invoke:CosmeticInfo|getType|name={{{name}}}}}<!--
-->| seasonal = [[File:Seasonal.png|x18px|center|link=]]<!--
-->| #default = [[File:{{#invoke:CosmeticInfo|getType|name={{{name}}}}}.png|x18px|center|link=]]<!--
-->| limited = [[File:Limited.png|x18px|center|link=]]}}[[Category:{{ucfirst:{{{rarity2}}}}} Cosmetics]]</format>
-->| Standard = }}[[Category:{{#invoke:CosmeticInfo|getType|name={{{name}}}}} Cosmetics]]</format>
</data>
<data source="name">
<format>{{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|<center>[[File:Icon-Color.png|20px]] Colorable</center>[[Category:Colorable Cosmetics]]}}</format>
</data>
</data>
<data source="name">
<data source="name">
<format>{{#if:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|<center>[[File:Icon-Color.png|20px]] Colorable</center>[[Category:Colorable Cosmetics]]}}</format>
<format>{{#switch:{{#invoke:CosmeticInfo|getType|name={{{name}}}}}<!--
-->| Collector | Limited = [[File:Tradeable.png|x18px|center|link=Tradeable Cosmetics]] [[Category:Tradeable 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 source="added_date">
<format><center>Added on {{{added_date}}}</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:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}<!--
<format><center><big>{{Collection|{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}|abbr=y|size=32px}}</big> [[Category:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} Collection Cosmetics]]</center></format>
-->| oceanic | natural | mechanical | magical | royal | hidden | special | bonus =<!--
-->[[File:{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection.png|32px|center|link={{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]]<!--
--> [[{{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]]<!--
--> [[Category:Mythic Gate Collection Cosmetics]]<!--
-->| secret styles = [[File:Secret Styles Collection.png|32px|center|link=Secret Styles Collection]] [[Secret Styles Collection]]<!--
--> [[Category:Secret Styles Collection Cosmetics]]<!--
-->| pose one = [[File:Icon-Pose.png|32px|center|link=Pose One Collection]] [[Pose One Collection]]<!--
--> [[Category:Pose One Collection Cosmetics]]<!--
-->| pose two = [[File:Pose Two Collection.png|32px|center|link=Pose Two Collection]] [[Pose Two Collection]]<!--
--> [[Category:Pose Two Collection Cosmetics]]<!--
-->| splinters = [[File:Icon-Splinters-Workshop.png|32px|center|link=Splinters Collection]] [[Splinters Collection]]<!--
--> [[Category:Splinters Collection Cosmetics]]<!--
-->| tgttos = [[File:Icon TGTTOS.png|32px|center|link=TGTTOS Collection]] [[TGTTOS Collection]]<!--
--> [[Category:TGTTOS Collection Cosmetics]]<!--
-->| hitw = [[File:Icon HITW .png|32px|center|link=HITW Collection]] [[HITW Collection]]<!--
--> [[Category:HITW Collection Cosmetics]]<!--
-->| battle box | bb = [[File:Icon BB.png|32px|center|link=Battle Box Collection]] [[Battle Box Collection]]<!--
--> [[Category:Battle Box Collection Cosmetics]]<!--
-->| sky battle | skb | sb = [[File:Icon SB.png|32px|center|link=Sky Battle Collection]] [[Sky Battle Collection]]<!--
--> [[Category:Sky Battle Collection Cosmetics]]<!--
-->| parkour warrior | pkw = [[File:Icon PKW.png|32px|center|link=Parkour Warrior Collection]] [[Parkour Warrior Collection]]<!--
--> [[Category:Parkour Warrior Collection Cosmetics]]<!--
-->| dynaball | dyb = [[File:Icon DYB.png|32px|center|link=Dynaball Collection]] [[Dynaball Collection]]<!--
--> [[Category:Dynaball Collection Cosmetics]]<!--
-->| mystical aquatic | season 1 | season one = [[File:Mystical Aquatic Token.png|32px|center|link=Mystical Aquatic Collection]]<!--
--> [[Mystical Aquatic Collection]] [[Category:Mystical Aquatic Collection Cosmetics]]<!--
-->| neon galaxy | season 2 | season two = [[File:Neon Galaxy Token.png|32px|center|link=Neon Galaxy Collection]] [[Neon Galaxy Collection]]<!--
--> [[Category:Neon Galaxy Collection Cosmetics]]<!--
-->| candy factory | season 3 | season three = [[File:Candy Factory Token.png|32px|center|link=Candy Factory Collection]]<!--
--> [[Candy Factory Collection]] [[Category:Candy Factory Collection Cosmetics]]<!--
-->| ancient jungle | season 4 | season four = [[File:Ancient Jungle Token.png|32px|center|link=Ancient Jungle Collection]]<!--
--> [[Ancient Jungle Collection]] [[Category:Ancient Jungle Collection Cosmetics]]<!--
-->| squidtek = [[File:Squidtek Ambassador Badge.png|32px|center|link=Squidtek Collection]] [[Squidtek Collection]]<!--
--> [[Category:Squidtek Collection Cosmetics]]<!--
-->| spooky = [[File:Spooky Huntmaster Badge.png|32px|center|link=Spooky Collection]] [[Spooky Collection]]<!--
--> [[Category:Spooky Collection Cosmetics]]<!--
-->| aura | trail = [[File:Icon-{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}.png|32px|center|link={{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]]<!--
--> [[{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]] [[Category:{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection Cosmetics]]}}</center></format>
</data>
</data>
</group>
</group>
<group>
<group>
<header><center>Unlock Hint</center></header>
<header><center>Unlock Hint</center></header>
<data source="unlock_hint">
<data source="name">
<format>{{#if: {{{legacy|}}}||<center>{{{unlock_hint}}}}}</center></format>
<format><center>{{#invoke:CosmeticInfo|getObtainmentHint|name={{{name}}}}}</center></format>
</data>
<data source="legacy">
<format><center>This cosmetic is from a past event or season, so is now obtained from the [[Legacy Cosmetic Machine]].</center></format>
</data>
</data>
</group>
</group>
Line 96: Line 63:
<data source="name">
<data source="name">
<label>[[File:Style Trophy.png|32px]]</label>
<label>[[File:Style Trophy.png|32px]]</label>
<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>
<format>{{#if:{{{style_trophies|}}}|{{{style_trophies}}}|{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|false|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}} {{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|([[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:Bonus Trophy.png|32px]]</label>
<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>
<format>{{#if:{{{bonus_trophies|}}}|{{{bonus_trophies}}}|{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}} {{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|([[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: {{#invoke:CosmeticInfo|canBeDonated|name={{{name}}}}}|
<format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}}}</format>
{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
-->| common = 1<!--
-->| uncommon = 2<!--
-->| rare = 3<!--
-->| epic = 5<!--
-->| legendary = 7<!--
-->| mythic = 10}}}}</format>
</data>
</data>
</group>
</group>
<group layout="horizontal">
<group layout="horizontal">
<header><center>Scavenging</center></header>
<header><center>Scavenging</center></header>
<data source="scavenge_cosmetic">
<data source="name">
<label>Cosmetic Token</label>
<label>Cosmetic Token</label>
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
<format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{CosmeticScavengeRewards|name={{{name}}}}}}}</format>
-->| common = {{Silver|200}}<!--
-->| uncommon = {{Silver|750}}<!--
-->| rare = {{Silver|2,000}}<!--
-->| epic = {{Silver|3,750}}<!--
-->| legendary = {{Silver|6,250}}<!--
-->| mythic = {{Silver|18,000}}}}</format>
</data>
</data>
<data source="scavenge_blueprint">
<data source="name">
<label>Blueprint</label>
<label>Blueprint</label>
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
<format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{CosmeticScavengeRewards|name={{{name}}}|Blueprint}}}}</format>
-->| common = {{Silver|50}}<!--
-->| uncommon = {{Silver|150}}<!--
-->| rare = {{Silver|300}}<!--
-->| epic = {{Silver|850}}<!--
-->| legendary = {{Silver|1,200}}<!--
-->| mythic = {{Silver|3,500}}}}</format>
</data>
</data>
</group>
</group>
Line 144: Line 92:
</group>
</group>
</infobox>
</infobox>
{{#if:{{#iferror:{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}|}}|<blockquote>{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}</blockquote>}}
{{#iferror:{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}||<blockquote>{{#invoke:CosmeticInfo|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:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|<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.|
{{#invoke:CosmeticInfo/Paragraph|make|name={{{name}}}|added_date={{{added_date|}}}|added_in={{{added_in|}}}|unlock_method={{{unlock_method|}}}|style_perk={{{style_perk|}}}|crafting_materials={{{crafting_materials|}}}}}</includeonly><noinclude><templatedata>
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<!--
    -->| uncommon = 750<!--
    -->| rare = 2,000<!--
    -->| epic = 3,750<!--
    -->| legendary = 6,250<!--
    -->| mythic = 18,000}}}} [[Silver]] and {{Royal Reputation|{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
    -->| common = 1<!--
    -->| uncommon = 2<!--
    -->| rare = 3<!--
    -->| epic = 5<!--
    -->| legendary = 7<!--
    -->| mythic = 10}}}} [[Royal Reputation]] in the [[Scavenger's Hideout]].}}
 
==== Blueprint Recipe ====
The blueprint form of the cosmetic must be crafted at the [[Blueprint Assembler]] into a cosmetic token before use. Alternatively, it can be scavenged for {{Silver|{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!--
    -->| common = 50<!--
    -->| uncommon = 150<!--
    -->| rare = 300<!--
    -->| epic = 850<!--
    -->| legendary = 1,200<!--
    -->| mythic = 3,500}}}} [[Silver]] in the [[Scavenger's Hideout]].
{{Blueprint
|item = {{#ifexist: File:{{{name}}}.png|[[File:{{{name}}}.png|25px]]|[[File:{{{image}}}|25px]]}} {{{name}}} Token
|required_materials = {{{crafting_materials}}}
|rarity = {{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}
|legacy = {{{legacy}}}
}}
 
</includeonly><noinclude><templatedata>
{
{
"params": {
"params": {
Line 187: Line 105:
"description": "The (animated) image of the cosmetic, if the file is not found at File:{{{name}}}.png",
"description": "The (animated) image of the cosmetic, if the file is not found at File:{{{name}}}.png",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
"rarity2": {
"description": "The (special) rarity of the cosmetic",
"type": "string",
"suggestedvalues": [
"seasonal",
"limited"
]
},
},
"added_in": {
"added_in": {
Line 202: Line 112:
"required": true
"required": true
},
},
"unlock_hint": {
"added_date": {
"description": "The in-game string for how this cosmetic is obtained. Not required if legacy cosmetic",
"description": "If not added in a patch, the date on which the cosmetic was added",
"type": "string",
"suggested": true
},
"scavenge_cosmetic": {
"description": "Is the cosmetic token scavengeable?",
"type": "boolean",
"suggested": true
},
"scavenge_blueprint": {
"description": "Is the blueprint scavengeable?",
"type": "boolean",
"suggested": true
},
"legacy": {
"description": "Whether the cosmetic is obtained from the Legacy Machine. Overrides unlock_hint.",
"type": "string",
"type": "string",
"suggestedvalues": [
"example": "June 12th, 2024"
"yes"
]
},
},
"unlock_method": {
"unlock_method": {
"description": "Sentences to be used to explain the unlocking method of the cosmetic",
"description": "If non-standard unlock method, sentences to be used to explain it",
"required": true,
"required": true,
"type": "string"
"type": "string"
},
},
"crafting_materials": {
"crafting_materials": {
"description": "The required crafting materials for the cosmetic's blueprint, if it has one. Use a break tag between each material.",
"description": "If cosmetic has blueprint with a non-standard recipe, the required crafting materials with a break tag between each material.",
"type": "string"
"type": "string"
}
}
Line 238: Line 131:
"name",
"name",
"image",
"image",
"rarity2",
"added_in",
"added_in",
"unlock_hint",
"added_date",
"scavenge_cosmetic",
"scavenge_blueprint",
"legacy",
"unlock_method",
"unlock_method",
"crafting_materials"
"crafting_materials"

Latest revision as of 15:28, 30 August 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
added_inadded_in

The patch version the cosmetic was added

Example
0.8.0
Stringrequired
added_dateadded_date

If not added in a patch, the date on which the cosmetic was added

Example
June 12th, 2024
Stringoptional
unlock_methodunlock_method

If non-standard unlock method, sentences to be used to explain it

Stringrequired
crafting_materialscrafting_materials

If cosmetic has blueprint with a non-standard recipe, the required crafting materials with a break tag between each material.

Stringoptional