Difference between revisions of "Template:Animal Health Table/doc"
Jump to navigation
Jump to search
(Added categorization.) |
|||
Line 2: | Line 2: | ||
==Parameters== | ==Parameters== | ||
− | Currently accepts one parameter, namely '''baseHealthScale'''. The template is set up to automatically draw from the page parameters | + | Currently accepts one parameter, namely '''baseHealthScale'''. The template is set up to automatically draw from the page parameters if they exist, or the parameter can be defined instead. |
==Example usage== | ==Example usage== | ||
Line 11: | Line 11: | ||
{{Animal Health Table|2.5}} | {{Animal Health Table|2.5}} | ||
− | On a page with '''Health Scale''' defined, no parameters are required | + | On a page with '''Health Scale''' defined, no parameters are required. |
For example, if the health scale on the page was defined as 1.5, the required format would be: | For example, if the health scale on the page was defined as 1.5, the required format would be: | ||
<nowiki>{{Animal Health Table}}</nowiki> | <nowiki>{{Animal Health Table}}</nowiki> |
Revision as of 05:51, 8 February 2021
Creates a table showing the health values for various body parts of a given animal.
Parameters
Currently accepts one parameter, namely baseHealthScale. The template is set up to automatically draw from the page parameters if they exist, or the parameter can be defined instead.
Example usage
On a page without Health Scale defined, the first parameter is required. For example, for the body part health values of a grizzly bear with a health scale value of 2.5, the required format is:
{{Animal Health Table|2.5}}
which results in
On a page with Health Scale defined, no parameters are required. For example, if the health scale on the page was defined as 1.5, the required format would be:
{{Animal Health Table}}
which results in