Difference between revisions of "Template:Creature"

From Wurmpedia
Jump to navigation Jump to search
m (Fix for creature template.)
m (Fix for table rows)
Line 20: Line 20:
 
|
 
|
 
{{#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 unprovoked.
Line 26: Line 27:
 
| #default = ;Aggressive:{{{aggro}}}
 
| #default = ;Aggressive:{{{aggro}}}
 
}}
 
}}
{{!}}-
+
{{!}}-|}}{{#if:{{{tamable|}}}|
{{!}}|}}{{#if:{{{tamable|}}}|
+
{{!}}
 
{{#switch: {{lc:{{{tamable}}}}}
 
{{#switch: {{lc:{{{tamable}}}}}
 
| no = ;[[Taming|Tamable]]:No, this creature is unable to be tamed.
 
| no = ;[[Taming|Tamable]]:No, this creature is unable to be tamed.
Line 34: Line 35:
 
| #default = ;[[Taming|Tamable]]:{{{tamable}}}
 
| #default = ;[[Taming|Tamable]]:{{{tamable}}}
 
}}
 
}}
{{!}}-
+
{{!}}-|}}{{#if:{{{dommable|}}}|
{{!}}|}}{{#if:{{{dommable|}}}|
+
{{!}}
 
{{#switch: {{lc:{{{dommable}}}}}
 
{{#switch: {{lc:{{{dommable}}}}}
 
| no = ;[[Dominate]]:No, this creature is unable to be dominated.
 
| no = ;[[Dominate]]:No, this creature is unable to be dominated.
Line 42: Line 43:
 
| #default = ;[[Dominate]]:{{{dommable}}}
 
| #default = ;[[Dominate]]:{{{dommable}}}
 
}}
 
}}
{{!}}-
+
{{!}}-|}}{{#if:{{{groomable|}}}|
{{!}}|}}{{#if:{{{groomable|}}}|
+
{{!}}
 
{{#switch: {{lc:{{{groomable}}}}}
 
{{#switch: {{lc:{{{groomable}}}}}
 
| no = ;[[Grooming|Groomable]]:No, this creature cannot be groomed.
 
| no = ;[[Grooming|Groomable]]:No, this creature cannot be groomed.
Line 50: Line 51:
 
| #default = ;[[Grooming|Groomable]]:{{{groomable}}}
 
| #default = ;[[Grooming|Groomable]]:{{{groomable}}}
 
}}
 
}}
{{!}}-
+
{{!}}-|}}{{#if:{{{ridable|}}}|
{{!}}|}}{{#if:{{{ridable|}}}|
+
{{!}}
 
{{#switch: {{lc:{{{ridable}}}}}
 
{{#switch: {{lc:{{{ridable}}}}}
 
| no = ;[[Mounts|Ridable]]:No, this creature cannot be ridden.
 
| no = ;[[Mounts|Ridable]]:No, this creature cannot be ridden.
Line 58: Line 59:
 
| #default = ;[[Mounts|Ridable]]:{{{ridable}}}
 
| #default = ;[[Mounts|Ridable]]:{{{ridable}}}
 
}}
 
}}
{{!}}-
+
{{!}}-|}}{{#if:{{{swim|}}}|
{{!}}|}}{{#if:{{{swim|}}}|
+
{{!}}
 
{{#switch: {{lc:{{{swim}}}}}
 
{{#switch: {{lc:{{{swim}}}}}
 
| no = ;[[Swimming|Swimmer]]:No, this creature cannot swim.
 
| no = ;[[Swimming|Swimmer]]:No, this creature cannot swim.
Line 66: Line 67:
 
| #default = ;[[Swimming|Swimmer]]:{{{swim}}}
 
| #default = ;[[Swimming|Swimmer]]:{{{swim}}}
 
}}
 
}}
{{!}}-
+
{{!}}-|}}{{#if:{{{butcheringprod|}}}|
{{!}}|}}{{#if:{{{butcheringprod|}}}|;[[Butchering|Butchering produces]]:{{{butcheringprod}}}
+
{{!}}
{{!}}-
+
;[[Butchering|Butchering produces]]:{{{butcheringprod}}}
{{!}}|}}{{#if:{{{eats|}}}|;Eats:{{{eats}}}
+
{{!}}-|}}{{#if:{{{eats|}}}|
{{!}}-
+
{{!}}
{{!}}|}}{{#if:{{{lair|}}}|;Lair:{{{lair}}}
+
;Eats:{{{eats}}}
{{!}}-
+
{{!}}-|}}{{#if:{{{lair|}}}|
{{!}}|}}{{#if:{{{spawn|}}}|;Spawns on:{{{spawn}}}|}}
+
{{!}}
 +
;Lair:{{{lair}}}
 +
{{!}}-|}}{{#if:{{{spawn|}}}|
 +
{{!}}
 +
;Spawns on:{{{spawn}}}
 +
{{!}}-|}}
 
|}
 
|}
 
[[Category:Bestiary]]
 
[[Category:Bestiary]]

Revision as of 13:47, 20 February 2016


Usage:

{{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]]
|ridable=Yes|No|Unknown
|swim=Yes|No|Unknown
|eats=Grain and seeds
|lair=[[Deer Yard]]
|spawn=[[Grass]], [[Steppe]]
}}