Editing Template:Animals/Row
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: | ||
− | < | + | <noinclude>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: <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 "Wild boar" if not given - used for testing/preview. | |
− | + | ||
− | + | Example: | |
− | { | + | {| {{STDT| sortable c_08 text-center}} |
− | + | ! Animal !! Type !! Wildness !! Min. Handling Skill !! Guard !! Attack !! Rescue !! Haul !! Diet !! Hunger Rate<ref>Nutrition lost per day.</ref>!! Health Scale !! Average DPS !! Move Speed !! Manhunter<br>(Hunt) !! Manhunter<br>(Tame) !! Blocked by Fences!! Filth Rate<ref>The average amount of filth produced on constructed floors per 1000 cells walked.</ref>!! Meat Yield<ref>Amounts given are at 100% butchery efficiency.</ref>!! Leather Yield<ref>Amounts given are at 100% butchery efficiency.</ref>!! Market Value !! Life Expectancy (Years) !! Maturity Age (Years) !! Gestation Period (Days)<ref>For egglayers, this is both the incubation period and the egg-laying interval.</ref> !! Nuzzle Interval (Hours)<ref>Mean time between nuzzles.</ref> !! Nutrition Efficiency (adult slaughter)<ref name=nutr_eff>Nutrition out from meat and milk for each nutrition in, calculated for a system of 8 adult females and 2 adult male, with the assumptions of constant pregnancy and immediate milking.</ref> !! Nutrition Efficiency (baby slaughter)<ref name=nutr_eff/> | |
− | + | |- | |
− | + | {{Animals/Row|Yorkshire terrier}} | |
− | + | |} | |
− | + | </noinclude><includeonly> | |
− | + | <!--Nutrition efficiency calculation--> | |
− | <!-- Nutrition efficiency calculation --> | + | {{#vardefine:females|8}}{{#vardefine:males|2}} |
− | {{#vardefine:females| | ||
{{#vardefine:milk_nutrition_production | {{#vardefine:milk_nutrition_production | ||
− | | {{#if: {{#show: {{{?Name}}}|?Milk Amount#}} | + | | {{#if: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Milk Amount#}} |
− | | {{#expr:{{#var:females}}*{{#show: {{{?Name}}}|?Milk Amount#}}/{{#show: {{{?Name}}}|?Milking Interval Days#}}*0.05}} | + | | {{#expr:{{#var:females}}*{{#show: {{{?Name|{{{1|Horse}}} }}}|?Milk Amount#}}/{{#show: {{{?Name|{{{1|Horse}}} }}}|?Milking Interval Days#}}*0.05}} |
| 0 | | 0 | ||
}} | }} | ||
}} | }} | ||
{{#vardefine:baby_slaughter_production | {{#vardefine:baby_slaughter_production | ||
− | | {{#expr:{{Meat Production| {{{?Name}}} | Baby | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} | + | | {{#expr:{{Meat Production| {{{?Name|{{{1|Horse}}} }}} | Baby | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} |
}}{{#vardefine:baby_slaughter_consumption | }}{{#vardefine:baby_slaughter_consumption | ||
− | | {{Nutrition Consumption| {{{?Name}}} | Baby | {{#var:females}} | {{#var:males}}}} | + | | {{Nutrition Consumption| {{{?Name|{{{1|Horse}}} }}} | Baby | {{#var:females}} | {{#var:males}}}} |
}} | }} | ||
{{#vardefine:adult_slaughter_production | {{#vardefine:adult_slaughter_production | ||
− | | {{#expr:{{Meat Production| {{{?Name}}} | Adult | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} | + | | {{#expr:{{Meat Production| {{{?Name|{{{1|Horse}}} }}} | Adult | {{#var:females}} | {{#var:males}}}} + {{#var:milk_nutrition_production}}}} |
}} | }} | ||
{{#vardefine:adult_slaughter_consumption | {{#vardefine:adult_slaughter_consumption | ||
− | | {{Nutrition Consumption| {{{?Name | + | | {{Nutrition Consumption| {{{?Name|{{{1|Horse}}} }}} | Adult | {{#var:females}} | {{#var:males}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | | {{# | ||
− | | {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | | {{# | + | <!--Actual row--> |
− | | {{ | + | |
− | | {{# | + | ![[{{{?Name|{{{1|Horse}}} }}}]]<br>[[{{#show:{{{?Name|{{{1|Horse}}} }}}|?Image#}}|32px]] |
− | | {{ | + | | {{#show: {{{?Name|{{{1|Horse}}} }}}|?Type#}} |
− | | {{ | + | | {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Wildness#}} * 100}}% |
− | | {{#show: {{{?Name}}}|?Mob Average DPS#}} | + | | {{#show: {{{?Name|{{{1|Horse}}} }}}|?Minimum Handling Skill#}} |
− | | {{#show: {{{?Name}}}|?Move Speed Base#}} | + | | {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Guard#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#show: {{{?Name}}}|? | + | | {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Attack#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#expr: {{#show: {{{?Name}}}|?Turn Manhunter Chance When | + | | {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Rescue#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#if:{{# | + | | {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Can Train Haul#}} | true=[[File:check.png|24px|link=]] | false=[[File:ex.png|24px|link=]]}} |
− | | {{#iferror: {{#expr:{{#var: | + | | {{#switch: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Diet#}} |
− | | {{#iferror: {{#expr:{{#var: | + | | herbivorous = [[File:Potato plant.png|22px|alt=Plants|link=]] |
+ | | dendrovorous = [[File:Wood.png|24px|alt=Wood|link=]] | ||
+ | | carnivorous = [[File:MeatBig cropped.png|alt=Meat|link=]] | ||
+ | | omnivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Potato plant.png|22px|alt=Plants|link=]]}} | ||
+ | | herbivorous and dendrovorous = {{nowrap|[[File:Potato plant.png|22px|alt=Plants|link=]] [[File:Wood.png|24px|alt=Wood|link=]]}} | ||
+ | | carnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]]}} | ||
+ | | omnivorous and ovivorous = {{nowrap|[[File:MeatBig cropped.png|alt=Meat|link=]] [[File:Eggs fertilized cropped.png|alt=Eggs|link=]] [[File:Potato plant.png|22px|alt=Plants|link=]]}} | ||
+ | | raw meat and corpses = [[File:MeatBig cropped.png|alt=Meat|link=]] | ||
+ | | none = -}} | ||
+ | | {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Base Hunger Rate#}} * 1.6 round2}} | ||
+ | | {{#show: {{{?Name|{{{1|Horse}}} }}}|?Health Scale#}} | ||
+ | | {{#show: {{{?Name|{{{1|Horse}}} }}}|?Mob Average DPS#}} | ||
+ | | {{#show: {{{?Name|{{{1|Horse}}} }}}|?Move Speed Base#}} | ||
+ | | {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Turn Manhunter Chance When Attacked#}} *100}}% | ||
+ | | {{#expr: {{#show: {{{?Name|{{{1|Horse}}} }}}|?Turn Manhunter Chance When Taming#}} *100}}% | ||
+ | | {{#if:{{#show: {{{?Name|{{{1|Horse}}} }}}|?Roam Mtb Days}}|[[File:check.png|24px|link=]]|[[File:ex.png|24px|link=]]}} | ||
+ | | {{#show: {{{?Name|{{{1|Horse}}} }}}|?Animal Filth Rate#}} | ||
+ | | {{Q|{{{?Name|{{{1|Horse}}} }}}|Meat Yield#|-}} | ||
+ | | {{Q|{{{?Name|{{{1|Horse}}} }}}|Leather Yield#|-}} | ||
+ | | {{Q|{{{?Name|{{{1|Horse}}} }}}|Market Value Base#|-}} | ||
+ | | {{Q|{{{?Name|{{{1|Horse}}} }}}|Life Expectancy#|-}} | ||
+ | | {{Q|{{{?Name|{{{1|Horse}}} }}}|Maturity Age#|-}} | ||
+ | | {{Q|{{{?Name|{{{1|Horse}}} }}}|Gestation Period Days#|-}} | ||
+ | | {{Q|{{{?Name|{{{1|Horse}}} }}}|Nuzzle Mtb Hours#|Never}} | ||
+ | | {{#iferror: {{#expr:{{#var:adult_slaughter_production}}/{{#var:adult_slaughter_consumption}} round 2}} | NA}} | ||
+ | | {{#iferror: {{#expr:{{#var:baby_slaughter_production}}/{{#var:baby_slaughter_consumption}} round 2}} | NA}} | ||
|- | |- | ||
− | </includeonly><noinclude> | + | </includeonly> |
+ | <noinclude>[[Category:Customized table templates]]</noinclude> |