Difference between revisions of "Template:Animal Health Table/doc"

From RimWorld Wiki
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 its looking for '''Health Scale''') if it exists, but no such parameter has been integrated into the [[Template: infobox main]] as of writing. This is simply an attempt at future-proofing and should not affect normal operation.  
+
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. See Parameters for caveat however.
+
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


Body part Health
Head 25
Skull 25
Brain 10
Nose 10
Neck 25
Jaw 20
Eye [1]
(left, right)
10
Ear
(left, right)
10
Body 40
Kidney[2]
(left, right)
15
Lung[2]
(left, right)
15
Liver[2] 20
Heart[2] 15
Spine[2] 25
Stomach[2] 20
Limbs
(left, right, fore, hind)
30
Appendage
(left, right, fore, hind)
20
  1. Located inside of Head.
  2. 2.0 2.1 2.2 2.3 2.4 2.5 Located inside of Body.

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


Body part Health
Head 25
Skull 25
Brain 10
Nose 10
Neck 25
Jaw 20
Eye [1]
(left, right)
10
Ear
(left, right)
10
Body 40
Kidney[2]
(left, right)
15
Lung[2]
(left, right)
15
Liver[2] 20
Heart[2] 15
Spine[2] 25
Stomach[2] 20
Limbs
(left, right, fore, hind)
30
Appendage
(left, right, fore, hind)
20
  1. Located inside of Head.
  2. 2.0 2.1 2.2 2.3 2.4 2.5 Located inside of Body.