Difference between revisions of "Template:Creature"

From Wurmpedia
Jump to navigation Jump to search
m (Fix for creature template.)
(Adding CSS)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
<templatestyles src="InfoTable/styles.css" />
 
<includeonly>
 
<includeonly>
{| class="wikitable" style="float:right; margin:1em; width:200px;" cellpadding="3" cellspacing="1" border="1"
+
{| class="wikitable" style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1"
 
|+ style="font-weight: bold" | {{PAGENAME}}
 
|+ style="font-weight: bold" | {{PAGENAME}}
 
|
 
|
Line 9: Line 10:
 
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 
     }}
 
     }}
}}{{#ifeq:{{lc:{{{unique|}}}}}|yes|
+
}}
 +
{{#ifeq:{{lc:{{{unique|}}}}}|yes|
 
{{!}}-
 
{{!}}-
! style="background-color:#E3CA74; color:#FFFFFF;" {{!}} [[Unique]]
+
! class="creature-unique-row" {{!}} [[Unique]]
 
{{!}}-
 
{{!}}-
|}}
+
{{!}}|}}
 
|-
 
|-
! style="background-color:#4B3E30; color:#FFFFFF;" | Information
+
! class="infobox-header-row" | Information
 
|-
 
|-
 
|
 
|
 
{{#if:{{{aggro|}}}|
 
{{#if:{{{aggro|}}}|
 
{{#switch: {{lc:{{{aggro}}}}}
 
{{#switch: {{lc:{{{aggro}}}}}
| no = ;Aggressive:No, this creature will not unprovoked.
+
| no = ;Aggressive:No, this creature will not attack unprovoked.
 
| yes = ;Aggressive:Yes, this creature will attack unprovoked.
 
| yes = ;Aggressive:Yes, this creature will attack unprovoked.
 
| reduced = ;Aggressive:Yes, this creature will occasionally attack unprovoked.
 
| reduced = ;Aggressive:Yes, this creature will occasionally attack unprovoked.
Line 68: Line 70:
 
{{!}}|}}{{#if:{{{butcheringprod|}}}|;[[Butchering|Butchering produces]]:{{{butcheringprod}}}
 
{{!}}|}}{{#if:{{{butcheringprod|}}}|;[[Butchering|Butchering produces]]:{{{butcheringprod}}}
 
{{!}}-
 
{{!}}-
{{!}}|}}{{#if:{{{eats|}}}|;Eats:{{{eats}}}
+
{{!}}|}}{{#if:{{{meattype|}}}|;Meat type:{{{meattype}}}
 +
{{!}}-
 +
{{!}}|}}{{#if:{{{eats|}}}|;Diet:{{{eats}}}
 
{{!}}-
 
{{!}}-
 
{{!}}|}}{{#if:{{{lair|}}}|;Lair:{{{lair}}}
 
{{!}}|}}{{#if:{{{lair|}}}|;Lair:{{{lair}}}
Line 74: Line 78:
 
{{!}}|}}{{#if:{{{spawn|}}}|;Spawns on:{{{spawn}}}|}}
 
{{!}}|}}{{#if:{{{spawn|}}}|;Spawns on:{{{spawn}}}|}}
 
|}
 
|}
[[Category:Bestiary]]
+
 
 +
 
 +
<!-- the following will place the page in bestiary category only if in the main namespace -->
 +
{{#ifeq: {{FULLPAGENAME}} | {{PAGENAME}} | [[Category:Bestiary]]| }}
 +
 
 
</includeonly>
 
</includeonly>
  
 
<noinclude>
 
<noinclude>
Usage:
+
 
 +
==Usage==
 +
This template is used on ''Creature'' pages to describe their different features. Using this template is described below.
 
<pre>
 
<pre>
 
{{Creature
 
{{Creature
Line 88: Line 98:
 
|groomable=Yes|No|Unknown
 
|groomable=Yes|No|Unknown
 
|butcheringprod=[[Meat]], [[fat]], [[tail]], [[hoof]], [[gland]], [[eye]], [[hide]], [[bladder]]
 
|butcheringprod=[[Meat]], [[fat]], [[tail]], [[hoof]], [[gland]], [[eye]], [[hide]], [[bladder]]
 +
|meattype=Game meat
 
|ridable=Yes|No|Unknown
 
|ridable=Yes|No|Unknown
 
|swim=Yes|No|Unknown
 
|swim=Yes|No|Unknown
Line 97: Line 108:
  
 
[[Category:Template]]
 
[[Category:Template]]
[[Category:Babel/C]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 18:16, 22 April 2021



Usage

This template is used on Creature pages to describe their different features. Using this template is described below.

{{Creature
|image=deer.jpg    *** defaults to {{PAGENAME}}.jpg or {{PAGENAME}}.png ***
|unique=yes (leave out for non-uniques)
|aggro=Yes|No|Reduced
|tamable=Yes|No|Unknown
|dommable=Yes|No|Unknown
|groomable=Yes|No|Unknown
|butcheringprod=[[Meat]], [[fat]], [[tail]], [[hoof]], [[gland]], [[eye]], [[hide]], [[bladder]]
|meattype=Game meat
|ridable=Yes|No|Unknown
|swim=Yes|No|Unknown
|eats=Grain and seeds
|lair=[[Deer Yard]]
|spawn=[[Grass]], [[Steppe]]
}}