Content added Content deleted
No edit summary |
(added more documentation, examples) |
||
Line 17: | Line 17: | ||
"count": { |
"count": { |
||
"type": "number", |
"type": "number", |
||
"required": true |
"required": true, |
||
"label": "Count", |
|||
"description": "The number in the \"stack\" of an item. For example, a stack of 5 would use 5 as the count.", |
|||
"example": "5" |
|||
}, |
}, |
||
"quantity": { |
"quantity": { |
||
"type": "number", |
"type": "number", |
||
"required": true |
"required": true, |
||
"label": "Quantity", |
|||
"description": "The quantity available for purchase.", |
|||
"example": "100" |
|||
}, |
}, |
||
"item": { |
"item": { |
||
"type": "string", |
"type": "string", |
||
"required": true |
"required": true, |
||
"label": "Item", |
|||
"description": "The name of the item.", |
|||
"example": "Crystal" |
|||
}, |
}, |
||
"cost": { |
"cost": { |
||
"type": "number", |
"type": "number", |
||
"required": true |
"required": true, |
||
"label": "Cost", |
|||
"description": "The cost of the item, in event badges.", |
|||
"example": "100" |
|||
} |
} |
||
}, |
}, |
||
Line 38: | Line 50: | ||
"cost" |
"cost" |
||
], |
], |
||
"format": "inline" |
"format": "inline", |
||
"description": "Creates a partially autofilled row for use in Event Shop templates." |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
Line 45: | Line 58: | ||
<pre> |
<pre> |
||
{{Event shop item|item = |count = |quantity = |cost = }} |
{{Event shop item|item = |count = |quantity = |cost = }} |
||
</pre> |
|||
== Examples == |
|||
{{Event shop head}} |
|||
{{Event shop item|item=Crystal|count=5|quantity=100|cost=100}} |
|||
{{Event shop item|item=Vocal card exchange ticket|count=20|quantity=1|cost=5}} |
|||
{{Event shop tail}} |
|||
<pre> |
|||
{{Event shop head}} |
|||
{{Event shop item|item=Crystal|count=5|quantity=100|cost=100}} |
|||
{{Event shop item|item=Vocal card exchange ticket|count=20|quantity=1|cost=5}} |
|||
{{Event shop tail}} |
|||
</pre> |
</pre> |
||
Revision as of 02:43, 15 July 2022
This is a documentation subpage for Template:Event shop item. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template uses the following Cargo tables: |
This template adds a row for an item, automatically setting the thumbnail and name based on the item name.
- {{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
Creates a partially autofilled row for use in Event Shop templates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | item | The name of the item.
| String | required |
Count | count | The number in the "stack" of an item. For example, a stack of 5 would use 5 as the count.
| Number | required |
Quantity | quantity | The quantity available for purchase.
| Number | required |
Cost | cost | The cost of the item, in event badges.
| Number | required |
Quick copy
{{Event shop item|item = |count = |quantity = |cost = }}
Examples
Thumbnail | Item | Quantity | Cost (badges) |
---|---|---|---|
Crystal ×5 | 100 | 100 | |
Vocal card exchange ticket ×20 | 1 | 5 |
{{Event shop head}} {{Event shop item|item=Crystal|count=5|quantity=100|cost=100}} {{Event shop item|item=Vocal card exchange ticket|count=20|quantity=1|cost=5}} {{Event shop tail}}