Template:Drops: Difference between revisions

From Vintage Story Wiki
No edit summary
Tag: Manual revert
m (extended dropcode numbers, to fit bell drop table)
Line 38: Line 38:
{{#if: {{{Code12|}}}
{{#if: {{{Code12|}}}
  |{{!}}- {{Drops/row |Code={{{Code12}}} |Avg={{{Avg12}}} |Var={{{Var12|}}} }}
  |{{!}}- {{Drops/row |Code={{{Code12}}} |Avg={{{Avg12}}} |Var={{{Var12|}}} }}
}}
{{#if: {{{Code13|}}}
|{{!}}- {{Drops/row |Code={{{Code13}}} |Avg={{{Avg13}}} |Var={{{Var13|}}} }}
}}
{{#if: {{{Code14|}}}
|{{!}}- {{Drops/row |Code={{{Code14}}} |Avg={{{Avg14}}} |Var={{{Var14|}}} }}
}}
{{#if: {{{Code15|}}}
|{{!}}- {{Drops/row |Code={{{Code15}}} |Avg={{{Avg15}}} |Var={{{Var15|}}} }}
}}
}}
}}
}}
Line 46: Line 55:
! <translate><!--T:3--> Parameter</translate> !! <translate><!--T:4--> Required or Optional, default if applicable</translate> !! <translate><!--T:5--> Example</translate>
! <translate><!--T:3--> Parameter</translate> !! <translate><!--T:4--> Required or Optional, default if applicable</translate> !! <translate><!--T:5--> Example</translate>
|-
|-
| ''Code1'' - ''Code12'' || <translate><!--T:6--> Required</translate> || <translate><!--T:7--> Dirt</translate>
| ''Code1'' - ''Code15'' || <translate><!--T:6--> Required</translate> || <translate><!--T:7--> Dirt</translate>
|-
|-
| ''Avg1'' - ''Avg12'' || <translate><!--T:8--> Required for</translate> ''Code1'' - ''Code4''  || 2
| ''Avg1'' - ''Avg15'' || <translate><!--T:8--> Required for</translate> ''Code1'' - ''Code4''  || 2
|-
|-
| ''Var1'' - ''Var12'' || <translate><!--T:9--> Optional</translate> || 2
| ''Var1'' - ''Var15'' || <translate><!--T:9--> Optional</translate> || 2
|}
|}
<translate>
<translate>

Revision as of 18:32, 19 January 2024

Other languages:

Use this in infoboxes to display drops.

Parameter Required or Optional, default if applicable Example
Code1 - Code15 Required Dirt
Avg1 - Avg15 Required for Code1 - Code4 2
Var1 - Var15 Optional 2

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

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