Template:Cosmetic: Difference between revisions
More actions
SEO description should now not contain glyphs or arcane bonus texts |
everything (except scavenging and blueprint information) is properly automated now |
||
Line 76: | Line 76: | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
<header><center>Scavenging</center></header> | <header><center>Scavenging</center></header> | ||
<data source=" | <data source="name"> | ||
<label>Cosmetic Token</label> | <label>Cosmetic Token</label> | ||
<format>{{CosmeticScavengeRewards|name={{{name}}}}}</format> | <format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{CosmeticScavengeRewards|name={{{name}}}}}}}</format> | ||
</data> | </data> | ||
<data source=" | <data source="name"> | ||
<label>Blueprint</label> | <label>Blueprint</label> | ||
<format>{{CosmeticScavengeRewards|name={{{name}}}|Blueprint}}</format> | <format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{CosmeticScavengeRewards|name={{{name}}}|Blueprint}}}}</format> | ||
</data> | </data> | ||
</group> | </group> | ||
Line 93: | Line 93: | ||
</infobox> | </infobox> | ||
{{#iferror:{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}||<blockquote>{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}</blockquote>}} | {{#iferror:{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}||<blockquote>{{#invoke:CosmeticInfo|getDescription|name={{{name}}}}}</blockquote>}} | ||
{{#invoke:CosmeticInfo/Paragraph|make|name={{{name}}}|added_date={{{added_date}}}|added_in={{{added_in}}}|unlock_method={{{unlock_method}}}|style_perk={{{style_perk}}}}} | |||
{{#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<!-- |
Revision as of 12:26, 30 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 |