Template:Critter at a Glance: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added Poachable to the template)
(Updated category inclusion, fixed nested templates, added incomplete tagging, added multiple location support, updated documentation)
Line 1: Line 1:
<includeonly>{| cellpadding="2" style="float:left; width:200px; background:#e3e3e3; margin-right:1.5em; margin-bottom:1em; border-spacing:1px;"
{| cellpadding="2" style="float:left; width:200px; background:#e3e3e3; margin-right:1.5em; margin-bottom:1em; border-spacing:1px;"
{{#if:{{IfAND|{{IfAND|{{{Skinnable|}}}|{{{Has Coins|}}}|{{{Has Gems|}}}|{{{Has Boxes|}}}|{{{Evil|}}}|{{{Corporeal|}}}|{{{BackStabbable|}}}|{{{Poachable|}}}|{{{Casts Spells|}}}}}|{{IfAND|{{{Attack Range|}}}|{{{Stealthy|}}}|{{{Special|}}}|{{{MapList|}}}}}}}||
{{!}}- bgcolor="#ffee88"
{{!}}colspan="2" style="border:2px solid #000000;" {{!}} '''Warning:''' Creature information missing!<includeonly>[[Category:Articles That Are Incomplete]]</includeonly>}}
|-
|-
! colspan="2" | '''{{{Critter Name}}}'''
! colspan="2" | '''{{{Critter Name}}}'''
Line 30: Line 33:
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| valign="top" colspan="2" align="left" | Located:
| valign="top" colspan="2" align="left" | Located:
{{#if:{{{MapList|}}}|{{{MapList}}}|''Unknown''}}{{#if:{{{MapList2|}}}|
{{{MapList}}}
{{{MapList2}}}}}{{#if:{{{MapList3|}}}|
|}
{{{MapList3}}}}}
|}<includeonly>
[[Category:Bestiary]]
[[Category:Bestiary]]
{{#if: {{{Skinnable|}}} | [[Category:{{BlankYesNotNo_{{{Skinnable}}}}} Skinnable]] | }}
{{#switch:{{lc:{{{Skinnable}}}}}|y|yes=[[Category:Skinnable Creatures]]|n|no=[[Category:Not Skinnable Creatures]|]}}
{{#if: {{{Has Coins|}}} | [[Category:{{DoesYesDoesNotNo_{{{Has Coins}}}}} Have Coins]] | }}
{{#switch:{{lc:{{{Has Coins}}}}}|y|yes=[[Category:Creature With Coins]]|n|no=[[Category:Creatures Without Coins]]|}}
{{#if: {{{Has Gems|}}} | [[Category:{{DoesYesDoesNotNo_{{{Has Gems}}}}} Have Gems]] | }}
{{#switch:{{lc:{{{Has Gems}}}}}|y|yes=[[Category:Creatures With Gems]]|n|no=[[Category:Creatures Without Gems]]|}}
{{#if: {{{Has Boxes|}}} | [[Category:{{DoesYesDoesNotNo_{{{Has Boxes}}}}} Have Boxes]] | }}
{{#switch:{{lc:{{{Has Boxes}}}}}|y|yes=[[Category:Creatures With Boxes]]|n|no=[[Category:Creatures Without Boxes]]|}}
{{#if: {{{Corporeal|}}} | [[Category:{{BlankYesNotNo_{{{Corporeal}}}}} Corporeal {{BlankYesNotNo_{{{Evil}}}}} Evil]] | }}
{{#switch:{{lc:{{{Corporeal}}}}}|y|yes=[[Category:Corporeal Creatures]]{{#switch:{{lc:{{{Evil}}}}}|y|yes=[[Category:Evil Corporeal Creatures]]|n|no=[[Category:Non-Evil Corporeal Creatures]]|}}|n|no=[[Category:Non-Corporeal Creatures]]{{#switch:{{lc:{{{Evil}}}}}|y|yes=[[Category:Evil Non-Corporeal Creatures]]|n|no=[[Category:Non-Evil Non-Corporeal Creatures]]|}}|}}
{{#switch:{{lc:{{{Evil}}}}}|y|yes=[[Category:Evil Creatures]]|n|no=[[Category:Non-Evil Creatures]|]}}
{{#if: {{{BackStabbable|}}} | [[Category:{{BlankYesNotNo_{{{BackStabbable}}}}} Back-Stabbable]] | }}
{{#switch:{{lc:{{{BackStabbable}}}}}|y|yes=[[Category:BackStabbable Creatures]]|n|no=[[Category:Non-BackStabbable Creatures]|]}}
{{#if: {{{Poachable|}}} | [[Category:{{BlankYesNotNo_{{{Poachable}}}}} Poachable]] | }}
{{#switch:{{lc:{{{Poachable}}}}}|y|yes=[[Category:Poachable Creatures]]|n|no=[[Category:Non-Poachable Creatures]|]}}
{{#if: {{{Casts Spells|}}} | [[Category:{{DoesYesDoesNotNo_{{{Casts Spells}}}}} Cast Spells]] | }}
{{#if: {{{Attack Range|}}} | [[Category:Attacks From {{{Attack Range}}}]] | }}
{{#switch:{{lc:{{{Casts Spells}}}}}|y|yes=[[Category:Spellcasting Creatures]]|n|no=[[Category:Non-Spellcasting Creatures]|]}}
{{#if: {{{Special|}}} | [[Category:{{BlankYesNotNo_{{{Special}}}}} Special Attacks]] | }}
{{#if: {{{Attack Range|}}} | [[Category:{{{Attack Range}}}-Attacking Creatures]] | }}
{{#switch:{{lc:{{{Special}}}}}|y|yes=[[Category:Creatures With Special Attacks]]|n|no=[[Category:Creatures Without Special Attacks]|]}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
==Usage==
==Usage Documentation:==
Leave unknown fields '''BLANK'''!

{| border="1" cellpadding="3"
!Variable!!Supported Values!!Usage
|-
|Critter Name
|-
|Image File|| ||filename on the elanthipedia server
|-
|Skinnable||yes/y/no/n||Can the creature be skinned?
|-
|Has Coins||yes/y/no/n||Does the creature directly drop coins?
|-
|Has Gems||yes/y/no/n||Does the creature directly drop coins?
|-
|Has Boxes||yes/y/no/n||Does the creature drop boxes?
|-
|Evil||yes/y/no/n||Is the creature evil or cursed, such as the type affected by blessed equipment?
|-
|Corporeal||yes/y/no/n||Must blessed weapons be used to strike the creature?
|-
|BackStabbable||yes/y/no/n||Can the creature be backstabbed?
|-
|Poachable||yes/y/no/n||Can the creature be poached?
|-
|Casts Spells||yes/y/no/n||Does the creature cast spells?
|-
|Attack Range||All/Melee/Pole/Ranged/(Ranged/Melee)||What range can the creature attack from?
|-
|Stealthy||yes/y/no/n||Does the creature use stealth on a regular basis?
|-
|Special||yes/y/no/n||Does the creature have a special non-spell attack, including but not limited to poison or disease? Please give details in the main entry if so.
|-
|MapList#|| <nowiki>* [[Ranik map link|location name]]</nowiki>||List the locations the creature can be found.
|}


<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<pre>
<pre>
{{Critter at a Glance |
{{Critter at a Glance |
Line 63: Line 110:
Stealthy = |
Stealthy = |
Special = |
Special = |
MapList = |<!-- Link to Ranik Maps here-->
MapList = |
MapList2 = |
MapList3 = |
}}
}}
</pre>
</pre>

Most variables are Yes/No.<br/>
Leave unknown fields '''BLANK'''!
[[Category:Critter Templates]]</noinclude>
[[Category:Critter Templates]]</noinclude>

Revision as of 20:07, 3 June 2008

Warning: Creature information missing!
{{{Critter Name}}}
Unknown creature.jpg
Skinnable Unknown
Has Coins Unknown
Has Gems Unknown
Has Boxes Unknown
Evil / Undead Unknown
Corporeal Unknown
BackStabbable Unknown
Poachable Unknown
Casts Spells Unknown
Attack Range Unknown
Stealthy Unknown
Special Attacks Unknown
Located:

Unknown

Usage Documentation:

Leave unknown fields BLANK!

Variable Supported Values Usage
Critter Name
Image File filename on the elanthipedia server
Skinnable yes/y/no/n Can the creature be skinned?
Has Coins yes/y/no/n Does the creature directly drop coins?
Has Gems yes/y/no/n Does the creature directly drop coins?
Has Boxes yes/y/no/n Does the creature drop boxes?
Evil yes/y/no/n Is the creature evil or cursed, such as the type affected by blessed equipment?
Corporeal yes/y/no/n Must blessed weapons be used to strike the creature?
BackStabbable yes/y/no/n Can the creature be backstabbed?
Poachable yes/y/no/n Can the creature be poached?
Casts Spells yes/y/no/n Does the creature cast spells?
Attack Range All/Melee/Pole/Ranged/(Ranged/Melee) What range can the creature attack from?
Stealthy yes/y/no/n Does the creature use stealth on a regular basis?
Special yes/y/no/n Does the creature have a special non-spell attack, including but not limited to poison or disease? Please give details in the main entry if so.
MapList# * [[Ranik map link|location name]] List the locations the creature can be found.







{{Critter at a Glance | 
      Critter Name    = |
      Image File      = |
      Skinnable       = |
      Has Coins       = |
      Has Gems        = | 
      Has Boxes       = |
      Evil            = |
      Corporeal       = |
      BackStabbable   = |
      Poachable       = |
      Casts Spells    = |
      Attack Range    = | 
      Stealthy        = |
      Special         = |
      MapList         = |
      MapList2        = |
      MapList3        = |
}}