Template:Drops/row: Difference between revisions

From Vintage Story Wiki
No edit summary
(This template doesn't need to be translated)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude><languages /></noinclude><includeonly>|-
<includeonly>|-
|'''{{{Code|{{{1}}} }}}'''
|'''{{{Code|{{{1}}} }}}'''
|{{Range
|{{Range
Line 6: Line 6:
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
{| class="wikitable"
{{Documentation}}
|-
! <translate><!--T:1--> Parameter</translate> !! <translate><!--T:2--> Required or Optional, default if applicable</translate> !! <translate><!--T:3--> Example</translate>
|-
| ''Code'' || <translate><!--T:4--> Required</translate> || <translate><!--T:5--> Dirt</translate>
|-
| ''Avg'' || <translate><!--T:6--> Required</translate> || 1.1
|-
| ''Var'' || <translate><!--T:7--> Optional</translate> || 0.5
|}
 
<translate><!--T:8--> ''Code'', ''Avg'', and ''Var'' can also be supplied as anon params. E.g.</translate> <code><nowiki>{{Drops/row|Dirt|1.1|0.5}}</nowiki></code> and <code><nowiki>{{Drops/row|Code=Dirt|Avg=1.1|Var=0.5}}</nowiki></code> <translate><!--T:9--> both become:</translate>
 
{| class="wikitable"
|-
{{Drops/row|Dirt|1.1|0.5}}
|}
 
<translate><!--T:11--> Used in</translate> [[Template:Drops]]. <translate><!--T:12--> Based on</translate> [[Template:Range]].
</noinclude>
</noinclude>

Latest revision as of 11:56, 30 January 2024


[view | edit | history | purge this page]Documentation

Used in Template:Drops. Based on Template:Range.

Template parameters

ParameterDescriptionTypeStatus
Code1

Drop item info

Example
Dirt
Stringrequired
Avg2

Average drop value

Example
1.1
Numberrequired
Var3

Variance of Avg parameter

Default
0
Example
0.5
Numberoptional

Usage

{{Drops/row
|Code= Dirt
|Avg= 1.1
|Var= 0.5
}}

Code, Avg, and Var can also be supplied as anon params.

{{Drops/row|Dirt|1.1|0.5}}

Examples

{{Drops/row|Code={{ll|Poultry}}|Avg=1.1|Var=0.5}}

turns into

Poultry 0.6 - 1.6*
[view | edit | history | purge this page]The above documentation is transcluded from Template:Drops/row/doc.