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
Updated for Season 4
scavenging/blueprint info now automated + updated templatedata
 
(88 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
{{#seo:|description={{#invoke:CosmeticInfo|getDescription|name={{{name}}}|plain=true}}}}
<infobox>
<infobox>
  <title source="title">
<title source="name">
    <default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
  </title>
</title>
  <image source="image"></image>
<data source="name">
  <group>
<format>{{#ifexist: File:{{{name}}}.png|{{AFix|{{{name}}}.png|270px}}|{{AFix|{{{image}}}|270px}}}}</format>
    <header><center>Details</center></header>
</data>
    <data source="type">
<group>
      <format>{{#switch: {{lc:{{{type}}}}}<!--
<header><center>Details</center></header>
  -->| hat = [[File:Hat.png|x18px|center|link=]] [[Category:Hats]]<!--
<data source="name">
  -->| accessory = [[File:Accessory.png|x18px|center|link=]] [[Category:Accessories]]<!--
<format>{{#switch: {{lc:{{#invoke:CosmeticInfo|getCategory|name={{{name}}}}}}}<!--
  -->| aura = [[File:Aura.png|x18px|center|link=]] [[Category:Auras]]<!--
-->| hat = [[File:Hat.png|x18px|center|link=]] [[Category:Hats]]<!--
  -->| trail = [[File:Trail.png|x18px|center|link=]] [[Category:Trails]]<!--
-->| accessory = [[File:Accessory.png|x18px|center|link=]] [[Category:Accessories]]<!--
  -->| cloak = [[File:Cloak.png|x18px|center|link=]] [[Category:Cloaks]]}}</format>
-->| aura = [[File:Aura.png|x18px|center|link=]] [[Category:Auras]]<!--
    </data>
-->| trail = [[File:Trail.png|x18px|center|link=]] [[Category:Trails]]<!--
    <data source="rarity">
-->| cloak = [[File:Cloak.png|x18px|center|link=]] [[Category:Cloaks]]<!--
      <format>{{#switch: {{lc:{{{rarity}}}}}<!--
-->| rod = [[File:Rod.png|x18px|center|link=]] [[Category:Rods]]}}</format>
  -->| common = [[File:Common.png|x18px|center|link=]]<!--
</data>
  -->| uncommon = [[File:Uncommon.png|x18px|center|link=]]<!--
<data source="name">
  -->| rare = [[File:Rare.png|x18px|center|link=]]<!--
<format>{{#switch: {{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}<!--
  -->| epic = [[File:Epic.png|x18px|center|link=]]<!--
-->| Common = [[File:Common.png|x18px|center|link=]]<!--
  -->| legendary = [[File:Legendary.png|x18px|center|frameless|link=]]<!--
-->| Uncommon = [[File:Uncommon.png|x18px|center|link=]]<!--
  -->| mythic = [[File:Mythic.png|x18px|center|link=]]}}</format>
-->| Rare = [[File:Rare.png|x18px|center|link=]]<!--
    </data>
-->| Epic = [[File:Epic.png|x18px|center|link=]]<!--
    <data source="rarity2">
-->| Legendary = [[File:Legendary.png|x18px|center|frameless|link=]]<!--
      <format>{{#switch: {{lc:{{{rarity2}}}}}<!--
-->| Mythic = [[File:Mythic.png|x18px|center|link=]]}}[[Category:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}} Cosmetics]]</format>
  -->| seasonal = [[File:Seasonal.png|x18px|center|link=]]<!--
</data>
  -->| limited = [[File:Limited.png|x18px|center|link=]]}}</format>
<data source="name">
    </data>
<format>{{#switch: {{#invoke:CosmeticInfo|getType|name={{{name}}}}}<!--
    <data source="chroma_applicable">
-->| #default = [[File:{{#invoke:CosmeticInfo|getType|name={{{name}}}}}.png|x18px|center|link=]]<!--
      <format><center>[[File:Icon-Color.png|20px]] Chroma Applicable</center></format>
-->| Standard = }}[[Category:{{#invoke:CosmeticInfo|getType|name={{{name}}}}} Cosmetics]]</format>
    </data>
</data>
  </group>
<data source="name">
  <data source="added">
<format>{{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|<center>[[File:Icon-Color.png|20px]] Colorable</center>[[Category:Colorable Cosmetics]]}}</format>
    <format><center>Added in {{{added}}}</center></format>
</data>
  </data>
<data source="name">
  <group>
<format>{{#switch:{{#invoke:CosmeticInfo|getType|name={{{name}}}}}<!--
    <header><center>Collection</center></header>
-->| Collector | Limited = [[File:Tradeable.png|x18px|center|link=Tradeable Cosmetics]] [[Category:Tradeable Cosmetics]]}}</format>
    <data source="collection">
</data>
      <format><center>{{#switch: {{lc:{{{collection}}}}}<!--
</group>
  -->| oceanic = [[File:Oceanic Collection.png|32px|center|link=Oceanic Collection]] [[Oceanic Collection]]<!--
<data source="added_in">
  -->| natural = [[File:Natural Collection.png|32px|center|link=Natural Collection]] [[Natural Collection]]<!--
<format><center>Added in [[{{{added_in}}}]]<br />({{PatchDate|{{{added_in}}}}})</center></format>
  -->| mechanical = [[File:Mechanical Collection.png|32px|center|link=Mechanical Collection]] [[Mechanical Collection]]<!--
</data>
  -->| magical = [[File:Magical Collection.png|32px|center|link=Magical Collection]] [[Magical Collection]]<!--
<data source="added_date">
  -->| mythic gate = [[File:Icon-Mastery-Gate.png|32px|center|link=Mythic Gate Collection]] [[Mythic Gate Collection]]<!--
<format><center>Added on {{{added_date}}}</center></format>
  -->| royal = [[File:Royal Collection.png|32px|center|link=Royal Collection]] [[Royal Collection]]<!--
</data>
  -->| secret styles = [[File:Secret Styles Collection.png|32px|center|link=Secret Styles Collection]] [[Secret Styles Collection]]<!--
<group>
  -->| pose one = [[File:Icon-Pose.png|32px|center|link=Pose One Collection]] [[Pose One Collection]]<!--
<header><center>Collection</center></header>
  -->| pose two = [[File:Pose Two Collection.png|32px|center|link=Pose Two Collection]] [[Pose Two Collection]]<!--
<data source="name">
  -->| splinters = [[File:Icon-Splinters-Workshop.png|32px|center|link=Splinters Collection]] [[Splinters Collection]]<!--
<format><center><big>{{Collection|{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}|abbr=y|size=32px}}</big> [[Category:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} Collection Cosmetics]]</center></format>
  -->| hidden = [[File:Hidden Collection.png|32px|center|link=Hidden Collection]] [[Hidden Collection]]<!--
</data>
  -->| tgttos = [[File:Icon TGTTOS.png|32px|center|link=TGTTOS Collection]] [[TGTTOS Collection]]<!--
</group>
  -->| hitw = [[File:Icon HITW .png|32px|center|link=HITW Collection]] [[HITW Collection]]<!--
<group>
  -->| battle box | bb = [[File:Icon BB.png|32px|center|link=Battle Box Collection]] [[Battle Box Collection]]<!--
<header><center>Unlock Hint</center></header>
  -->| sky battle | skb | sb = [[File:Icon SB.png|32px|center|link=Sky Battle Collection]] [[Sky Battle Collection]]<!--
<data source="name">
  -->| parkour warrior | pkw = [[File:Icon PKW.png|32px|center|link=Parkour Warrior Collection]] [[Parkour Warrior Collection]]<!--
<format><center>{{#invoke:CosmeticInfo|getObtainmentHint|name={{{name}}}}}</center></format>
  -->| dynaball | dyb = [[File:Icon DYB.png|32px|center|link=Dynaball Collection]] [[Dynaball Collection]]<!--
</data>
  -->| mystical aquatic | season 1 | season one = [[File:Mystical Aquatic Token.png|32px|center|link=Mystical Aquatic Collection]] [[Mystical Aquatic Collection]]<!--
</group>
  -->| neon galaxy | season 2 | season two = [[File:Neon Galaxy Token.png|32px|center|link=Neon Galaxy Collection]] [[Neon Galaxy Collection]]<!--
<group layout="horizontal">
  -->| candy factory | season 3 | season three = [[File:Candy Factory Token.png|32px|center|link=Candy Factory Collection]] [[Candy Factory Collection]]<!--
<header><center>Value</center></header>
  -->| ancient jungle | season 4 | season four = [[File:Ancient Jungle Token.png|32px|center|link=Ancient Jungle Collection]] [[Ancient Jungle Collection]]<!--
<data source="name">
  -->| squidtek = [[File:Squidtek Ambassador Badge.png|32px|center|link=Squidtek Collection]] [[Squidtek Collection]]<!--
<label>[[File:Style Trophy.png|32px]]</label>
  -->| spooky = [[File:Spooky Huntmaster Badge.png|32px|center|link=Spooky Collection]] [[Spooky Collection]]<!--
<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>
  -->| special = [[File:Special Collection.png|32px|center|link=Special Collection]] [[Special Collection]]<!--
</data>
  -->| bonus = [[File:Bonus Collection.png|32px|center|link=Bonus Collection]] [[Bonus Collection]]<!--
<data source="name">
  -->| aura = [[File:Icon-Aura.png|32px|center|link=Aura Collection]] [[Aura Collection]]<!--
<label>[[File:Bonus Trophy.png|32px]]</label>
  -->| trail = [[File:Icon-Trail.png|32px|center|link=Trail Collection]] [[Trail Collection]]}}</center></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>
  </group>
<data source="name">
  <group>
<label>[[File:Royal Reputation.png|32px]]</label>
    <header><center>Obtaining</center></header>
<format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}}}</format>
    <data source="obtaining">
</data>
    <format><center>{{{obtaining}}}</center></format>
</group>
    </data>
<group layout="horizontal">
  </group>
<header><center>Scavenging</center></header>
  <group layout="horizontal">
<data source="name">
    <header><center>Value</center></header>
<label>Cosmetic Token</label>
    <data source="trophies">
<format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{CosmeticScavengeRewards|name={{{name}}}}}}}</format>
    <label>[[File:Style Trophy.png|32px]]</label>
</data>
    </data>
<data source="name">
    <data source="bonus_trophies">
<label>Blueprint</label>
    <label>[[File:Icon-Champion Score Bonus.png|32px]]</label>
<format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{CosmeticScavengeRewards|name={{{name}}}|Blueprint}}}}</format>
    </data>
