Difference between revisions of "Template:Animal Health Table"

From RimWorld Wiki
Jump to navigation Jump to search
(Undo revision 79655 by Harakoni (talk))
Tag: Undo
Line 1: Line 1:
<includeonly>{{#vardefine:HealthScale | {{{ 1 | {{Q|{{PAGENAME}}|Health Scale}}}}} }}<div class="mw-collapsible mw-collapsed" style="width:4.5%">
+
<includeonly>{{#vardefine:HealthScale | {{{ 1 | {{Q|{{PAGENAME}}|Health Scale}}}}} }} {{#if:{{{1}}}|[[Category:Harakoni page]]}}<div class="mw-collapsible mw-collapsed" style="width:4.5%">
 
<div class="mw-collapsible-content" style="width:700%">
 
<div class="mw-collapsible-content" style="width:700%">
 
{|class="wikitable"
 
{|class="wikitable"

Revision as of 05:49, 8 February 2021


Documentation icon Template documentation[view] [edit] [history] [purge]

Creates a table showing the health values for various body parts of a given animal.

Parameters

Currently accepts two parameters, namely bodytype and baseHealthScale. The template is set up to automatically draw from the page parameters if they exist, or the parameters can be defined instead. At the time of writing, only baseHealthScale is ever defined on pages.

The parameters are entered unnamed, in the following pattern:

{{quote|bodytype|baseHealthScale}}

Currently supported body types are as follows:

Example usage

On a page without Health Scale defined, the second 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 Expression error: Unexpected * operator.
Skull Expression error: Unexpected * operator.
Brain Expression error: Unexpected * operator.
Nose Expression error: Unexpected * operator.
Neck Expression error: Unexpected * operator.
Jaw Expression error: Unexpected * operator.
Eye [1]
(left, right)
Expression error: Unexpected * operator.
Ear
(left, right)
Expression error: Unexpected * operator.
Body Expression error: Unexpected * operator.
Kidney[2]
(left, right)
Expression error: Unexpected * operator.
Lung[2]
(left, right)
Expression error: Unexpected * operator.
Liver[2] Expression error: Unexpected * operator.
Heart[2] Expression error: Unexpected * operator.
Spine[2] Expression error: Unexpected * operator.
Stomach[2] Expression error: Unexpected * operator.
Limbs
(left, right, fore, hind)
Expression error: Unexpected * operator.
Appendage
(left, right, fore, hind)
Expression error: Unexpected * operator.
  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.0, the required format would be:

{{Animal Health Table|human}}
which results in
Body part Health
Head Expression error: Unrecognized word "human".
Skull Expression error: Unrecognized word "human".
Brain Expression error: Unrecognized word "human".
Nose Expression error: Unrecognized word "human".
Neck Expression error: Unrecognized word "human".
Jaw Expression error: Unrecognized word "human".
Eye [1]
(left, right)
Expression error: Unrecognized word "human".
Ear
(left, right)
Expression error: Unrecognized word "human".
Body Expression error: Unrecognized word "human".
Kidney[2]
(left, right)
Expression error: Unrecognized word "human".
Lung[2]
(left, right)
Expression error: Unrecognized word "human".
Liver[2] Expression error: Unrecognized word "human".
Heart[2] Expression error: Unrecognized word "human".
Spine[2] Expression error: Unrecognized word "human".
Stomach[2] Expression error: Unrecognized word "human".
Limbs
(left, right, fore, hind)
Expression error: Unrecognized word "human".
Appendage
(left, right, fore, hind)
Expression error: Unrecognized word "human".
  1. Located inside of Head.
  2. 2.0 2.1 2.2 2.3 2.4 2.5 Located inside of Body.


{{Animal Health Table|human|notCollapsible=1}}
which results in
Body part Health
Head Expression error: Unrecognized word "human".
Skull Expression error: Unrecognized word "human".
Brain Expression error: Unrecognized word "human".
Nose Expression error: Unrecognized word "human".
Neck Expression error: Unrecognized word "human".
Jaw Expression error: Unrecognized word "human".
Eye [1]
(left, right)
Expression error: Unrecognized word "human".
Ear
(left, right)
Expression error: Unrecognized word "human".
Body Expression error: Unrecognized word "human".
Kidney[2]
(left, right)
Expression error: Unrecognized word "human".
Lung[2]
(left, right)
Expression error: Unrecognized word "human".
Liver[2] Expression error: Unrecognized word "human".
Heart[2] Expression error: Unrecognized word "human".
Spine[2] Expression error: Unrecognized word "human".
Stomach[2] Expression error: Unrecognized word "human".
Limbs
(left, right, fore, hind)
Expression error: Unrecognized word "human".
Appendage
(left, right, fore, hind)
Expression error: Unrecognized word "human".
  1. Located inside of Head.
  2. 2.0 2.1 2.2 2.3 2.4 2.5 Located inside of Body.