Template:Creature: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk's Bot
No edit summary
imported>An Adventurer
(removing top border from advanced stats section)
 
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{Quest|}}}
<includeonly>{|style="border-collapse:collapse; float:right"
              |
|
              |Introduced in [[{{#ifeq:{{{Patch}}}
{|class="character-infobox" style="margin-bottom:-6px; border-bottom:0px"
                                  |
!colspan="2" class="worldbgc"|{{{Name}}}
                                  | ??
                                  | {{{Patch}}}
                                  }}]].
              |From [[{{{Quest}}}]] introduced in [[{{#ifeq:{{{Patch}}}
                                                          |
                                                          | ??
                                                          | {{{Patch}}}
                                                        }}]].
            }}
 
{|width={{#ifeq:{{lc:{{{Vertical|}}}}}|true|300|600}} border=5 cellspacing=0
!colspan=3 height=40 bgcolor=#E0E0E0|<big>{{{Name}}}</big>
{{#ifeq:{{lc:{{{Vertical|}}}}}|true|{{!}}-|}}
!{{#ifeq:{{lc:{{{Vertical|}}}}} | true | colspan=3 | rowspan=14 }} bgcolor=#E0E0E0| [[Image:{{{Image}}}|300x400px]]
|-
|-
!colspan=2 height=40| [[{{#ifeq:{{{Class|}}}|Misc. Creature Class|{{{Class}}}{{!}}{{{Subclass}}}|{{{Class}}}}}]] || LVL {{{Level}}}
|colspan="2"|{{#ifexist:File:{{{Image}}} | [[File:{{{Image}}}|thumb|center]] | [[File:{{{Image}}}|center|Image Needed]] }}
|-
|-
!width=100 bgcolor=#E0E0E0| Strength
|'''Class'''
!width=100 bgcolor=#E0E0E0| Endurance
|[[{{{Class|}}}]]
!width=100 bgcolor=#E0E0E0| Coord
|-
|-
! {{#ifeq:{{{Strength}}} | | ?? | {{{Strength}}} }}
|'''Level'''
! {{#ifeq:{{{Endurance}}} | | ?? | {{{Endurance}}} }}
|{{{Level|}}}
! {{#ifeq:{{{Coordination}}} | | ?? | {{{Coordination}}} }}
|-
|-
!bgcolor=#E0E0E0| Quick
|colspan=2 style="border-top:solid 1px #e5e5e5"|
!bgcolor=#E0E0E0| Focus
!bgcolor=#E0E0E0| Self
|-
|-
! {{#ifeq:{{{Quickness}}} | | ?? | {{{Quickness}}} }}
|'''XP'''
! {{#ifeq:{{{Focus}}} | | ?? | {{{Focus}}} }}
|{{{XP|}}}
! {{#ifeq:{{{Self}}} | | ?? | {{{Self}}} }}
|-
|-
!bgcolor=#FFC0CB|<font color=red> Health
|'''Luminance'''
!bgcolor=#FFFFE0|<font color=darkgoldenrod> Stamina
|{{{Luminance|}}}
!bgcolor=#8BB0D6|<font color=blue> Mana
|-
|-
!<font color=red> {{#ifeq:{{{Health}}} | | ?? | {{{Health}}} }}
|'''Loot Tier'''
!<font color=darkgoldenrod> {{#ifeq:{{{Stamina}}} | | ?? | {{{Stamina}}} }}
|{{{Loot Tier|}}}
!<font color=blue> {{#ifeq:{{{Mana}}} | | ?? | {{{Mana}}} }}
|-
|-
!bgcolor=#E0E0E0| Melee D/A
|colspan=2 style="border-top:solid 1px #e5e5e5"|
!bgcolor=#E0E0E0| Missile D/A
!bgcolor=#E0E0E0| Magic D/A
|-
|-
! {{#ifeq:{{{Melee Defense}}} | | ?? | {{{Melee Defense}}} }} / {{#ifeq:{{{Melee Attack}}} | | ?? | {{{Melee Attack}}} }}
|style="width:90px"|'''Attacks'''
! {{#ifeq:{{{Missile Defense}}} | | ?? | {{{Missile Defense}}} }} /  {{#ifeq:{{{Missile Attack}}} | | ?? | {{{Missile Attack}}} }}
|{{{Attacks|}}}
! {{#ifeq:{{{Magic Defense}}} | | ?? | {{{Magic Defense}}} }} / {{#ifeq:{{{Magic Attack}}} | | ?? | {{{Magic Attack}}} }}
|-
|-
!bgcolor=#98FB98|<font color=darkgreen> XP:
|'''Weaknesses'''
!colspan=2|<font color=darkgreen> {{#ifeq:{{{XP}}} | | ?? | {{{XP}}}xp }}
|{{{Weaknesses|}}}
|-
|-
!Weaknesses:
|colspan=2 style="border-top:solid 1px #e5e5e5"|
!colspan=2| {{#ifeq:{{{Weaknesses}}} | | ?? | {{{Weaknesses}}} }}
|-
|-
!Common Attacks:
|'''Strength'''
!colspan=2| {{#ifeq:{{{Attacks}}} | | ?? | {{{Attacks}}} }}
|{{{Strength|}}}
|-
|-
!Trophies & Items:
|'''Endurance'''
!colspan=2| {{#ifeq:{{{Trophies}}} | | ?? | {{{Trophies}}} }}
|{{{Endurance|}}}
|-
|-
|}{{#ifeq: {{PAGENAME}}  
|'''Coordination'''
  | Individual Creature Template
|{{{Coordination|}}}
  |  
|-
  | {{#ifeq: {{PAGENAME}}  
|'''Quickness'''
      | Creature
|{{{Quickness|}}}
      |  
|-
      | {{#ifeq:{{lc:{{{Boss|}}}}} | true | [[Category:Boss Creature]] | }}[[Category:Creature]] {{#if: {{{Class|}}}  
|'''Focus'''
                              | [[Category:{{{Class}}}]] {{#ifeq: {{{Subclass| }}}
|{{{Focus|}}}
                                                          | {{{Subclass|u}}}  
|-
                                                          | {{#if:{{{Subclass|}}}
|'''Self'''
                                                              | [[Category:{{{Subclass}}}]]
|{{{Self|}}}
                                                              |  
|-
                                                            }}  
|'''Health'''
                                                          |
|{{{Health|}}}
                                                          }}
|-
                              }}
|'''Stamina'''
    }}
|{{{Stamina|}}}
  }}</includeonly><noinclude>
|-
{{Related|Wiki Templates|Individual Creature Template}}
|'''Mana'''
== Syntax ==
|{{{Mana|}}}
 
|-
<pre style="width:auto; overflow:auto">
|}
{{Creature
|-
|           Quest =
|
|           Patch =
{|class="character-infobox mw-collapsible mw-collapsed" id="mw-customcollapsible-otherstats"
|           Name =
|colspan=2 class="mw-customtoggle-otherstats" style="cursor:pointer; color:#0645AD"|Advanced Stats
|           Image =
|-
|           Class =
|'''Melee Attack'''
|       Subclass =
|{{{Melee Attack|}}}
|           Level =  
|-
|       Strength =
|style="width:90px"|'''Melee Defense'''
|       Endurance =
|{{{Melee Defense|}}}
|   Coordination =
|-
|       Quickness =
|'''Missile Attack'''
|           Focus =
|{{{Missile Attack|}}}
|           Self =
|-
|         Health =
|'''Missile Defense'''
|         Stamina =
|{{{Missile Defense|}}}
|           Mana =
|-
|  Melee Defense =
|'''Magic Attack'''
|    Melee Attack =
|{{{Magic Attack|}}}
| Missile Defense =
|-
| Missile Attack =
|'''Magic Defense'''
|   Magic Defense =
|{{{Magic Defense|}}}
|   Magic Attack =
|}
|             XP =
|}
|     Weaknesses =
<h2 id="Trophies>Trophies</h2>
|         Attacks =
{{{Trophies|}}}<!--
|       Trophies =
-->{{#if:{{{nocat|}}}| <!-- add no categories --> | [[Category:Creature Index]] <!--
}}
-->{{#if:{{{Class|}}}|[[Category:{{{Class}}}]]}}<!--
</pre>
-->{{#if:{{{Subclass|}}}|[[Category:{{{Subclass}}}]]}}<!--
 
-->{{#ifeq:{{lc:{{{Boss|}}}}}|true|[[Category:Boss Creatures]]|}}}}<!--
== Usage ==
--><div class="creaturetooltip tooltip-content" style="display:none">Experience:&nbsp;&nbsp;{{#if:{{{XP|}}}|{{{XP}}}|??}}<br>Luminance:&nbsp;&nbsp;{{#if:{{{Luminance|}}}|{{{Luminance}}}|??}}<br>Loot Tier:&nbsp;&nbsp;{{#if:{{{Loot Tier|}}}|{{{Loot Tier}}}|??}}<br>Trophies:<br>{{#if:{{{Trophies|}}}|{{{Trophies}}}}}</div></includeonly><noinclude>{{Documentation}}[[Category:Wiki Templates]][[Category:Infobox Templates]]</noinclude>
Table for individual creature stats. The default layout is horizontal (stats on left image on right). If at all possible use an in game screen shot that is 300x400 pixels and append "Live" to the name. For example, Pyreal Golem Live.jpg. If using a 300x400 stats panel, use the creature name, e.g. Pyreal Golem.jpg. For a vertical layout (short image 300 pixels wide) add "Vertical = True" at the end of the table template. See [[Individual Creature Template]] for an example of each layout.
 
Normally Quest is left blank, however for creatures that are strongly associated with a particular quest, like boss creatures, you can specify a quest.
 
For [[Misc. Creature Class]], set the subclass to what is actually in the ID panel. Normally subclass can be left out or blank, however for non Misc creatures that have a subclass (like mu-miyah) you can still put it in in case we incorporate this into the table in the future.
 
Any stats left blank will automatically show up as ??.
 
This template is only part of the creature page template, notes are not included due to their variability and being in a distinct section. Note that unlike the rest of the parameters, for Trophies you need to include wiki link brackets (e.g., <nowiki>[[Pyreal Mote]]</nowiki>). The reason for this is to retain flexibility if you need to give a different name than the actual link and the name may include punctuation (e.g., <nowiki>[[Pyreal Mote|Mote]]</nowiki>).
 
For example:
 
<pre style="width:auto; overflow:auto">
{{Creature
|           Quest = Undead Jaw Bone Collector Task
|           Patch = Ancient Enemies
|            Name = Pyre Minion
|          Image = Pyre Minion Live.jpg
|          Class = Skeleton
|        Subclass =
|          Level = 200
|        Strength = 400
|      Endurance = 400
|    Coordination = 300
|      Quickness = 300
|          Focus = 250
|            Self = 250
|          Health = 3000
|        Stamina = 2900
|            Mana = 250
|  Melee Defense = 520
|    Melee Attack = 633
| Missile Defense =
|  Missile Attack = --
|  Magic Defense = 421
|    Magic Attack = --
|              XP = 450,000
|     Weaknesses = Bludgeon
|        Attacks = Bludgeon
|        Trophies = [[Pyre Shroud]], [[Ornate Bone Key]], [[Ancient Mhoire Coin]]
}}
</pre>
 
displays as:
 
{{Creature
|           Patch = Ancient Enemies
|           Name = Pyre Minion
|           Image = Pyre Minion Live.jpg
|           Class = Skeleton
|       Subclass =
|           Level = 200
|       Strength = 400
|       Endurance = 400
|    Coordination = 300
|      Quickness = 300
|          Focus = 250
|            Self = 250
|          Health = 3000
|        Stamina = 2900
|            Mana = 250
|  Melee Defense = 520
|    Melee Attack = 633
| Missile Defense =
|  Missile Attack = --
|  Magic Defense = 421
|    Magic Attack = --
|              XP = 450,000
|      Weaknesses = Bludgeon
|        Attacks = Bludgeon
|        Trophies = [[Pyre Shroud]], [[Ornate Bone Key]], [[Ancient Mhoire Coin]]
}}</noinclude>

Latest revision as of 06:19, 9 June 2018

Template Documentation: |_}}/Doc?action=edit Edit Documentation

Related topics: Wiki Templates, Creature Template

Syntax

{{Creature
 |            Name = 
 |           Image = 
 |           Class = 
 |        Subclass = 
 |           Title = 
 |            Boss = 
 |           Level = 
 |        Strength = 
 |       Endurance = 
 |    Coordination = 
 |       Quickness = 
 |           Focus = 
 |            Self = 
 |          Health = 
 |         Stamina = 
 |            Mana = 
 |   Melee Defense = 
 |    Melee Attack = 
 | Missile Defense = 
 |  Missile Attack = 
 |   Magic Defense = 
 |    Magic Attack = 
 |              XP = 
 |       Luminance = 
 |      Weaknesses = 
 |         Attacks = 
 |        Trophies = 
 |   Wielded Items =
 |     Spells Cast =
}}

Usage

This is a component template that is part of a Page Template. See Creature Template for details on usage and examples.