Content added Content deleted
mNo edit summary |
m (format cost) |
||
Line 3: | Line 3: | ||
|{{{name}}} |
|{{{name}}} |
||
|{{{quantity}}} |
|{{{quantity}}} |
||
|{{#if: {{{cost}}} | {{formatnum:{{{cost}}}}} | {{{cost}}}}} |
|||
|{{{cost}}} |
|||
</includeonly><!-- |
</includeonly><!-- |
||
Latest revision as of 03:43, 12 July 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.
- {{Event shop head}}: Beginning of the Event Shop table
- {{Event shop line}}: Generalized table row for an item in the Event Shop
- {{Event shop card}}: Specialized table row that automatically sets some fields
- {{Event shop item}}: Specialized table row that automatically sets some fields
- {{Event shop tail}}: End of the Event Shop table.
Parameters[edit source]
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Thumbnail | thumbnail | The thumbnail of the item. For images, the recommended size is 75px.
| String | required |
Name | name | The name of the item.
| String | required |
Quantity | quantity | The quantity available for purchase.
| Number | required |
Cost | cost | The cost of the card, in event badges. | Number | required |
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 |
The above documentation is transcluded from Template:Event shop line/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |