Template:Cosmetic: Difference between revisions
Template page
More actions
Infobox revamp |
Fixes |
||
Line 4: | Line 4: | ||
</title> | </title> | ||
<data source="name"> | <data source="name"> | ||
<format | <format>{{#ifexist: File:{{{name}}}.png|{{AFix|{{{name}}}.png|270px}}|{{AFix|{{{image}}}|270px}}}}</format> | ||
</data> | </data> | ||
<group> | <group> | ||
Line 25: | 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:{{{ | -->| 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 44: | Line 43: | ||
<format><center>{{#switch: {{lc:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}<!-- | <format><center>{{#switch: {{lc:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}<!-- | ||
-->| oceanic | natural | mechanical | magical | royal | hidden | special | bonus =<!-- | -->| oceanic | natural | mechanical | magical | royal | hidden | special | bonus =<!-- | ||
-->[[File:{{ucfirst:{{{ | -->[[File:{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection.png|32px|center|link={{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]]<!-- | ||
--> [[{{ucfirst:{{{ | --> [[{{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]]<!-- | -->| mythic gate = [[File:Icon-Mastery-Gate.png|32px|center|link=Mythic Gate Collection]] [[Mythic Gate Collection]]<!-- | ||
--> [[Category:Mythic Gate Collection Cosmetics]]<!-- | --> [[Category:Mythic Gate Collection Cosmetics]]<!-- | ||
Line 80: | Line 79: | ||
-->| spooky = [[File:Spooky Huntmaster Badge.png|32px|center|link=Spooky Collection]] [[Spooky Collection]]<!-- | -->| spooky = [[File:Spooky Huntmaster Badge.png|32px|center|link=Spooky Collection]] [[Spooky Collection]]<!-- | ||
--> [[Category:Spooky Collection Cosmetics]]<!-- | --> [[Category:Spooky Collection Cosmetics]]<!-- | ||
-->| aura | trail = [[File:Icon-{{ucfirst:{{{ | -->| aura | trail = [[File:Icon-{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}.png|32px|center|link={{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]]<!-- | ||
--> [[{{ucfirst:{{{ | --> [[{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection]] [[Category:{{ucfirst:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}} Collection Cosmetics]]}}</center></format> | ||
</data> | </data> | ||
</group> | </group> | ||
Line 94: | Line 93: | ||
<data source="name"> | <data source="name"> | ||
<label>[[File:Style Trophy.png|32px]]</label> | <label>[[File:Style Trophy.png|32px]]</label> | ||
<format>{{#if: {{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}||{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}} {{#if:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|([[File:Icon-Color.png|20px]]+10) | <format>{{#if: {{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}||{{#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>{{#if: {{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}} {{#if:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|([[File:Icon-Color.png|20px]]+10) | <format>{{#if: {{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}||{{#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 138: | 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| | <format>{{#if:{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{PAGENAME}}}}|<center>{{#invoke:CosmeticInfo|getGlobalNumberOwned|name={{PAGENAME}}}}</center>}}</format> | ||
</data> | </data> | ||
</group> | </group> | ||
</infobox> | </infobox> | ||
{{#if:{{#invoke: | {{#if:{{#iferror:{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}|}}|<blockquote>{{#invoke:CosmeticDescription|getDescription|name={{{name}}}}}</blockquote>}} | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> |
Revision as of 08:14, 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 |