Template:Drops: Difference between revisions
From Vintage Story Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;"|<font color="white">'''Drops'''</font> | <noinclude><languages /></noinclude> | ||
<includeonly>|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;"|<font color="white">'''<translate>Drops</translate>'''</font> | |||
{{#ifeq:{{{Code1}}}|Nothing | {{#ifeq:{{{Code1}}}|Nothing | ||
|{{!}}- {{Drops/Nothing}}| | |{{!}}- {{Drops/Nothing}}| | ||
Line 40: | Line 41: | ||
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Use this in infoboxes to display drops. | <translate>Use this in infoboxes to display drops.</translate> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Parameter !! Required or Optional, default if applicable !! Example | ! <translate>Parameter</translate> !! <translate>Required or Optional, default if applicable</translate> !! <translate>Example</translate> | ||
|- | |- | ||
| ''Code1'' - ''Code12'' || Required|| Dirt | | ''Code1'' - ''Code12'' || <translate>Required</translate> || <translate>Dirt</translate> | ||
|- | |- | ||
| ''Avg1'' - ''Avg12'' || Required for ''Code1'' - ''Code4'' || 2 | | ''Avg1'' - ''Avg12'' || <translate>Required for</translate> ''Code1'' - ''Code4'' || 2 | ||
|- | |- | ||
| ''Var1'' - ''Var12'' || Optional || 2 | | ''Var1'' - ''Var12'' || <translate>Optional</translate> || 2 | ||
|} | |} | ||
<translate> | |||
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. | ||
Use this in other templates. Based on [[Template:Drops/row]]. | Use this in other templates. Based on [[Template:Drops/row]]. | ||
</translate> | |||
</noinclude> | </noinclude> |
Revision as of 06:46, 31 July 2023
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.