Template:Creature: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
imported>An Adventurer
(removing top border from advanced stats section)
 
(63 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}}}|300px]]
|-
|-
!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|}}}
|-
|-
|}</includeonly><noinclude>
|'''Coordination'''
{{Related|Wiki Templates|Individual Creature Template}}
|{{{Coordination|}}}
== Syntax ==
|-
 
|'''Quickness'''
<pre style="width:auto; overflow:auto">
|{{{Quickness|}}}
{{Creature
|-
|           Patch =
|'''Focus'''
|           Name =
|{{{Focus|}}}
|           Image =
|-
|           Class =
|'''Self'''
|       Subclass =
|{{{Self|}}}
|           Level =
|-
|       Strength =
|'''Health'''
|       Endurance =
|{{{Health|}}}
|   Coordination =
|-
|       Quickness =
|'''Stamina'''
|           Focus =
|{{{Stamina|}}}
|           Self =
|-
|         Health =
|'''Mana'''
|         Stamina =
|{{{Mana|}}}
|           Mana =
|-
|   Melee Defense =
|}
|   Melee Attack =
|-
| Missile Defense =
|
| Missile Attack =
{|class="character-infobox mw-collapsible mw-collapsed" id="mw-customcollapsible-otherstats"
|   Magic Defense =
|colspan=2 class="mw-customtoggle-otherstats" style="cursor:pointer; color:#0645AD"|Advanced Stats
|   Magic Attack =
|-
|             XP = xp
|'''Melee Attack'''
|     Weaknesses =
|{{{Melee Attack|}}}
|         Attacks =
|-
|       Trophies =  
|style="width:90px"|'''Melee Defense'''
}}
|{{{Melee Defense|}}}
</pre>
|-
 
|'''Missile Attack'''
== Usage ==
|{{{Missile Attack|}}}
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.
|-
 
|'''Missile Defense'''
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.
|{{{Missile Defense|}}}
 
|-
Any stats left blank will automatically show up as ??.
|'''Magic Attack'''
 
|{{{Magic Attack|}}}
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 (e.g., <nowiki>[[Pyreal Mote|Mote]]</nowiki>).
|-
 
|'''Magic Defense'''
For example:
|{{{Magic Defense|}}}
 
|}
<pre style="width:auto; overflow:auto">
|}
{{Creature
<h2 id="Trophies>Trophies</h2>
|           Patch = Ancient Enemies
{{{Trophies|}}}<!--
|           Name = Pyre Minion
-->{{#if:{{{nocat|}}}| <!-- add no categories --> | [[Category:Creature Index]] <!--
|           Image = Pyre Minion Live.jpg
-->{{#if:{{{Class|}}}|[[Category:{{{Class}}}]]}}<!--
|           Class = Skeleton
-->{{#if:{{{Subclass|}}}|[[Category:{{{Subclass}}}]]}}<!--
|       Subclass =
-->{{#ifeq:{{lc:{{{Boss|}}}}}|true|[[Category:Boss Creatures]]|}}}}<!--
|           Level = 200
--><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>
|       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,000xp
|     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,000xp
|      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.