No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{Template|meta-wt}} is used with other {{Category|Character Template}}s when working with character height and weight. | {{Template|meta-wt}} is used with other {{Category|Character Template}}s when working with character height and weight. | ||
==Usage== | ==Usage== | ||
It accepts one {{Parameter|mandatory|string}}, a metatype. | It accepts one {{Parameter|mandatory|string}}, a metatype, and one {{Parameter|optional|string}}: {{code|m}}ale (default) or {{code|f}}emale. | ||
==Return== | ==Return== | ||
It returns the metatype's male average weight in kilograms, e.g. {{Code|<nowiki>{{meta-wt|gnome}}</nowiki>}} returns: {{Return|{{meta-wt|gnome|m}}}} | It returns the metatype's male average weight in kilograms, e.g. {{Code|<nowiki>{{meta-wt|gnome}}</nowiki>}} or {{Code|<nowiki>{{meta-wt|gnome|m}}</nowiki>}} returns: {{Return|{{meta-wt|gnome|m}}}} | ||
{{Return|{{meta-wt|gnome|f}}}} | Setting the optional parameter to {{code|f}} returns: {{Return|{{meta-wt|gnome|f}}}} | ||
Latest revision as of 14:45, 20 May 2024
Template:meta-wt is used with other Character Templates when working with character height and weight.
Usage
It accepts one mandatory string parameter, a metatype, and one optional string parameter: male (default) or female.
Return
It returns the metatype's male average weight in kilograms, e.g. {{meta-wt|gnome}} or {{meta-wt|gnome|m}} returns:
23
Setting the optional parameter to f returns:
17.91
