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)
 
(52 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>'''Introduced in:''' [[{{#ifeq:{{{Patch}}} | | ?? | {{{Patch}}} }}]]
<includeonly>{|style="border-collapse:collapse; float:right"
 
|
{|width={{#ifeq:{{{Vertical|}}}|True|300|600}} border=5 cellspacing=0
{|class="character-infobox" style="margin-bottom:-6px; border-bottom:0px"
!colspan=3 height=40 bgcolor=#E0E0E0|<big>{{{Name}}}</big>
!colspan="2" class="worldbgc"|{{{Name}}}
{{#ifeq:{{{Vertical|}}}|True|{{!}}-|}}
!{{#ifeq:{{{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|}}}
|-
|-
|'''Coordination'''
|{{{Coordination|}}}
|-
|'''Quickness'''
|{{{Quickness|}}}
|-
|'''Focus'''
|{{{Focus|}}}
|-
|'''Self'''
|{{{Self|}}}
|-
|'''Health'''
|{{{Health|}}}
|-
|'''Stamina'''
|{{{Stamina|}}}
|-
|'''Mana'''
|{{{Mana|}}}
|-
|}
|-
|
{|class="character-infobox mw-collapsible mw-collapsed" id="mw-customcollapsible-otherstats"
|colspan=2 class="mw-customtoggle-otherstats" style="cursor:pointer; color:#0645AD"|Advanced Stats
|-
|'''Melee Attack'''
|{{{Melee Attack|}}}
|-
|style="width:90px"|'''Melee Defense'''
|{{{Melee Defense|}}}
|-
|'''Missile Attack'''
|{{{Missile Attack|}}}
|-
|'''Missile Defense'''
|{{{Missile Defense|}}}
|-
|'''Magic Attack'''
|{{{Magic Attack|}}}
|-
|'''Magic Defense'''
|{{{Magic Defense|}}}
|}
|}
|}
{{#ifeq: {{PAGENAME}}
<h2 id="Trophies>Trophies</h2>
| Individual Creature Template
{{{Trophies|}}}<!--
|
-->{{#if:{{{nocat|}}}| <!-- add no categories --> | [[Category:Creature Index]] <!--
| {{#ifeq: {{PAGENAME}}
-->{{#if:{{{Class|}}}|[[Category:{{{Class}}}]]}}<!--
    | Creature
-->{{#if:{{{Subclass|}}}|[[Category:{{{Subclass}}}]]}}<!--
    |
-->{{#ifeq:{{lc:{{{Boss|}}}}}|true|[[Category:Boss Creatures]]|}}}}<!--
    | [[Category:Creature]] {{#ifeq:{{{Class|}}}
--><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>
                            |
                            | [[Category:{{{Class}}}]]}}{{#ifeq:{{{Subclass|}}}
                            |
                            | [[Category:{{{Subclass}}}]]
                            }}  
  }}
}}
 
{{PAGENAME}}
 
</includeonly><noinclude>
{{Related|Wiki Templates|Individual Creature Template}}
== Syntax ==
 
<pre style="width:auto; overflow:auto">
{{Creature
|           Patch =
|           Name =
|          Image =
|          Class =
|        Subclass =
|          Level =
|        Strength =
|      Endurance =
|    Coordination =
|      Quickness =
|          Focus =
|            Self =
|          Health =
|        Stamina =
|            Mana =
|  Melee Defense =
|    Melee Attack =
| Missile Defense =
|  Missile Attack =
|  Magic Defense =
|    Magic Attack =
|              XP =
|     Weaknesses =
|         Attacks =
|       Trophies =
}}
</pre>
 
== Usage ==
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.
 
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
|           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.