Template:Cosmetic: Difference between revisions
Template page
More actions
mNo edit summary |
scavenging/blueprint info now automated + updated templatedata |
||
(One intermediate revision by the same user not shown) | |||
Line 66: | Line 66: | ||
</data> | </data> | ||
<data source="name"> | <data source="name"> | ||
<label>[[File: | <label>[[File:Bonus Trophy.png|32px]]</label> | ||
<format>{{#if:{{{bonus_trophies|}}}|{{{bonus_trophies}}}|{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}} {{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|([[File:Icon-Color.png|20px]]+10)}}}}}}</format> | <format>{{#if:{{{bonus_trophies|}}}|{{{bonus_trophies}}}|{{#ifeq:{{#invoke:CosmeticInfo|isBonusTrophies|name={{{name}}}}}|true|{{#invoke:CosmeticInfo|getTrophiesAwarded|name={{{name}}}}} {{#ifeq:{{#invoke:CosmeticInfo|isColorable|name={{{name}}}}}|true|([[File:Icon-Color.png|20px]]+10)}}}}}}</format> | ||
</data> | </data> | ||
<data source="name"> | <data source="name"> | ||
<label>[[File:Royal Reputation.png|32px]]</label> | <label>[[File:Royal Reputation.png|32px]]</label> | ||
<format>{{# | <format>{{#ifexpr:{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}>0|{{#invoke:CosmeticInfo|getReputationAmount|name={{{name}}}}}}}</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|}}} | {{#invoke:CosmeticInfo/Paragraph|make|name={{{name}}}|added_date={{{added_date|}}}|added_in={{{added_in|}}}|unlock_method={{{unlock_method|}}}|style_perk={{{style_perk|}}}|crafting_materials={{{crafting_materials|}}}}}</includeonly><noinclude><templatedata> | ||
}}}}</includeonly><noinclude><templatedata> | |||
{ | { | ||
"params": { | "params": { | ||
Line 133: | Line 105: | ||
"description": "The (animated) image of the cosmetic, if the file is not found at File:{{{name}}}.png", | "description": "The (animated) image of the cosmetic, if the file is not found at File:{{{name}}}.png", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"added_in": { | "added_in": { | ||
Line 152: | Line 116: | ||
"type": "string", | "type": "string", | ||
"example": "June 12th, 2024" | "example": "June 12th, 2024" | ||
}, | }, | ||
"unlock_method": { | "unlock_method": { | ||
"description": " | "description": "If non-standard unlock method, sentences to be used to explain it", | ||
"required": true, | "required": true, | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"crafting_materials": { | "crafting_materials": { | ||
"description": " | "description": "If cosmetic has blueprint with a non-standard recipe, the required crafting materials with a break tag between each material.", | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
Line 195: | Line 131: | ||
"name", | "name", | ||
"image", | "image", | ||
"added_in", | "added_in", | ||
"added_date", | "added_date", | ||
"unlock_method", | "unlock_method", | ||
"crafting_materials" | "crafting_materials" | ||
] | ] |
Latest revision as of 15:28, 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 |
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 | If non-standard unlock method, sentences to be used to explain it | String | required |
crafting_materials | crafting_materials | If cosmetic has blueprint with a non-standard recipe, the required crafting materials with a break tag between each material. | String | optional |