From Brotato Wiki

(add examples for a) no options passed, b) not an item)
(Add templatedata)
Line 1,561: Line 1,561:
</pre>
</pre>
{{Item Data|Knife}}
{{Item Data|Knife}}
</noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Name",
"example": "Acid",
"type": "string",
"required": true,
"suggested": true
},
"2": {
"label": "Data",
"example": "price",
"type": "string",
"required": true,
"suggested": true
}
},
"format": "inline"
}
</templatedata></noinclude>

Revision as of 04:08, 10 November 2022

Usage:

{{Item Data
|any weapon name
|rarity/stats/price/unique/unlockedby/limit
}}

Example:

{{Item Data|acid|rarity}}

2


Example:

{{Item Data
|acid
|stats
}}

+8 Max HP
-4% Dodge


Example: No options passed

{{Item Data|acid}}

-


Example: Not an item

{{Item Data|Knife}}

Item name not found

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1

no description

Example
Acid
Stringrequired
Data2

no description

Example
price
Stringrequired