Template:Cosmetic: Difference between revisions
More actions
m edited too early: removed need for '|blueprint=yes' if cosmetic is in a crate collection |
Added "added_date" parameter as an alternative to "added_in" if a cosmetic wasn't added on the day of a patch |
||
Line 37: | Line 37: | ||
<data source="added_in"> | <data source="added_in"> | ||
<format><center>Added in [[{{{added_in}}}]]<br />({{PatchDate|{{{added_in}}}}})</center></format> | <format><center>Added in [[{{{added_in}}}]]<br />({{PatchDate|{{{added_in}}}}})</center></format> | ||
</data> | |||
<data source="added_date"> | |||
<format><center>Added on [[{{{added_date}}}]]</center></format> | |||
</data> | </data> | ||
<group> | <group> | ||
Line 106: | Line 109: | ||
</infobox> | </infobox> | ||
{{#if:{{#iferror:{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}|}}|<blockquote>{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}</blockquote>}} | {{#if:{{#iferror:{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}|}}|<blockquote>{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}</blockquote>}} | ||
'''{{{name}}}''' is {{#ifeq:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}|Epic|an|a}} {{Rarity|{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}|Text}} {{#if:{{{rarity2|}}}|and {{Rarity|{{{rarity2}}}|Text}}}} {{Type|{{#invoke:CosmeticInfo|getType|name={{{name}}}}}}} [[cosmetic]], found within the {{Collection|{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}, that was introduced in [[Patch {{{added_in}}}]]. {{#ifeq:{{#invoke:CosmeticInfo|isInCrateCollection|name={{{name}}}}}|true|Its [[blueprint]] form can be obtained at random from [[File:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}} Cosmetic Crate.png|20px|link={{#invoke:CosmeticInfo|getRarity|name={{{name}}}}} Cosmetic Crate]] {{Rarity|{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}|Text}} and [[File:Mystery Cosmetic Crate.png|20px|link=Mystery Cosmetic Crate]] <span style="color: #A033EA">'''Mystery'''</span> [[Cosmetic Crate]]s, with a higher chance if the crate is [[Crate Attuner|attuned]] to the [[File:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} Collection.png|20px|link={{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} Collection]] {{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} pool.|{{{unlock_method}}}}}{{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|<div style="margin-top:1em;"></div>It is {{Colorable}}, meaning players can apply [[Chroma Pack|chroma packs]] to it, allowing them to change its colour.<div style="margin-top:1em;"></div>It can reward the player with up to {{{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|Bonus|Style}} Trophy|{{#expr:{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}+10}}|text = yes}}: {{{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|Bonus|Style}} Trophy|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}}} for owning it and an extra {{{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|Bonus|Style}} Trophy|10}} if all 4 [[Chroma Pack|chroma packs]] are applied to it.|<div style="margin-top:1em;"></div>{{#if:{{{trophy_information|}}}|{{{trophy_information}}}|Owning it rewards the player with a total of {{{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|Bonus|Style}} Trophy|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}|text = yes}}.}}}}{{#if:{{{scavenge_cosmetic|}}}|<div style="margin-top:1em;"></div>Its token form can be scavenged for {{Silver|{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!-- | '''{{{name}}}''' is {{#ifeq:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}|Epic|an|a}} {{Rarity|{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}|Text}} {{#if:{{{rarity2|}}}|and {{Rarity|{{{rarity2}}}|Text}}}} {{Type|{{#invoke:CosmeticInfo|getType|name={{{name}}}}}}} [[cosmetic]], found within the {{Collection|{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}}}}, that was introduced {{#if: {{{added_date|}}}|on {{{added_date}}}|in [[Patch {{{added_in}}}]]}}. {{#ifeq:{{#invoke:CosmeticInfo|isInCrateCollection|name={{{name}}}}}|true|Its [[blueprint]] form can be obtained at random from [[File:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}} Cosmetic Crate.png|20px|link={{#invoke:CosmeticInfo|getRarity|name={{{name}}}}} Cosmetic Crate]] {{Rarity|{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}|Text}} and [[File:Mystery Cosmetic Crate.png|20px|link=Mystery Cosmetic Crate]] <span style="color: #A033EA">'''Mystery'''</span> [[Cosmetic Crate]]s, with a higher chance if the crate is [[Crate Attuner|attuned]] to the [[File:{{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} Collection.png|20px|link={{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} Collection]] {{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} pool.|{{{unlock_method}}}}}{{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|<div style="margin-top:1em;"></div>It is {{Colorable}}, meaning players can apply [[Chroma Pack|chroma packs]] to it, allowing them to change its colour.<div style="margin-top:1em;"></div>It can reward the player with up to {{{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|Bonus|Style}} Trophy|{{#expr:{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}+10}}|text = yes}}: {{{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|Bonus|Style}} Trophy|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}}} for owning it and an extra {{{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|Bonus|Style}} Trophy|10}} if all 4 [[Chroma Pack|chroma packs]] are applied to it.|<div style="margin-top:1em;"></div>{{#if:{{{trophy_information|}}}|{{{trophy_information}}}|Owning it rewards the player with a total of {{{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|Bonus|Style}} Trophy|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}}|text = yes}}.}}}}{{#if:{{{scavenge_cosmetic|}}}|<div style="margin-top:1em;"></div>Its token form can be scavenged for {{Silver|{{#switch: {{lc:{{#invoke:CosmeticInfo|getRarity|name={{{name}}}}}}}<!-- | ||
-->| common = 200<!-- | -->| common = 200<!-- | ||
-->| uncommon = 750<!-- | -->| uncommon = 750<!-- | ||
Line 159: | Line 162: | ||
"example": "0.8.0", | "example": "0.8.0", | ||
"required": true | "required": true | ||
}, | |||
"added_date": { | |||
"description": "If not added in a patch, the date on which the cosmetic was added", | |||
"type": "string", | |||
"example": "June 12th, 2024" | |||
}, | }, | ||
"unlock_hint": { | "unlock_hint": { | ||
Line 206: | Line 214: | ||
"legacy", | "legacy", | ||
"added_in", | "added_in", | ||
"added_date", | |||
"unlock_method", | "unlock_method", | ||
"blueprint", | "blueprint", |
Revision as of 05:53, 8 June 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 |