Template:Creature: Difference between revisions
From Drunkapedia
imported>Tlosk No edit summary |
imported>Tlosk (update of layout, new trophy subtemplate that displays icons, vertical layout no longer an option, subclass now displays inside panel, other parameters unchanged (older usages should display fine)) |
||
Line 1: | Line 1: | ||
<includeonly>{| | <includeonly>{| | ||
|- | |- | ||
| | |||
{| | |||
|align=center width=308 height=412 style="border:1px solid #aaaaaa; background:#f9f9f9; vertical-align:top;"| | |||
{|cellpadding=2 style="background:#f9f9f9; vertical-align:top;" | |||
|- | |- | ||
|align=center colspan=4 height=26|'''<big>{{{Name|}}}</big>''' | |||
|- | |- | ||
|colspan=4| | |||
! {{#ifeq:{{{ | ---- | ||
|- | |||
|colspan=4| | |||
{|style="width:100%; background:#f9f9f9;" | |||
|align=left width=32| {{#ifexist:File:{{strip|{{{Class|}}}}} Icon.png|[[File:{{strip|{{{Class|}}}}} Icon.png|link={{strip|{{{Class|}}}}}]]|}} | |||
|align=center width=200| {{#ifeq:{{{Class|}}}|Misc. Creature Class|'''[[{{{Class}}}{{!}}{{{Subclass}}}]]'''|'''[[{{{Class}}}]]'''{{#ifeq:{{{Subclass|}}}|||<br>[[{{{Subclass|}}}|({{{Subclass|}}})]]}}}} | |||
|align=center| '''<small>Level</small>'''<br><span style="font-size: x-large">{{#ifeq:{{{Level|}}}||??|{{{Level}}}}}</span> | |||
|} | |||
|- | |- | ||
|colspan=4| | |||
---- | |||
|- | |- | ||
! | |width=5| | ||
!align=left| Strength | |||
|align=right| '''{{#ifeq:{{{Strength|}}} | | ?? | {{{Strength}}} }}''' | |||
|width=5| | |||
|- | |- | ||
|width=5| | |||
! | !align=left| Endurance | ||
|align=right| '''{{#ifeq:{{{Endurance|}}} | | ?? | {{{Endurance}}} }}''' | |||
|width=5| | |||
|- | |- | ||
! | |width=5| | ||
!align=left| Coordination | |||
|align=right| '''{{#ifeq:{{{Coordination|}}} | | ?? | {{{Coordination}}} }}''' | |||
|width=5| | |||
|- | |- | ||
! | |width=5| | ||
!align=left| Quickness | |||
|align=right| '''{{#ifeq:{{{Quickness|}}} | | ?? | {{{Quickness}}} }}''' | |||
|width=5| | |||
|- | |- | ||
|width=5| | |||
! | !align=left| Focus | ||
|align=right| '''{{#ifeq:{{{Focus|}}} | | ?? | {{{Focus}}} }}''' | |||
|width=5| | |||
|- | |- | ||
|width=5| | |||
! | !align=left| Self | ||
|align=right| '''{{#ifeq:{{{Self|}}} | | ?? | {{{Self}}} }}''' | |||
|width=5| | |||
|- | |- | ||
! | |width=5| | ||
!align=left| <font color=darkred>Health | |||
|align=right| <font color=darkred>'''{{#ifeq:{{{Health|}}} | | ?? | {{{Health}}} }}''' | |||
|width=5| | |||
|- | |- | ||
! | |width=5| | ||
!align=left| <font color=darkgoldenrod>Stamina | |||
|align=right| <font color=darkgoldenrod>'''{{#ifeq:{{{Stamina|}}} | | ?? | {{{Stamina}}} }}''' | |||
|width=5| | |||
|- | |- | ||
! | |width=5| | ||
!align=left| <font color=darkblue>Mana | |||
|align=right| <font color=darkblue>'''{{#ifeq:{{{Mana|}}} | | ?? | {{{Mana}}} }}''' | |||
|width=5| | |||
|- | |- | ||
|}{{#ifeq:{{lc:{{{Boss|}}}}} | true | [[Category:Boss Creature]] | }}[[Category:Creature]] {{#if: {{{Class|}}} | [[Category:{{{Class}}}]] {{#ifeq: {{{Subclass| }}} | {{{Subclass|u}}} | {{#if:{{{Subclass|}}} | [[Category:{{{Subclass}}}]] | }} | }} }}</includeonly><noinclude> | |colspan=4| | ||
---- | |||
|- | |||
|width=5| | |||
!align=left| <font color=darkgreen>XP | |||
|align=right| <font color=darkgreen>'''{{#ifeq:{{{XP|}}} | | ?? | {{{XP}}}xp }}''' | |||
|width=5| | |||
|- | |||
|} | |||
|} | |||
| | |||
{|style="border:1px solid #aaaaaa; background:#f9f9f9;" | |||
{|cellpadding=2 | |||
!align=center width=308 height=412 style="border:1px solid #aaaaaa; background:#f9f9f9;"| [[File:{{{Image|}}}|300x400px]] | |||
|} | |||
|- | |||
|align=center colspan=2| | |||
{|cellpadding=2 style="width:634px; border:1px solid #aaaaaa; background:#f9f9f9; vertical-align:top;" | |||
|- | |||
|bgcolor=#d0d0d0 align=center valign=top colspan=6| '''[[Trophies]]''' | |||
|- | |||
|valign=top colspan=6 align=center| '''{{#ifeq:{{{Trophies|}}}||??|{{{Trophies}}}}}''' | |||
|- | |||
|bgcolor=#d0d0d0 align=center valign=top colspan=3 width=310| '''Common Attacks''' | |||
|bgcolor=#d0d0d0 align=center valign=top colspan=3 width=310| '''Weaknessess''' | |||
|- | |||
|valign=top colspan=3 align=center| {{#ifeq:{{{Attacks|}}}||??|{{{Attacks}}}}} | |||
|valign=top colspan=3 align=center| {{#ifeq:{{{Weaknesses|}}}||??|{{{Weaknesses}}}}} | |||
|- | |||
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Melee A''' | |||
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Missile A''' | |||
|bgcolor=#d0d0d0 align=center valign=top| '''Magic A''' | |||
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Melee D''' | |||
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Missile D''' | |||
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Magic D''' | |||
|- | |||
|valign=top align=center| {{#ifeq:{{{Melee Attack}}}||??|{{{Melee Attack}}}}} | |||
|valign=top align=center| {{#ifeq:{{{Missile Attack}}}||??|{{{Missile Attack}}}}} | |||
|valign=top align=center| {{#ifeq:{{{Magic Attack}}}||??|{{{Magic Attack}}}}} | |||
|valign=top align=center| {{#ifeq:{{{Melee Defense}}}||??|{{{Melee Defense}}}}} | |||
|valign=top align=center| {{#ifeq:{{{Missile Defense}}}||??|{{{Missile Defense}}}}} | |||
|valign=top align=center| {{#ifeq:{{{Magic Defense}}}||??|{{{Magic Defense}}}}} | |||
|- | |||
|} | |||
|} | |||
{{#ifeq:{{lc:{{{Boss|}}}}} | true | [[Category:Boss Creature]] | }}[[Category:Creature]] {{#if: {{{Class|}}} | [[Category:{{{Class}}}]] {{#ifeq: {{{Subclass| }}} | {{{Subclass|u}}} | {{#if:{{{Subclass|}}} | [[Category:{{{Subclass}}}]] | }} | }} }}</includeonly><noinclude> | |||
{{Related|Wiki Templates|Creature Template}} | {{Related|Wiki Templates|Creature Template}} | ||
== Syntax == | == Syntax == | ||
Line 80: | Line 141: | ||
| Attacks = | | Attacks = | ||
| Trophies = | | Trophies = | ||
}} | }} | ||
</pre> | </pre> |
Revision as of 13:50, 29 August 2009
Related topics: Wiki Templates, Creature Template
Syntax
{{Creature | Name = | Image = | Class = | Subclass = | Boss = | 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 = }}
Usage
This is a component template that is part of a Page Template. See Creature Template for details on usage and examples.