No edit summary |
(→Usage) |
||
| Line 2: | Line 2: | ||
{{Template|meta-ht}} is used with other {{Category|Character Template}}s when working with character height and weight. | {{Template|meta-ht}} is used with other {{Category|Character Template}}s when working with character height and weight. | ||
==Usage== | ==Usage== | ||
{{Table:Metahuman Height & Weight (Average Male)}} | |||
It accepts one {{Parameter|mandatory|string}}, a metatype, and one {{parameter|optional|string}}. | It accepts one {{Parameter|mandatory|string}}, a metatype, and one {{parameter|optional|string}}. | ||
* {{code|1}} must be a valid metatype or metavariant name from [[Table:Metahuman Height & Weight (Average Male)]] or [[Table:Metahuman Height & Weight (Average Female)]]. | * {{code|1}} must be a valid metatype or metavariant name from [[Table:Metahuman Height & Weight (Average Male)]] or [[Table:Metahuman Height & Weight (Average Female)]]. | ||
* {{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}}}} | 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}}}} | ||
Meanwhile, {{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:13, 24 January 2023
Template:meta-ht is used with other Character Templates when working with character height and weight.
Usage
| Race | Height | Weight |
|---|---|---|
| Cyclops | 310 cm (10 ft 2 in) | 713 kg (1,572 lb) |
| Dryad | N/A | N/A |
| Dwarf | 120 cm (3 ft 11 in) | 44 kg (97 lb) |
| Elf | 190 cm (6 ft 3 in) | 78 kg (172 lb) |
| Fomori | 280 cm (9 ft 2 in) | 438 kg (966 lb) |
| Giant | 350 cm (11 ft 6 in) | 977 kg (2,154 lb) |
| Gnome | 110 cm (3 ft 7 in) | 23 kg (51 lb) |
| Hobgoblin | 180 cm (5 ft 11 in) | 103 kg (227 lb) |
| Human | 170 cm (5 ft 7 in) | 70 kg (150 lb) |
| Koborokuru | 110 cm (3 ft 7 in) | 34 kg (75 lb) |
| Menehune | 110 cm (3 ft 7 in) | 30 kg (66 lb) |
| Minotaur | 230 cm (7 ft 7 in) | 277 kg (611 lb) |
| Nocturna | 190 cm (6 ft 3 in) | 78 kg (172 lb) |
| Ogre | 170 cm (5 ft 7 in) | 119 kg (262 lb) |
| Oni | 190 cm (6 ft 3 in) | 125 kg (276 lb) |
| Ork | 190 cm (6 ft 3 in) | 125 kg (276 lb) |
| Satyr | 160 cm (5 ft 3 in) | 75 kg (165 lb) |
| Troll | 280 cm (9 ft 2 in) | 491 kg (1,082 lb) |
| Wakyambi | 280 cm (9 ft 2 in) | 235 kg (518 lb) |
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) or Table:Metahuman Height & Weight (Average Female).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
