Difference between revisions of "Template:Infobox:animal"

From Cantr II Wiki
Jump to: navigation, search
m
m
 
(18 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{if|test={{equal|{{{record}}}|data}}|then={{{!}} class="infobox bordered" cellpadding="4" style="float:right;"
+
<includeonly>{{Infobox:AnimalBase
{{!}}-
+
| title    = {{{name|}}}
{{!}}
+
| image    = {{{image|}}}
{{{!}} class="infobox" style="background-color:#E1FFE1; float:right; width:25em; font-size: 95%; margin-left: inherit;" valign="top" cellpadding="1" border="1" cellspacing="0"
+
| resize  = {{{resize|}}}
! style="background-color: #00FF00;" colspan="2" {{!}} Animal
+
| comment  = {{{description|}}}
{{!}}-
+
| section1 = Wild animal
{{!}} '''Attacking damage''' {{!}}{{!}} {{{attackforce}}}
+
| widths1  = 115
{{!}}-
+
| item0s1  = Max Pack Size
{{!}} '''[[Aggressiveness]]''' {{!}}{{!}} {{{attackchance}}}
+
| info0s1  = {{if|test={{{maxpacksize|}}}|then={{{maxpacksize|0}}}|else={{Inc3}}}}
{{!}}-
+
| item1s1  = Attacking damage
{{!}} '''Strength''' {{!}}{{!}} {{{strength}}}
+
| info1s1  = {{if|test={{{attackforce|}}}|then={{{attackforce|0}}}|else={{Inc3}}}}
{{!}}-
+
| item2s1  = Aggressiveness
{{!}} '''[[Natural armour]]''' {{!}}{{!}} {{{armour}}}
+
| info2s1  = {{if|test={{{attackchance|}}}|then={{{attackchance|0}}}|else={{Inc3}}}}
{{!}}-
+
| item3s1  = Strength
{{!}} '''[[Likeliness of migration]]''' {{!}}{{!}} {{{travelchance}}}
+
| info3s1  = {{if|test={{{strength|}}}|then={{{strength|0}}}|else={{Inc3}}}}
{{!}}-
+
| item4s1  = Natural armour
{{!}} '''Travel speed {{!}}{{!}} {{{travelspeed}}} [[pixel|pixels]] per day
+
| info4s1  = {{if|test={{{armour|}}}|then={{{armour|0}}}|else={{Inc3}}}}
{{!}}-
+
| item5s1  = Habitat
{{!}} '''[[Reproduction rate]]''' {{!}}{{!}} {{{reproduction}}}
+
| info5s1  = {{if|test={{{areas|}}}|then={{{areas}}}|else={{Inc3}}}}
{{!}}-
+
| item6s1  = Hunting yields
{{!}} '''Habitat''' {{!}}{{!}} {{{areas}}}
+
| info6s1  = {{if|test={{{resources|}}}|then={{{resources}}}|else={{Inc3}}}}
{{!}}-
+
| section2 = {{if|test={{{feed|}}}|then=Domesticated|else=}}
{{!}} '''Resources''' {{!}}{{!}} {{{resources}}}
+
| item0s2  = Feed type
{{!}}-
+
| info0s2  = {{if|test={{{feed|}}}|then={{{feed}}}|else=}}
{{!}} '''Average age''' {{!}}{{!}} {{{age}}}
+
| item1s2  = {{if|test={{{feedamnt|}}}|then=Feed amount|else=}}
{{!}}}
+
| info1s2  = {{if|test={{{feedamnt|}}}|then={{{feedamnt}}} grams per day|else=}}
{{!}}}
+
| item2s2  = Allowed terrain
<includeonly>[[Category:Animals]]</includeonly>|
+
| info2s2  = {{if|test={{{terrain|}}}|then={{{terrain}}}|else=}}
else=}}
+
| item3s2  = Renewables
 +
| info3s2  = {{if|test={{{milking|}}}|then={{{milking}}}|else={{if|test={{{shearing|}}}|then={{{shearing}}}|else={{if|test={{{collect|}}}|then={{{collect}}}|else=none}}}}}}
 +
| item4s2  = Butchering yields
 +
| 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>

Latest revision as of 19:40, 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]]