</data>
    <data source="reputation">
</group>
    <label>[[File:Royal Reputation.png|32px]]</label>
<group>
    </data>
<header><center>Global Number Owned{{#invoke:CosmeticInfo|lastUpdatedIcon}}</center></header>
  </group>
<data source="name">
  <group layout="horizontal">
<format>{{#if:{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{{name}}}}}|<center>{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{{name}}}}}</center>}}</format>
    <header><center>Scavenging</center></header>
</data>
    <data source="scavenge_cosmetic">
</group>
    <label>Cosmetic Token</label>
    <format>{{#switch: {{lc:{{{rarity}}}}}<!--
  -->| common = TBA [[File:Silver.png|20px]]<!--
  -->| uncommon = TBA [[File:Silver.png|20px]]<!--
  -->| rare = TBA [[File:Silver.png|20px]]<!--
  -->| epic = TBA [[File:Silver.png|20px]]<!--
  -->| legendary = TBA [[File:Silver.png|20px]]<!--
  -->| mythic = TBA [[File:Silver.png|20px]]}}</format>
    </data>
    <data source="scavenge_blueprint">
    <label>Blueprint</label>
    <format>{{#switch: {{lc:{{{rarity}}}}}<!--
  -->| common = 50 [[File:Silver.png|20px]]<!--
  -->| uncommon = 150 [[File:Silver.png|20px]]<!--
  -->| rare = 300 [[File:Silver.png|20px]]<!--
  -->| epic = 850 [[File:Silver.png|20px]]<!--
  -->| legendary = 1,200 [[File:Silver.png|20px]]}}</format>
    </data>
  </group>
</infobox>
</infobox>
{{#iferror:{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}||<blockquote>{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}</blockquote>}}
{{#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>
{
"params": {
"name": {
"type": "string",
"description": "The name of the cosmetic",
"example": "Frog Friend",
"required": true
},
"image": {
"description": "The (animated) image of the cosmetic, if the file is not found at File:{{{name}}}.png",
"type": "wiki-file-name"
},
"added_in": {
"description": "The patch version the cosmetic was added",
"type": "string",
"example": "0.8.0",
"required": true
},
"added_date": {
"description": "If not added in a patch, the date on which the cosmetic was added",
"type": "string",
"example": "June 12th, 2024"
},
"unlock_method": {
"description": "If non-standard unlock method, sentences to be used to explain it",
"required": true,
"type": "string"
},
"crafting_materials": {
"description": "If cosmetic has blueprint with a non-standard recipe, the required crafting materials with a break tag between each material.",
"type": "string"
}
},
"description": "Creates an infobox and various standard sentences for Cosmetics pages.",
"paramOrder": [
"name",
"image",
"added_in",
"added_date",
"unlock_method",
"crafting_materials"
]
}
</templatedata>
</noinclude>

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