Difference between revisions of "Template:Animal Health Table"
(Created page with "<includeonly>{{#vardefine:HealthScale | {{{ 1 | {{Q|{{PAGENAME}}|Health Scale}}}}} }}<div class="mw-collapsible mw-collapsed" style="width:4.5%"> <div class="mw-collapsible-co...") |
|||
Line 4: | Line 4: | ||
!Body part !!Health | !Body part !!Health | ||
|- | |- | ||
− | |Head || {{#expr: {{#var:HealthScale|}}* | + | |Head || {{#expr: {{#var:HealthScale|}}*30 round 0}} |
|- | |- | ||
|Skull ||{{#expr: {{#var:HealthScale|}}*30 round 0}} | |Skull ||{{#expr: {{#var:HealthScale|}}*30 round 0}} |
Revision as of 13:52, 15 January 2021
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:
Human
defined at: Template: Animal Health Table/HumanMonkey
defined at: Template: Animal Health Table/MonkeySnake
defined at: Template: Animal Health Table/SnakeMechanicalCentipede
defined at: Template: Animal Health Table/MechanicalCentipedeLancer
(Includes Tesseron and Legionary) defined at: Template: Animal Health Table/LancerPikeman
defined at: Template: Animal Health Table/PikemanScyther
defined at: Template: Animal Health Table/ScytherMechanicalTermite
defined at: Template: Animal Health Table/MechanicalTermiteMech_Light
defined at: Template: Animal Health Table/Mech_LightMech_Agrihand
defined at: Template: Animal Health Table/Mech_AgrihandScorcher
defined at: Template: Animal Health Table/ScorcherApocriton
defined at: Template: Animal Health Table/ApocritonMech_Tunneler
defined at: Template: Animal Health Table/Mech_TunnelerMech_Diabolus
defined at: Template: Animal Health Table/Mech_DiabolusMech_Centurion
defined at: Template: Animal Health Table/Mech_CenturionMech_Warqueen
defined at: Template: Animal Health Table/Mech_WarqueenBird
defined at: Template: Animal Health Table/BirdBeetleLike
defined at: Template: Animal Health Table/BeetleLikeBeetleLikeWithClaw
defined at: Template: Animal Health Table/BeetleLikeWithClawQuadrupedAnimalWithPaws
defined at: Template: Animal Health Table/QuadrupedAnimalWithPawsQuadrupedAnimalWithPawsAndTail
defined at: Template: Animal Health Table/QuadrupedAnimalWithPawsAndTailQuadrupedAnimalWithHooves
defined at: Template: Animal Health Table/QuadrupedAnimalWithHoovesQuadrupedAnimalWithHoovesAndHump
defined at: Template: Animal Health Table/QuadrupedAnimalWithHoovesAndHumpQuadrupedAnimalWithHoovesAndTusks
defined at: Template: Animal Health Table/QuadrupedAnimalWithHoovesAndTusksQuadrupedAnimalWithHoovesTusksAndTrunk
defined at: Template: Animal Health Table/QuadrupedAnimalWithHoovesTusksAndTrunkQuadrupedAnimalWithHoovesAndHorn
defined at: Template: Animal Health Table/QuadrupedAnimalWithHoovesAndHornQuadrupedAnimalWithClawsTailAndJowl
defined at: Template: Animal Health Table/QuadrupedAnimalWithClawsTailAndJowlTurtleLike
defined at: Template: Animal Health Table/TurtleLike
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. |
Eye [1] (left, right) |
Expression error: Unexpected * operator. |
Ear | 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. |
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". |
Eye [1] (left, right) |
Expression error: Unrecognized word "human". |
Ear | 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". |
{{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". |
Eye [1] (left, right) |
Expression error: Unrecognized word "human". |
Ear | 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". |
The above documentation is transcluded from Template:Animal Health Table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |