Template:Drops/doc: Difference between revisions

From Vintage Story Wiki
(Created page with "<noinclude><languages /></noinclude> Use this in other templates to display drops. Based on Template:Drops/row. <templatedata> { "params": { "Code1": { "description": "description", "type": "string", "required": true, "example": "Dirt" }, "Avg1": { "description": "some number", "example": "1.1", "type": "number", "required": true }, "Var1": { "type": "number", "default": "0" } }, "description": "" } </templatedata> == Us...")
(No difference)

Revision as of 12:15, 30 January 2024

Use this in other templates to display drops. Based on Template:Drops/row.

Template parameters

ParameterDescriptionTypeStatus
Code1Code1

description

Example
Dirt
Stringrequired
Avg1Avg1

some number

Example
1.1
Numberrequired
Var1Var1

no description

Default
0
Numberoptional

Usage

{{Drops
|Code1= Dirt
|Avg1= 1.1
|Var1= 0.5
}}

Examples

{| class="wikitable"
|-
{{Drops |Code1 = Nothing}}
|}

turns into

Drops
Nothing
{| class="wikitable"
|-
{{Drops 
|Code1={{ll|Poultry}}
|Avg1=1.25
|Var1=0.25
|Code2={{ll|Feather}}
|Avg2=12
|Var2=4
|Code3={{ll|Bone}}
|Avg3=0.5
}}
|}

turns into

Drops
Poultry 1 - 1.5*
Feather 8 - 16*
Bone 0.5*