Difference between revisions of "Template:Creature"

From Wurmpedia
Jump to navigation Jump to search
m (Fix for creature template.)
(Adding CSS)
 
(19 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 10: Line 11:
 
     }}
 
     }}
 
}}
 
}}
 +
{{#ifeq:{{lc:{{{unique|}}}}}|yes|
 +
{{!}}-
 +
! class="creature-unique-row" {{!}} [[Unique]]
 +
{{!}}-
 +
{{!}}|}}
 
|-
 
|-
! style="background-color:#4B3E30; color:#FFFFFF;" | Information
+
! class="infobox-header-row" | Information
 
|-
 
|-
 
|
 
|
{{#if:{{{aggro|}}}|;Aggressive:
+
{{#if:{{{aggro|}}}|
| {{#switch: {{lc:{{{aggro}}}}}
+
{{#switch: {{lc:{{{aggro}}}}}
| no = No, this creature will not unprovoked.
+
| no = ;Aggressive:No, this creature will not attack unprovoked.
| yes = Yes, this creature will attack unprovoked.
+
| yes = ;Aggressive:Yes, this creature will attack unprovoked.
| reduced = Yes, this creature will occasionally attack unprovoked.
+
| reduced = ;Aggressive:Yes, this creature will occasionally attack unprovoked.
| #default = {{{aggro}}}
+
| #default = ;Aggressive:{{{aggro}}}
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{tamable|}}}|
{{#if:{{{tamable|}}}|;[[Taming|Tamable]]:
+
{{#switch: {{lc:{{{tamable}}}}}
| {{#switch: {{lc:{{{tamable}}}}}
+
| no = ;[[Taming|Tamable]]:No, this creature is unable to be tamed.
| no = No, this creature is unable to be tamed.
+
| yes = ;[[Taming|Tamable]]:Yes, you may tame this creature.
| yes = Yes, you may tame this creature.
+
| unknown = ;[[Taming|Tamable]]:The ability to tame this creature is not known.
| unknown = The ability to tame this creature is not known.
+
| #default = ;[[Taming|Tamable]]:{{{tamable}}}
| #default = {{{tamable}}}
 
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{dommable|}}}|
{{#if:{{{dommable|}}}|;[[Dominate]]:
+
{{#switch: {{lc:{{{dommable}}}}}
| {{#switch: {{lc:{{{dommable}}}}}
+
| no = ;[[Dominate]]:No, this creature is unable to be dominated.
| no = No, this creature is unable to be dominated.
+
| yes = ;[[Dominate]]:Yes, you may dominate this creature.
| yes = Yes, you may dominate this creature.
+
| unknown = ;[[Dominate]]:The ability to dominate this creature is not known.
| unknown = The ability to dominate this creature is not known.
+
| #default = ;[[Dominate]]:{{{dommable}}}
| #default = {{{dommable}}}
 
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{groomable|}}}|
{{#if:{{{groomable|}}}|;[[Grooming|Groomable]]:
+
{{#switch: {{lc:{{{groomable}}}}}
| {{#switch: {{lc:{{{groomable}}}}}
+
| no = ;[[Grooming|Groomable]]:No, this creature cannot be groomed.
| no = No, this creature cannot
+
| yes = ;[[Grooming|Groomable]]:Yes, you may groom this creature.
| yes = Yes, you may dominate this creature.
+
| unknown = ;[[Grooming|Groomable]]:The ability to groom this creature is not known.
| unknown = The ability to dominate this creature is not known.
+
| #default = ;[[Grooming|Groomable]]:{{{groomable}}}
| #default = {{{groomable}}}
 
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{ridable|}}}|
{{#if:{{{ridable|}}}|;[[Mounts|Ridable]]:
+
{{#switch: {{lc:{{{ridable}}}}}
| {{#switch: {{lc:{{{ridable}}}}}
+
| no = ;[[Mounts|Ridable]]:No, this creature cannot be ridden.
| no = No, this creature cannot be ridden.
+
| yes = ;[[Mounts|Ridable]]:Yes, you may ride this creature.
| yes = Yes, you may ride this creature.
+
| unknown = ;[[Mounts|Ridable]]:The ability to ride this creature is unknown.
| unknown = The ability to ride this creature is unknown.
+
| #default = ;[[Mounts|Ridable]]:{{{ridable}}}
| #default = {{{ridable}}}
 
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{swim|}}}|
{{#if:{{{swim|}}}|;[[Swimming|Swimmer]]:
+
{{#switch: {{lc:{{{swim}}}}}
| {{#switch: {{lc:{{{swim}}}}}
+
| no = ;[[Swimming|Swimmer]]:No, this creature cannot swim.
| no = No, this creature cannot swim.
+
| yes = ;[[Swimming|Swimmer]]:Yes, this creature can swim.
| yes = Yes, this creature can swim.
+
| unknown = ;[[Swimming|Swimmer]]:It is unknown if this creature can swim.
| unknown = It is unknown if this creature can swim.
+
| #default = ;[[Swimming|Swimmer]]:{{{swim}}}
| #default = {{{swim}}}
 
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{butcheringprod|}}}|;[[Butchering|Butchering produces]]:{{{butcheringprod}}}
{{#if:{{butcheringprod|}}|;[[Butchering]] products: {{{butcheringprod}}}
 
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{meattype|}}}|;Meat type:{{{meattype}}}
{{#if:{{eats|}}|;Eats: {{{eats}}}
 
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{eats|}}}|;Diet:{{{eats}}}
{{#if:{{lair|}}|;Lair: {{{lair}}}
 
 
{{!}}-
 
{{!}}-
{{!}}|}}
+
{{!}}|}}{{#if:{{{lair|}}}|;Lair:{{{lair}}}
{{#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
 
|image=deer.jpg    *** defaults to {{PAGENAME}}.jpg or {{PAGENAME}}.png ***
 
|image=deer.jpg    *** defaults to {{PAGENAME}}.jpg or {{PAGENAME}}.png ***
 +
|unique=yes (leave out for non-uniques)
 
|aggro=Yes|No|Reduced
 
|aggro=Yes|No|Reduced
 
|tamable=Yes|No|Unknown
 
|tamable=Yes|No|Unknown
Line 95: 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 104: 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]]
}}