Template:Drops: Difference between revisions
From Vintage Story Wiki
VeryGoodDog (talk | contribs) m (docs) |
VeryGoodDog (talk | contribs) m (change the way that nothing is shown) |
||
Line 1: | Line 1: | ||
<includeonly>|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;"|<font color="white">'''Drops'''</font> | <includeonly>|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;"|<font color="white">'''Drops'''</font> | ||
{{#ifeq:{{{ | {{#ifeq:{{{Code1}}}|Nothing| {{!}} colspan="2" style="text-align:center;" {{!}} Nothing | | ||
{{#if: {{{Code1|}}} | {{#if: {{{Code1|}}} | ||
|{{!}}- {{Drops/row |Code={{{Code1}}} |Avg={{{Avg1}}} |Var={{{Var1|}}} }} | |{{!}}- {{Drops/row |Code={{{Code1}}} |Avg={{{Avg1}}} |Var={{{Var1|}}} }} | ||
Line 20: | Line 20: | ||
! Parameter !! Required or Optional, default if applicable !! Example | ! Parameter !! Required or Optional, default if applicable !! Example | ||
|- | |- | ||
| ''Code1'' - ''Code4'' || Required|| Dirt | |||
| ''Code1'' - ''Code4'' || Required | |||
|- | |- | ||
| ''Avg1'' - ''Avg4'' || Required for ''Code1'' - ''Code4'' || 2 | | ''Avg1'' - ''Avg4'' || Required for ''Code1'' - ''Code4'' || 2 | ||
Line 28: | Line 26: | ||
| ''Var1'' - ''Var4'' || Optional || 2 | | ''Var1'' - ''Var4'' || Optional || 2 | ||
|} | |} | ||
Pass <code>Nothing</code> as | Pass <code>Nothing</code> as the <code>Code1</code> parameter to display that it drops nothing. | ||
Use this in other templates. | |||
</noinclude> | </noinclude> |
Revision as of 19:07, 6 April 2020
Use this in infoboxes to display drops.
Parameter | Required or Optional, default if applicable | Example |
---|---|---|
Code1 - Code4 | Required | Dirt |
Avg1 - Avg4 | Required for Code1 - Code4 | 2 |
Var1 - Var4 | Optional | 2 |
Pass Nothing
as the Code1
parameter to display that it drops nothing.
Use this in other templates.