Difference between revisions of "Template:Infobox:animal"

From Cantr II Wiki
Jump to: navigation, search
m (checking to see if I broke Weight (previously item 4s2))
m (Undo revision 84614 by Shaudawn (talk))
Line 23: Line 23:
 
| item0s2  = Feed type
 
| item0s2  = Feed type
 
| info0s2  = {{if|test={{{feed|}}}|then={{{feed}}}|else=}}
 
| info0s2  = {{if|test={{{feed|}}}|then={{{feed}}}|else=}}
| item1s2  = Allowed terrain
+
| item1s2 = {{if|test={{{feedamnt|}}}|then=Feed amount|else=}}
| info1s2 = {{if|test={{{terrain|}}}|then={{{terrain}}}|else=}}
+
| info1s2  = {{if|test={{{feedamnt|}}}|then={{{feedamnt}}} grams|else=}}
| item2s2 = Renewables
+
| item2s2 = Allowed terrain
| info2s2 = {{if|test={{{milking|}}}|then={{{milking}}}|else={{if|test={{{shearing|}}}|then={{{shearing}}}|else={{if|test={{{collect|}}}|then={{{collect}}}|else=none}}}}}}
+
| info2s2 = {{if|test={{{terrain|}}}|then={{{terrain}}}|else=}}
| item3s2 = Butchering yields
+
| item3s2 = Renewables
| info3s2 = {{if|test={{{butcher|}}}|then={{{butcher}}}|else=}}
+
| info3s2 = {{if|test={{{milking|}}}|then={{{milking}}}|else={{if|test={{{shearing|}}}|then={{{shearing}}}|else={{if|test={{{collect|}}}|then={{{collect}}}|else=none}}}}}}
| item4s2 = {{if|test={{{weight|}}}|then=Weight|else=}}
+
| item4s2 = Butchering yields
| info4s2 = {{if|test={{{weight|}}}|then={{{weight|0}}} grams|else=}}
+
| info4s2 = {{if|test={{{butcher|}}}|then={{{butcher}}}|else=}}
 +
| item5s2 = {{if|test={{{weight|}}}|then=Weight|else=}}
 +
| info5s2 = {{if|test={{{weight|}}}|then={{{weight|0}}} grams|else=}}
 
}}<!-- Object Categories -->{{if|test={{{sortingname|}}}|then=[[Category:Animals|{{{sortingname}}}]]|else={{if|test={{{name|}}}|then=[[Category:Animals|{{{name}}}]]|else=[[Category:Animals]]}}}}</includeonly><!-- Template Categories --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
}}<!-- Object Categories -->{{if|test={{{sortingname|}}}|then=[[Category:Animals|{{{sortingname}}}]]|else={{if|test={{{name|}}}|then=[[Category:Animals|{{{name}}}]]|else=[[Category:Animals]]}}}}</includeonly><!-- Template Categories --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 17:44, 3 January 2022

Template documentation[ view ] [ discuss ] [edit]

{{Infobox:animal}} allows to detail in a single table, all of the listed information about an animal.

The table is located in the upper right corner, and can contain: an image with its description; information about the category; attacking damage of the animal; aggressiveness; the natural armour strength; the likeliness of migration; travel speed; reproduction rate; habitat(s); resources the animal drops upon death; and the average age of life.

The article is automatically added to the corresponding subcategory of Animals.

Usage

Copy the text below and paste it to the top of the page you are editing. Complete the fields with the information you want to display. Unused fields may be deleted or left incomplete.

{{Infobox:animal
| image        = 
| resize       = 
| maxpacksize  = 
| attackforce  = 
| attackchance = 
| strength     = 
| armour       = 
| areas        = 
| resources    = 
| feed         = 
| feedamnt     = 
| terrain      = 
| milking      = 
| butcher      = 
| weight       = 
}}

Parameters

  • areas
    • Examples: areas = [[grassland]]
    • areas = [[grassland]]<br>[[mountains]]
  • resources
    • Examples: resources = 1000 grams de [[meat]]<br>200 grams de [[large bones]]