Difference between revisions of "Template:Creature"
Jump to navigation
Jump to search
m (Fix for table rows) |
Ostentatio (talk | contribs) (Adding CSS) |
||
(9 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: | + | {| 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 12: | Line 13: | ||
{{#ifeq:{{lc:{{{unique|}}}}}|yes| | {{#ifeq:{{lc:{{{unique|}}}}}|yes| | ||
{{!}}- | {{!}}- | ||
− | ! | + | ! class="creature-unique-row" {{!}} [[Unique]] |
{{!}}- | {{!}}- | ||
{{!}}|}} | {{!}}|}} | ||
|- | |- | ||
− | ! | + | ! 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. | ||
| #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 35: | 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 43: | 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 51: | 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 59: | 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 67: | Line 67: | ||
| #default = ;[[Swimming|Swimmer]]:{{{swim}}} | | #default = ;[[Swimming|Swimmer]]:{{{swim}}} | ||
}} | }} | ||
− | {{!}}-|}}{{#if:{{{butcheringprod|}}}| | + | {{!}}- |
− | + | {{!}}|}}{{#if:{{{butcheringprod|}}}|;[[Butchering|Butchering produces]]:{{{butcheringprod}}} | |
− | ;[[Butchering|Butchering produces]]:{{{butcheringprod}}} | + | {{!}}- |
− | {{!}}-|}}{{#if:{{{ | + | {{!}}|}}{{#if:{{{meattype|}}}|;Meat type:{{{meattype}}} |
− | {{!}} | + | {{!}}- |
− | ; | + | {{!}}|}}{{#if:{{{eats|}}}|;Diet:{{{eats}}} |
− | {{!}}-|}}{{#if:{{{lair|}}}| | + | {{!}}- |
− | + | {{!}}|}}{{#if:{{{lair|}}}|;Lair:{{{lair}}} | |
− | ;Lair:{{{lair}}} | + | {{!}}- |
− | {{!}}-|}}{{#if:{{{spawn|}}}| | + | {{!}}|}}{{#if:{{{spawn|}}}|;Spawns on:{{{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 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]] | ||
− | |||
</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]] }}