Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:CosmeticImage: Difference between revisions

Template page
Created page with "<includeonly>{{#if: {{{animated|}}}|Category:Animated images}} {{#if: {{{type|}}}|[[Category:Images of {{#switch: {{lc:{{{type}}}}}|hat|aura|trail|cloak = {{{type}}}s|accessory = accessories}}]]}} {{#if: {{{rarity|}}}|[[Category:Images of {{lc:{{{rarity}}}}} cosmetics]]}} {{#if: {{{rarity2|}}}|[[Category:Images of {{lc:{{{rarity2}}}}} cosmetics]]}} {{#if: {{{collection|}}}|[[Category:Images of {{lc:{{{collection}}}}} Collection cosmetics]]}}</includeonly> <noinclude>..."
 
oops
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{animated|}}}|[[Category:Animated images]]}}
<includeonly>{{#if: {{{animated|}}}|[[Category:Animated images]]}}<!--
{{#if: {{{type|}}}|[[Category:Images of {{#switch: {{lc:{{{type}}}}}|hat|aura|trail|cloak = {{{type}}}s|accessory = accessories}}]]}}
-->[[Category:Images of {{#switch: {{#invoke:CosmeticInfo|getCategory|name={{{name}}}}}|Hat|Aura|Trail|Cloak|Rod = {{#invoke:CosmeticInfo|getCategory|name={{{name}}}}}s|Accessory = Accessories|Hair = Hair}}]]<!--
{{#if: {{{rarity|}}}|[[Category:Images of {{lc:{{{rarity}}}}} cosmetics]]}}
-->[[Category:Images of {{#invoke:CosmeticInfo|getType|name={{{name}}}}} cosmetics]]{{#switch: {{#invoke:CosmeticInfo|getType|name={{{name}}}}}|Limited|Collector=[[Category:Images of tradeable cosmetics]]}}<!--
{{#if: {{{rarity2|}}}|[[Category:Images of {{lc:{{{rarity2}}}}} cosmetics]]}}
-->[[Category:Images of {{#invoke:CosmeticInfo|getRarity|name={{{name}}}}} cosmetics]]<!--
{{#if: {{{collection|}}}|[[Category:Images of {{lc:{{{collection}}}}} Collection cosmetics]]}}</includeonly>
-->[[Category:Images of {{#invoke:CosmeticInfo|getCollection|name={{{name}}}}} Collection cosmetics]]</includeonly><noinclude>
<noinclude><templatedata>
<templatedata>
{
{
"params": {
"params": {
"animated": {
"name": {
"description": "Use any value (preferably \"y\" or \"yes\") if the image is animated",
"description": "The name of the cosmetic",
"type": "string",
"required": false
},
"type": {
"description": "The type of the cosmetic",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"rarity": {
"animated": {
"description": "The rarity of the cosmetic",
"description": "Use any value (preferably \"y\" or \"yes\") if the image is animated",
"type": "string",
"required": true
},
"rarity2": {
"description": "The second rarity (i.e. Seasonal or Limited) of the cosmetic, if any",
"type": "string",
"type": "string",
"required": false
"required": false
},
"collection": {
"description": "The collection of the cosmetic",
"type": "string",
"required": true
}
}
},
},

Latest revision as of 10:10, 19 August 2025

This template is intended for use in adding categories to a cosmetic's file page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

The name of the cosmetic

Stringrequired
animatedanimated

Use any value (preferably "y" or "yes") if the image is animated

Stringoptional