Template:Cosmetic: Difference between revisions
Template page
More actions
Added an invoke to Module:CosmeticDescription so the description blockquote is now automatic on cosmetic pages (reliant on data from the API). |
Added "Global Number Owned" group |
||
Line 132: | Line 132: | ||
-->| legendary = 1,200 [[File:Silver.png|20px]]<!-- | -->| legendary = 1,200 [[File:Silver.png|20px]]<!-- | ||
-->| mythic = 3,500 [[File:Silver.png|20px]]}}</format> | -->| mythic = 3,500 [[File:Silver.png|20px]]}}</format> | ||
</data> | |||
</group> | |||
<group> | |||
<header><center>Global Number Owned</center></header> | |||
<data source=""> | |||
<format><center>{{#invoke:CosmeticOwnership|getOwnershipNumber|name={{PAGENAME}}}}{{#invoke:CosmeticOwnership|lastUpdatedIcon}}</center></format> | |||
</data> | </data> | ||
</group> | </group> |
Revision as of 19:39, 13 March 2025
Script error: No such module "CosmeticDescription".
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 |