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

Template:Event shop line/doc: Difference between revisions

Template page
Content added Content deleted
No edit summary
No edit summary
 
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}


This template adds a row for each Event Shop item. It is advised to use the {{t|Event shop card}} or {{t|Event shop item}} templates for their autofill behavior.
* {{t|Event shop head}}: Beginning of the Event Shop table
* {{t|Event shop head}}: Beginning of the Event Shop table
* {{t|Event shop line}}: Generalized table row for an item in the Event Shop
* {{t|Event shop line}}: Generalized table row for an item in the Event Shop
Line 12: Line 13:
"params": {
"params": {
"thumbnail": {
"thumbnail": {
"type": "wiki-file-name",
"type": "string",
"required": true
"required": true,
"label": "Thumbnail",
"description": "The thumbnail of the item. For images, the recommended size is 75px.",
"example": "[[File:Jewel.png|75px]]"
},
},
"name": {
"name": {
"type": "string",
"type": "string",
"required": true
"required": true,
"label": "Name",
"description": "The name of the item.",
"example": "Crystal"
},
},
"quantity": {
"quantity": {
"type": "number",
"type": "number",
"required": true
"required": true,
"label": "Quantity",
"description": "The quantity available for purchase.",
"example": "5"
},
},
"cost": {
"cost": {
"type": "number",
"type": "number",
"required": true
"required": true,
"label": "Cost",
"description": "\t\n\nThe cost of the card, in event badges."
}
}
}
},
"format": "inline"
}
}
</templatedata>
</templatedata>

== Quick copy ==
<pre>
{{Event shop line|thumbnail= |name= |quantity= |cost= }}
</pre>

== Examples ==
{{Event shop head}}
{{Event shop line|thumbnail=[[File:Jewel.png|75px]]|name=Crystal|quantity=5|cost=100}}
{{Event shop line|thumbnail=[[File:Magic cloth.png|75px]]|name=Magic cloth|quantity=500|cost=10}}
{{Event shop tail}}


<includeonly>[[Category:Event templates]]</includeonly>
<includeonly>[[Category:Event templates]]</includeonly>

Latest revision as of 04:01, 7 August 2022

This template adds a row for each Event Shop item. It is advised to use the {{Event shop card}} or {{Event shop item}} templates for their autofill behavior.

Parameters[edit source]

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Thumbnailthumbnail

The thumbnail of the item. For images, the recommended size is 75px.

Example
[[File:Jewel.png|75px]]
Stringrequired
Namename

The name of the item.

Example
Crystal
Stringrequired
Quantityquantity

The quantity available for purchase.

Example
5
Numberrequired
Costcost

The cost of the card, in event badges.

Numberrequired

Quick copy[edit source]

{{Event shop line|thumbnail= |name= |quantity= |cost= }}

Examples[edit source]

Thumbnail Item Quantity Cost (badges)
Crystal 5 100
Magic cloth 500 10


Cookies help us deliver our services. By using our services, you agree to our use of cookies.