Difference between revisions of "Template:Infobox:animal"

From Cantr II Wiki
Jump to: navigation, search
m
Line 1: Line 1:
{| 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"
+
| comment  = {{{description|}}}
! style="background-color: #00FF00;" colspan="2" | Animal
+
| section1 = Animal
|-
+
| widths1  = 115
| '''Attacking damage''' || {{{attackforce}}}
+
| item0s1  = Attacking damage
|-
+
| info0s1  = {{if|test={{{attackforce|}}}|then={{{attackforce|0}}}|else={{Inc3}}}}
| '''[[Aggressiveness]]''' || {{{attackchance}}}
+
| item1s1  = Aggressiveness
|-
+
| info1s1  = {{if|test={{{attackchance|}}}|then={{{attackchance|0}}}|else={{Inc3}}}}
| '''Strength''' || {{{strength}}}
+
| item2s1  = Strength
|-
+
| info2s1  = {{if|test={{{strength|}}}|then={{{strength|0}}}|else={{Inc3}}}}
| '''[[Natural armour]]''' || {{{armour}}}
+
| item3s1  = Natural armour
|-
+
| info3s1  = {{if|test={{{armour|}}}|then={{{armour|0}}}|else={{Inc3}}}}
| '''[[Likeliness of migration]]''' || {{{travelchance}}}
+
| item4s1  = Likeliness of migration
|-
+
| info4s1  = {{if|test={{{travelchance|}}}|then={{{travelchance|0}}}%|else={{Inc3}}}}
| '''Travel speed || {{{travelspeed}}} [[pixel|pixels]] per day
+
| item5s1  = Travel speed
|-
+
| info5s1  = {{if|test={{{travelspeed|}}}|then={{{travelspeed|0}}} pixels per day|else={{Inc3}}}}
| '''[[Reproduction rate]]''' || {{{reproduction}}}
+
| item6s1  = Reproduction rate
|-
+
| info6s1  = {{if|test={{{reproduction|}}}|then={{{reproduction|0}}}|else={{Inc3}}}}
| '''Habitat''' || {{{areas}}}
+
| item7s1  = Average age
|-
+
| info7s1  = {{if|test={{{age|}}}|then={{{age|0}}}|else={{Inc3}}}}
| '''Resources''' || {{{resources}}}
+
| item8s1  = Habitat
|-
+
| info8s1  = {{if|test={{{areas|}}}|then={{{areas}}}|else={{Inc3}}}}
| '''Average age''' || {{{age}}}
+
| item9s1  = Resources
|}
+
| info9s1  = {{if|test={{{resources|}}}|then={{{resources}}}|else={{Inc3}}}}
|}
+
}}<!-- Object Categories -->{{if|test={{{sortingname|}}}|then=[[Category:Animals|{{{sortingname}}}]]|else={{if|test={{{title|}}}|then=[[Category:Animals|{{{name}}}]]|else=[[Category:Animals]]}}}}</includeonly><!-- Template Categories --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:Animals]]</includeonly>
 

Revision as of 02:32, 17 November 2010

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]]