Template:Drops: Difference between revisions

From Vintage Story Wiki
m (link to row)
No edit summary
Line 13: Line 13:
{{#if: {{{Code4|}}}
{{#if: {{{Code4|}}}
  |{{!}}- {{Drops/row |Code={{{Code4}}} |Avg={{{Avg4}}} |Var={{{Var4|}}} }}
  |{{!}}- {{Drops/row |Code={{{Code4}}} |Avg={{{Avg4}}} |Var={{{Var4|}}} }}
}}
{{#if: {{{Code5|}}}
|{{!}}- {{Drops/row |Code={{{Code5}}} |Avg={{{Avg5}}} |Var={{{Var5|}}} }}
}}
}}
}}
}}
Line 21: Line 24:
! Parameter !! Required or Optional, default if applicable !! Example
! Parameter !! Required or Optional, default if applicable !! Example
|-
|-
| ''Code1'' - ''Code4'' || Required|| Dirt
| ''Code1'' - ''Code12'' || Required|| Dirt
|-
|-
| ''Avg1'' - ''Avg4'' || Required for ''Code1'' - ''Code4''  || 2
| ''Avg1'' - ''Avg12'' || Required for ''Code1'' - ''Code4''  || 2
|-
|-
| ''Var1'' - ''Var4'' || Optional || 2
| ''Var1'' - ''Var12'' || Optional || 2
|}
|}
Pass <code>Nothing</code> as the <code>Code1</code> parameter to display that it drops nothing.
Pass <code>Nothing</code> as the <code>Code1</code> parameter to display that it drops nothing.

Revision as of 17:01, 1 June 2022

Use this in infoboxes to display drops.

Parameter Required or Optional, default if applicable Example
Code1 - Code12 Required Dirt
Avg1 - Avg12 Required for Code1 - Code4 2
Var1 - Var12 Optional 2

Pass Nothing as the Code1 parameter to display that it drops nothing.

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