Template:Cosmetic: Difference between revisions
More actions
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=" | <data source="name"> | ||
<format>{{#switch: {{ | <format>{{#switch: {{#invoke:CosmeticInfo|getType|name={{{name}}}}}<!-- | ||
-->| | -->| #default = [[File:{{#invoke:CosmeticInfo|getType|name={{{name}}}}}.png|x18px|center|link=]]<!-- | ||
-->| | -->| 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> | ||
</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> | ||
</data> | </data> | ||
</group> | </group> |
Revision as of 13:40, 26 August 2025
Creates an infobox and various standard sentences for Cosmetics pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The name of the cosmetic
| String | required |
image | image | The (animated) image of the cosmetic, if the file is not found at File:{{{name}}}.png | File | optional |
rarity2 | rarity2 | The (special) rarity of the cosmetic
| String | optional |
unlock_hint | unlock_hint | The in-game string for how this cosmetic is obtained. Not required if legacy cosmetic | String | suggested |
legacy | legacy | Whether the cosmetic is obtained from the Legacy Machine. Overrides unlock_hint.
| String | optional |
added_in | added_in | The patch version the cosmetic was added
| String | required |
added_date | added_date | If not added in a patch, the date on which the cosmetic was added
| String | optional |
unlock_method | unlock_method | Sentences to be used to explain the unlocking method of the cosmetic | String | required |
blueprint | blueprint | Does the cosmetic have a blueprint form?
| Unknown | optional |
scavenge_blueprint | scavenge_blueprint | Is the blueprint scavengeable? | Boolean | suggested |
scavenge_cosmetic | scavenge_cosmetic | Is the cosmetic token scavengeable? | Boolean | suggested |
crafting_materials | crafting_materials | The required crafting materials for the cosmetic's blueprint, if it has one. Use a break tag between each material. | String | optional |