Template:Creature: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
No edit summary
imported>An Adventurer
(removing top border from advanced stats section)
 
(72 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>'''Introduced in:''' [[{{{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| [[{{{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
|-
|-
! {{{Strength}}}
|'''Level'''
! {{{Endurance}}}
|{{{Level|}}}
! {{{Coordination}}}
|-
|-
!bgcolor=#E0E0E0| Quick
|colspan=2 style="border-top:solid 1px #e5e5e5"|
!bgcolor=#E0E0E0| Focus
!bgcolor=#E0E0E0| Self
|-
|-
! {{{Quickness}}}
|'''XP'''
! {{{Focus}}}
|{{{XP|}}}
! {{{Self}}}
|-
|-
!bgcolor=#FFC0CB|<font color=red> Health
|'''Luminance'''
!bgcolor=#FFFFE0|<font color=darkgoldenrod> Stamina
|{{{Luminance|}}}
!bgcolor=#8BB0D6|<font color=blue> Mana
|-
|-
!<font color=red> {{{Health}}}
|'''Loot Tier'''
!<font color=darkgoldenrod> {{{Stamina}}}
|{{{Loot Tier|}}}
!<font color=blue> {{{Mana}}}
|-
|-
!bgcolor=#E0E0E0| Melee D/A
|colspan=2 style="border-top:solid 1px #e5e5e5"|
!bgcolor=#E0E0E0| Missile D/A
!bgcolor=#E0E0E0| Magic D/A
|-
|-
! {{{Melee Defense}}} / {{{Melee Attack}}}
|style="width:90px"|'''Attacks'''
!  {{{Missile Defense}}} /  {{{Missile Attack}}}
|{{{Attacks|}}}
! {{{Magic Defense}}} / {{{Magic Attack}}}
|-
|-
!bgcolor=#98FB98|<font color=darkgreen> XP:
|'''Weaknesses'''
!colspan=2|<font color=darkgreen> {{{XP}}}
|{{{Weaknesses|}}}
|-
|-
!Weaknesses:
|colspan=2 style="border-top:solid 1px #e5e5e5"|
!colspan=2| {{{Weaknesses}}}
|-
|-
!Common Attacks:
|'''Strength'''
!colspan=2| {{{Attacks}}}
|{{{Strength|}}}
|-
|-
!Trophies & Items:
|'''Endurance'''
!colspan=2| {{{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'''
|           Level =
|{{{Self|}}}
|       Strength =
|-
|       Endurance =
|'''Health'''
|   Coordination =
|{{{Health|}}}
|       Quickness =
|-
|           Focus =
|'''Stamina'''
|           Self =
|{{{Stamina|}}}
|         Health =
|-
|         Stamina =
|'''Mana'''
|           Mana =
|{{{Mana|}}}
|   Melee Defense = ??
|-
|   Melee Attack = ??
|}
| Missile Defense = ??
|-
| Missile Attack = ??
|
|   Magic Defense = ??
{|class="character-infobox mw-collapsible mw-collapsed" id="mw-customcollapsible-otherstats"
|   Magic Attack = ??
|colspan=2 class="mw-customtoggle-otherstats" style="cursor:pointer; color:#0645AD"|Advanced Stats
|             XP = xp
|-
|     Weaknesses =  
|'''Melee Attack'''
|        Attacks =  
|{{{Melee Attack|}}}
|       Trophies =
|-
}}
|style="width:90px"|'''Melee Defense'''
</pre>
|{{{Melee Defense|}}}
 
|-
== Usage ==
|'''Missile Attack'''
Table for individual creature stats. The default layout is horizontal (stats on left image on right). To do a vertical layout (image above stats) add another parameter "| Vertical = True". See [[Individual Creature Template]] for an example of each layout.
|{{{Missile 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>).
|'''Missile Defense'''
 
|{{{Missile Defense|}}}
For example:
|-
 
|'''Magic Attack'''
<pre style="width:auto; overflow:auto">
|{{{Magic Attack|}}}
{{Creature
|-
|           Patch = Ancient Enemies
|'''Magic Defense'''
|           Name = Pyre Minion
|{{{Magic Defense|}}}
|           Image = Pyre Minion Live.jpg
|}
|           Class = Skeleton
|}
|           Level = 200
<h2 id="Trophies>Trophies</h2>
|       Strength = 400
{{{Trophies|}}}<!--
|       Endurance = 400
-->{{#if:{{{nocat|}}}| <!-- add no categories --> | [[Category:Creature Index]] <!--
|   Coordination = 300
-->{{#if:{{{Class|}}}|[[Category:{{{Class}}}]]}}<!--
|       Quickness = 300
-->{{#if:{{{Subclass|}}}|[[Category:{{{Subclass}}}]]}}<!--
|           Focus = 250
-->{{#ifeq:{{lc:{{{Boss|}}}}}|true|[[Category:Boss Creatures]]|}}}}<!--
|           Self = 250
--><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>
|         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
|          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.