Template:Range/doc: Difference between revisions

From Vintage Story Wiki
(Created page with "<noinclude><languages /></noinclude> <templatedata> { "params": { "1": { "label": "<translate>Average</translate>", "example": "2.3", "type": "number", "required": true }, "2": { "label": "<translate>Variance</translate>", "example": "1.2", "type": "number" } }, "description": "<translate>Use when you want to show a range of values without doing math.</translate>", "paramOrder": [ "1", "2" ] } </templatedata> == <translate>Usage</tr...")
 
(Marked this version for translation)
 
Line 4: Line 4:
"params": {
"params": {
"1": {
"1": {
"label": "<translate>Average</translate>",
"label": "<translate><!--T:1--> Average</translate>",
"example": "2.3",
"example": "2.3",
"type": "number",
"type": "number",
Line 10: Line 10:
},
},
"2": {
"2": {
"label": "<translate>Variance</translate>",
"label": "<translate><!--T:2--> Variance</translate>",
"example": "1.2",
"example": "1.2",
"type": "number"
"type": "number"
}
}
},
},
"description": "<translate>Use when you want to show a range of values without doing math.</translate>",
"description": "<translate><!--T:3--> Use when you want to show a range of values without doing math.</translate>",
"paramOrder": [
"paramOrder": [
"1",
"1",
Line 23: Line 23:
</templatedata>
</templatedata>


== <translate>Usage</translate> ==
== <translate><!--T:4--> Usage</translate> ==
<code><nowiki>{{Range|2.3|1.2}}</nowiki></code>
<code><nowiki>{{Range|2.3|1.2}}</nowiki></code>


=== <translate>Examples</translate> ===
=== <translate><!--T:5--> Examples</translate> ===
<translate><code><nowiki>{{Range|2.3|1.2}}</nowiki></code> turns into <code>{{Range|2.3|1.2}}</code>.</translate>
<translate><!--T:6--> <code><nowiki>{{Range|2.3|1.2}}</nowiki></code> turns into <code>{{Range|2.3|1.2}}</code>.</translate>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 11:14, 21 November 2023

Other languages:

Use when you want to show a range of values without doing math.

Template parameters

ParameterDescriptionTypeStatus
Average1

no description

Example
2.3
Numberrequired
Variance2

no description

Example
1.2
Numberoptional

Usage

{{Range|2.3|1.2}}

Examples

{{Range|2.3|1.2}} turns into 1.1 - 3.5*.