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
more fixes
Simplified collection format
Line 18: Line 18:
</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="rarity2">
Line 41: Line 41:
<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>
Line 172: Line 133:
|required_materials = {{{crafting_materials}}}
|required_materials = {{{crafting_materials}}}
|rarity = {{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}
|rarity = {{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}
|legacy = {{{legacy}}}
|legacy = {{{legacy|}}}
}}
}}



Revision as of 12:05, 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
unlock_hintunlock_hint

The in-game string for how this cosmetic is obtained. Not required if legacy cosmetic

Stringsuggested
scavenge_cosmeticscavenge_cosmetic

Is the cosmetic token scavengeable?

Booleansuggested
scavenge_blueprintscavenge_blueprint

Is the blueprint scavengeable?

Booleansuggested
legacylegacy

Whether the cosmetic is obtained from the Legacy Machine. Overrides unlock_hint.

Suggested values
yes
Stringoptional
unlock_methodunlock_method

Sentences to be used to explain the unlocking method of the cosmetic

Stringrequired
crafting_materialscrafting_materials

The required crafting materials for the cosmetic's blueprint, if it has one. Use a break tag between each material.

Stringoptional