Template:Drops: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 16: Line 16:
{{#if: {{{Code5|}}}
{{#if: {{{Code5|}}}
  |{{!}}- {{Drops/row |Code={{{Code5}}} |Avg={{{Avg5}}} |Var={{{Var5|}}} }}
  |{{!}}- {{Drops/row |Code={{{Code5}}} |Avg={{{Avg5}}} |Var={{{Var5|}}} }}
}}
{{#if: {{{Code6|}}}
|{{!}}- {{Drops/row |Code={{{Code6}}} |Avg={{{Avg6}}} |Var={{{Var6|}}} }}
}}
{{#if: {{{Code7|}}}
|{{!}}- {{Drops/row |Code={{{Code7}}} |Avg={{{Avg7}}} |Var={{{Var7|}}} }}
}}
{{#if: {{{Code8|}}}
|{{!}}- {{Drops/row |Code={{{Code8}}} |Avg={{{Avg8}}} |Var={{{Var8|}}} }}
}}
{{#if: {{{Code9|}}}
|{{!}}- {{Drops/row |Code={{{Code9}}} |Avg={{{Avg9}}} |Var={{{Var9|}}} }}
}}
{{#if: {{{Code10|}}}
|{{!}}- {{Drops/row |Code={{{Code10}}} |Avg={{{Avg10}}} |Var={{{Var10|}}} }}
}}
{{#if: {{{Code11|}}}
|{{!}}- {{Drops/row |Code={{{Code11}}} |Avg={{{Avg11}}} |Var={{{Var11|}}} }}
}}
{{#if: {{{Code12|}}}
|{{!}}- {{Drops/row |Code={{{Code12}}} |Avg={{{Avg12}}} |Var={{{Var12|}}} }}
}}
}}
}}
}}

Revision as of 17:04, 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.