Template:Cosmetic: Difference between revisions
Template page
More actions
Fixes |
More fixes |
||
Line 24: | Line 24: | ||
-->| 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:{{ucfirst:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}} Cosmetics]]</format> | ||
</data> | </data> | ||
<data source="rarity2"> | <data source="rarity2"> | ||
Line 93: | Line 93: | ||
<data source="name"> | <data source="name"> | ||
<label>[[File:Style Trophy.png|32px]]</label> | <label>[[File:Style Trophy.png|32px]]</label> | ||
<format>{{# | <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> | ||
</data> | </data> | ||
<data source="name"> | <data source="name"> | ||
<label>[[File:Icon-Champion Score Bonus.png|32px]]</label> | <label>[[File:Icon-Champion Score Bonus.png|32px]]</label> | ||
<format>{{# | <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> | ||
</data> | </data> | ||
<data source="name"> | <data source="name"> | ||
Line 137: | Line 137: | ||
<header><center>Global Number Owned{{#invoke:CosmeticInfo|lastUpdatedIcon}}</center></header> | <header><center>Global Number Owned{{#invoke:CosmeticInfo|lastUpdatedIcon}}</center></header> | ||
<data source="name"> | <data source="name"> | ||
<format>{{#if:{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{ | <format>{{#if:{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{{name}}}}}|<center>{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{{name}}}}}</center>}}</format> | ||
</data> | </data> | ||
</group> | </group> |
Revision as of 08:20, 15 March 2025
Creates a cosmetic infobox
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | Give the infobox a custom title (defaults to page name) | String | optional |
image | image | Image or GIF of the cosmetic | File | suggested |
type | type | The cosmetic type
| String | suggested |
rarity | rarity | The rarity of the cosmetic
| String | suggested |
rarity2 | rarity2 | The (special) rarity of the cosmetic
| String | optional |
chroma_applicable | chroma_applicable | Is cosmetic chroma applicable | Boolean | suggested |
added | added | Patch (& date) the cosmetic was added | String | suggested |
collection | collection | The collection the cosmetic is part of.
| String | suggested |
obtaining | obtaining | A short description of how this cosmetic is obtained | String | suggested |
trophies | trophies | The amount of trophies received for having this cosmetic | String | suggested |
bonus_trophies | bonus_trophies | The amount of bonus trophies received for having this cosmetic | String | optional |
reputation | reputation | The amount of reputation earned for scavenging this cosmetic | Number | suggested |
scavenge_cosmetic | scavenge_cosmetic | Is item scavengeable | Boolean | suggested |
scavenge_blueprint | scavenge_blueprint | Is blueprint scavengeable | Boolean | suggested |