Difference between revisions of "Template:Animals/Row/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "== Summary == This template pulls the data from each animal's individual page and formats it into a neat row summary. It is only intended for use on the List of animals pa...")
 
(updated header)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
== Usage ==
 
== Usage ==
<code><nowiki>{{Animals/Row|*name*}}</nowiki></code>
+
<code><nowiki>{{Animals/Row|?Name=}}</nowiki></code>
  
The template takes a single parameter, the name of the animal being referenced, which must be the exact name of the animal's main page.  The parameter defaults to "Horse" if not given - used for testing/preview.
+
The template takes a single parameter, the name of the animal being referenced, which must be the exact name of the animal's main page.
  
 
== Example ==
 
== Example ==
 
<pre>{| {{STDT| sortable c_08 text-center}}
 
<pre>{| {{STDT| sortable c_08 text-center}}
! Animal !! Min. Handling Skill  !! Guard !! Attack !! Rescue !! Haul !! Diet !! Blocked by Fences !! Hunger Rate<ref>Nutrition lost per day.</ref>!! data-sort-type=number|Offspring Per Year !! data-sort-type=number|Meat Yield !! data-sort-type=number|Leather Yield !! Average DPS !! Move Speed !! Health Scale !! <abbr title="Chance of revenge when harmed">Manhunter<br>(Hunt)</abbr> !! <abbr title="Chance of revenge on a failed tame attempt">Manhunter<br>(Tame)</abbr> !! <abbr title="Nutrition of meat and milk out for each nutrition in, when babies are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Baby Slaughter)</abbr> !! <abbr title="Nutrition of meat and milk out for each nutrition in, when adults are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Adult Slaughter)</abbr>
+
! colspan="2" | Animal
 +
! Min. Handling Skill
 +
! Guard
 +
! Attack
 +
! Rescue
 +
! Haul
 +
! Diet
 +
! [[Pen animal|Pens]]
 +
! data-sort-type=number | Hunger Rate<ref>Nutrition lost per day.</ref>
 +
! data-sort-type=number | Offspring Per Year
 +
! data-sort-type=number | Meat Yield
 +
! data-sort-type=number | Leather Yield
 +
! data-sort-type=number | Average DPS
 +
! Move Speed
 +
! data-sort-type=number | Health Scale
 +
! <abbr title="Chance of revenge when harmed">[[Mental break#Manhunter|Manhunter]]<br/>(Hunt)</abbr>
 +
! <abbr title="Chance of revenge on a failed tame attempt">Manhunter<br/>(Tame)</abbr>
 +
! data-sort-type=number | <abbr title="Nutrition of meat and milk out for each nutrition in, when babies are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Baby Slaughter)</abbr>
 +
! data-sort-type=number | <abbr title="Nutrition of meat and milk out for each nutrition in, when adults are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Adult Slaughter)</abbr>
 
|-
 
|-
{{Animals/Row}}
+
{{Animals/Row|?Name=Horse}}
 
|-
 
|-
{{Animals/Row|Yorkshire terrier}}
+
{{Animals/Row|?Name=Yorkshire terrier}}
 
|}
 
|}
 
<references/></pre>
 
<references/></pre>
  
 
{| {{STDT| sortable c_08 text-center}}
 
{| {{STDT| sortable c_08 text-center}}
! Animal !! Min. Handling Skill  !! Guard !! Attack !! Rescue !! Haul !! Diet !! Blocked by Fences !! Hunger Rate<ref>Nutrition lost per day.</ref>!! data-sort-type=number|Offspring Per Year !! data-sort-type=number|Meat Yield !! data-sort-type=number|Leather Yield !! Average DPS !! Move Speed !! Health Scale !! <abbr title="Chance of revenge when harmed">Manhunter<br>(Hunt)</abbr> !! <abbr title="Chance of revenge on a failed tame attempt">Manhunter<br>(Tame)</abbr> !! <abbr title="Nutrition of meat and milk out for each nutrition in, when babies are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Baby Slaughter)</abbr> !! <abbr title="Nutrition of meat and milk out for each nutrition in, when adults are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Adult Slaughter)</abbr>
+
! colspan="2" | Animal
 +
! Min. Handling Skill
 +
! Guard
 +
! Attack
 +
! Rescue
 +
! Haul
 +
! Diet
 +
! [[Pen animal|Pens]]
 +
! data-sort-type=number | Hunger Rate<ref>Nutrition lost per day.</ref>
 +
! data-sort-type=number | Offspring Per Year
 +
! data-sort-type=number | Meat Yield
 +
! data-sort-type=number | Leather Yield
 +
! data-sort-type=number | Average DPS
 +
! Move Speed
 +
! data-sort-type=number | Health Scale
 +
! <abbr title="Chance of revenge when harmed">[[Mental break#Manhunter|Manhunter]]<br/>(Hunt)</abbr>
 +
! <abbr title="Chance of revenge on a failed tame attempt">Manhunter<br/>(Tame)</abbr>
 +
! data-sort-type=number | <abbr title="Nutrition of meat and milk out for each nutrition in, when babies are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Baby Slaughter)</abbr>
 +
! data-sort-type=number | <abbr title="Nutrition of meat and milk out for each nutrition in, when adults are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Adult Slaughter)</abbr>
 
|-
 
|-
{{Animals/Row}}
+
{{Animals/Row|?Name=Horse}}
 +
|-
 +
{{Animals/Row|?Name=Yorkshire terrier}}
 
|}
 
|}
 
<references/>
 
<references/>

Latest revision as of 09:17, 5 April 2024

Summary[edit]

This template pulls the data from each animal's individual page and formats it into a neat row summary. It is only intended for use on the List of animals page.

Usage[edit]

{{Animals/Row|?Name=}}

The template takes a single parameter, the name of the animal being referenced, which must be the exact name of the animal's main page.

Example[edit]

{| {{STDT| sortable c_08 text-center}}
! colspan="2" | Animal
! Min. Handling Skill
! Guard
! Attack
! Rescue
! Haul
! Diet
! [[Pen animal|Pens]]
! data-sort-type=number | Hunger Rate<ref>Nutrition lost per day.</ref>
! data-sort-type=number | Offspring Per Year
! data-sort-type=number | Meat Yield
! data-sort-type=number | Leather Yield
! data-sort-type=number | Average DPS
! Move Speed
! data-sort-type=number | Health Scale
! <abbr title="Chance of revenge when harmed">[[Mental break#Manhunter|Manhunter]]<br/>(Hunt)</abbr>
! <abbr title="Chance of revenge on a failed tame attempt">Manhunter<br/>(Tame)</abbr>
! data-sort-type=number | <abbr title="Nutrition of meat and milk out for each nutrition in, when babies are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Baby Slaughter)</abbr>
! data-sort-type=number | <abbr title="Nutrition of meat and milk out for each nutrition in, when adults are slaughtered, for a ratio of 4:1 females:males, and assuming constant pregnancy and immediate milking>Nutrition Efficiency (Adult Slaughter)</abbr>
|-
{{Animals/Row|?Name=Horse}}
|-
{{Animals/Row|?Name=Yorkshire terrier}}
|}
<references/>
Animal Min. Handling Skill Guard Attack Rescue Haul Diet Pens Hunger Rate[1] Offspring Per Year Meat Yield Leather Yield Average DPS Move Speed Health Scale Manhunter
(Hunt)
Manhunter
(Tame)
Nutrition Efficiency (Baby Slaughter) Nutrition Efficiency (Adult Slaughter)
Horse Horse 2 Ex.png Ex.png Ex.png Ex.png Vegetables Plants Check.png 0.68 9 336 96 2.06 5.8 1.75 0% 0% 0.59 1.37
Yorkshire terrier Yorkshire terrier 0 Check.png Check.png Ex.png Ex.png Meat Eggs Vegetables Ex.png 0.24 11.6 45 20 1.09 3.1 0.4 0% 0% 0.55 0.53
  1. Nutrition lost per day.