Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:Meta-ht/Documentation: Difference between revisions

No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
==Usage==
==Usage==
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.
* {{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|f}} (default: {{code|false}}) — if set to true, applies a gender- and metatype-based height adjustment factor.
* {{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==
It returns the metatype's male average height in centimeters, e.g. {{Code|<nowiki>{{meta-ht|gnome}}</nowiki>}} returns: {{Code|{{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 return: {{return|{{meta-ht|gnome}}}}
 
Meanwhile, {{Code|<nowiki>{{meta-ht|gnome|f}}</nowiki>}} returns: {{return|{{meta-ht|gnome|f}}}}

Latest revision as of 14:42, 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.

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 return:

110

Meanwhile, {{meta-ht|gnome|f}} returns:

101.2