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

Template:Event shop item/doc: Difference between revisions

Template page
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 template adds a row for an item, automatically setting the thumbnail and name based on the item name.

Parameters

Creates a partially autofilled row for use in Event Shop templates.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Itemitem

The name of the item.

Example
Crystal
Stringrequired
Countcount

The number in the "stack" of an item. For example, a stack of 5 would use 5 as the count.

Example
5
Numberrequired
Quantityquantity

The quantity available for purchase.

Example
100
Numberrequired
Costcost

The cost of the item, in event badges.

Example
100
Numberrequired

Quick copy

{{Event shop item|item = |count = |quantity = |cost = }}

Examples

Thumbnail Item Quantity Cost (badges)
Crystal
×5
Crystal ×5 100 100
Vocal card exchange ticket
×20
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}}


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