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
No edit summary
added cosmetic types (+ tradeable tag), automated reputation amounts, removed legacy unlock_hint
Line 26: Line 26:
-->| Mythic = [[File:Mythic.png|x18px|center|link=]]}}[[Category:{{#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>
<data source="name">
<data source="name">
<format>{{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|<center>[[File:Icon-Color.png|20px]] Colorable</center>[[Category:Colorable Cosmetics]]}}</format>
<format>{{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|<center>[[File:Icon-Color.png|20px]] Colorable</center>[[Category:Colorable Cosmetics]]}}</format>
</data>
<data source="name">
<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>
Line 51: Line 55:
<data source="name">
<data source="name">
<format><center>{{#invoke:CosmeticInfo|getObtainmentHint|name={{{name}}}}}</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 68: Line 69:
<data source="name">
<data source="name">
<label>[[File:Royal Reputation.png|32px]]</label>
<label>[[File:Royal Reputation.png|32px]]</label>
<format>{{#ifeq: {{#invoke:CosmeticInfo|canBeDonated|name={{{name}}}}}|true|
<format>{{#ifeq: {{#invoke:CosmeticInfo|canBeDonated|name={{{name}}}}}|true|{{#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>

Revision as of 13:40, 26 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
rarity2rarity2

The (special) rarity of the cosmetic

Suggested values
seasonal limited
Stringoptional
unlock_hintunlock_hint

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

Stringsuggested
legacylegacy

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

Suggested values
yes
Stringoptional
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

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

Stringrequired
blueprintblueprint

Does the cosmetic have a blueprint form?

Suggested values
yes
Unknownoptional
scavenge_blueprintscavenge_blueprint

Is the blueprint scavengeable?

Booleansuggested
scavenge_cosmeticscavenge_cosmetic

Is the cosmetic token scavengeable?

Booleansuggested
crafting_materialscrafting_materials

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

Stringoptional