Template:Drops/doc
From Vintage Story Wiki
< Template:Drops
Revision as of 12:15, 30 January 2024 by Nyuhnyash (talk | contribs) (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...")
Use this in other templates to display drops. Based on Template:Drops/row.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Code1 | Code1 | description
| String | required |
Avg1 | Avg1 | some number
| Number | required |
Var1 | Var1 | no description
| Number | optional |
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* |