No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
* {{code|2}} (default: {{code|m}}) — if set to any other value (typically {{code|f}}) it applies the gender- and metatype-based height adjustment factors from {{template|meta-ht-x}}. | * {{code|2}} (default: {{code|m}}) — if set to any other value (typically {{code|f}}) it applies the gender- and metatype-based height adjustment factors from {{template|meta-ht-x}}. | ||
==Return== | ==Return== | ||
If the second parameter is excluded, it returns the metatype's male average height in centimeters, e.g. {{Code|<nowiki>{{meta-ht|gnome}}</nowiki>}} and {{Code|<nowiki>{{meta-ht|gnome|m}}</nowiki>}} both returns: {{return|{{meta-ht|gnome}}}} | |||
{{Code|<nowiki>{{meta-ht|gnome|f}}</nowiki>}} returns: {{return|{{meta-ht|gnome|f}}}} | Meanwhile, {{Code|<nowiki>{{meta-ht|gnome|f}}</nowiki>}} returns: {{return|{{meta-ht|gnome|f}}}} | ||
Revision as of 14:11, 24 January 2023
Template:meta-ht 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.
1must be a valid metatype or metavariant name from Table:Metahuman Height & Weight (Average Male).2(default:m) — if set to any other value (typicallyf) it applies the gender- and metatype-based height adjustment factors fromTemplate:meta-ht-x.
Return
If the second parameter is excluded, it returns the metatype's male average height in centimeters, e.g. {{meta-ht|gnome}} and {{meta-ht|gnome|m}} both returns:
110
Meanwhile, {{meta-ht|gnome|f}} returns:
101.2
