Editing Template:Animal Health Table/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
Creates a table showing the health values for various body parts of a given animal.
 
Creates a table showing the health values for various body parts of a given animal.
  
== Parameters ==
+
==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.
 
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.
  
Line 9: Line 9:
 
Currently supported body types are as follows:
 
Currently supported body types are as follows:
 
*<code>Human</code> defined at: [[Template: Animal Health Table/Human]]
 
*<code>Human</code> defined at: [[Template: Animal Health Table/Human]]
*<code>Monkey</code> defined at: [[Template: Animal Health Table/Monkey]]
+
*<code>Monkey</code> defined at: [[Template: Animal Health Table/Monkey]] (Missing Manipulation losses at time of writing)
 
*<code>Snake</code> defined at: [[Template: Animal Health Table/Snake]]
 
*<code>Snake</code> defined at: [[Template: Animal Health Table/Snake]]
 
*<code>MechanicalCentipede</code> defined at: [[Template: Animal Health Table/MechanicalCentipede]]
 
*<code>MechanicalCentipede</code> defined at: [[Template: Animal Health Table/MechanicalCentipede]]
*<code>Lancer</code>(Includes Tesseron and Legionary) defined at: [[Template: Animal Health Table/Lancer]]
 
*<code>Pikeman</code> defined at: [[Template: Animal Health Table/Pikeman]]
 
*<code>Scyther</code> defined at: [[Template: Animal Health Table/Scyther]]
 
*<code>MechanicalTermite</code> defined at: [[Template: Animal Health Table/MechanicalTermite]]
 
*<code>Mech_Light</code> defined at: [[Template: Animal Health Table/Mech_Light]]
 
*<code>Mech_Agrihand</code> defined at: [[Template: Animal Health Table/Mech_Agrihand]]
 
*<code>Scorcher</code> defined at: [[Template: Animal Health Table/Scorcher]]
 
*<code>Apocriton</code> defined at: [[Template: Animal Health Table/Apocriton]]
 
*<code>Mech_Tunneler</code> defined at: [[Template: Animal Health Table/Mech_Tunneler]]
 
*<code>Mech_Diabolus</code> defined at: [[Template: Animal Health Table/Mech_Diabolus]]
 
*<code>Mech_Centurion</code> defined at: [[Template: Animal Health Table/Mech_Centurion]]
 
*<code>Mech_Warqueen</code> defined at: [[Template: Animal Health Table/Mech_Warqueen]]
 
  
 
Planned supported body types are as follows:
 
Planned supported body types are as follows:
Line 38: Line 26:
 
*<code>QuadrupedAnimalWithClawsTailAndJowl</code> defined at: [[Template: Animal Health Table/QuadrupedAnimalWithClawsTailAndJowl]]
 
*<code>QuadrupedAnimalWithClawsTailAndJowl</code> defined at: [[Template: Animal Health Table/QuadrupedAnimalWithClawsTailAndJowl]]
 
*<code>TurtleLike</code> defined at: [[Template: Animal Health Table/TurtleLike]]
 
*<code>TurtleLike</code> defined at: [[Template: Animal Health Table/TurtleLike]]
 +
*<code>Lancer</code> defined at: [[Template: Animal Health Table/Lancer]]
 +
*<code>Pikeman</code> defined at: [[Template: Animal Health Table/Pikeman]]
 +
*<code>Scyther</code> defined at: [[Template: Animal Health Table/Scyther]]
 +
*<code>MechanicalTermite</code> defined at: [[Template: Animal Health Table/MechanicalTermite]]
  
== Example usage ==
+
==Example usage==
 
On a page without '''Health Scale''' defined, the second parameter is required.
 
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:
 
For example, for the body part health values of a [[grizzly bear]] with a health scale value of 2.5, the required format is:
Line 48: Line 40:
 
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.0, the required format would be:
 
For example, if the health scale on the page was defined as 1.0, the required format would be:
  <nowiki>{{Animal Health Table|human}}</nowiki>
+
  <nowiki>{{Animal Health Table|Human}}</nowiki>
 
which results in
 
which results in
 
{{Animal Health Table|Human}}
 
{{Animal Health Table|Human}}
  
  <nowiki>{{</nowiki>Animal Health Table|{{#switch: {{SUBPAGENAME}} | doc | Animal Health Table = human | #default = {{#titleparts: {{PAGENAME}} | 1 | 2 }} }}|notCollapsible=1<nowiki>}}</nowiki>
+
 
 +
  <nowiki>{{Animal Health Table|human|notCollapsible=1}}</nowiki>
 
which results in
 
which results in
{{Animal Health Table|{{#switch: {{SUBPAGENAME}} | doc | Animal Health Table = human | #default = {{SUBPAGENAME}} }}|notCollapsible=1}}
+
{{Animal Health Table|human|notCollapsible=1}}
  
 
<includeonly>[[Category:Customized table templates]]</includeonly>
 
<includeonly>[[Category:Customized table templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

This page is a member of 1 hidden category: