Template:Sandbox: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Immortalbob
No edit summary
imported>Immortalbob
m (Reverted edits by Immortalbob (talk) to last revision by An Adventurer)
Line 1: Line 1:
<includeonly>[[Category:Weapon]]{{#switch:{{lc:{{{Weapon Type|}}}}}
<includeonly>{|
| axe = [[Category:Axe]]
|-
| dagger = [[Category:Dagger]]
| mace = [[Category:Mace]]
| spear = [[Category:Spear]]
| staff = [[Category:Staff]]
| sword = [[Category:Sword]]
| two handed = [[Category:Two Handed Weapon]]
| thw = [[Category:Two Handed Weapon]]
| two handed weapon = [[Category:Two Handed Weapon]]
| two handed weapons = [[Category:Two Handed Weapon]]
| two handed combat = [[Category:Two Handed Weapon]]
| ua = [[Category:UA Weapon]]
| unarmed = [[Category:UA Weapon]]
| unarmed combat = [[Category:UA Weapon]]
| unarmed weapon = [[Category:UA Weapon]]
}}{{#switch:{{lc:{{{Weapon Type|}}}}}
| bow = [[Category:Bow]]
| crossbow = [[Category:Crossbow]]
| tw = [[Category:Thrown Weapon]]
| thrown weapons = [[Category:Thrown Weapon]]
| thrown weapon = [[Category:Thrown Weapon]]
}}
{{#switch:{{lc:{{{Weapon Skill|}}}}}
| heavy = [[Category:Heavy Combat]]
| light = [[Category:Light Combat]]
| finesse = [[Category:Finesse Combat]]
}}
{|border=0 cellpadding=0 cellspacing=3 style=width:100%
|-valign=top
|
|
{|border=1 cellspacing=0 cellpadding=5 width=300 style=background:#F0F0F0
{|
!colspan=2|{{{Name|Name}}}
|align=center width=308 height=412 style="border:1px solid #aaaaaa; background:#f9f9f9; vertical-align:top;"|
{|cellpadding=1 style="background:#f9f9f9; vertical-align:top;"
|-
|align=center colspan=4 height=26|'''<big>{{{Name|}}}</big>'''
|-
|colspan=4|
----
|-
|colspan=4|
{|style="width:100%; background:#f9f9f9;"
|align=left width=32| {{#ifeq:{{{Class|}}}|Misc. Creature Class|{{#ifexist:File:{{strip|{{{Subclass|}}}}} Icon.png|[[File:{{strip|{{{Subclass|}}}}} Icon.png|link={{strip|{{{Subclass|}}}}}]]|[[File:Misc. Creature Class Icon.png|link={{strip|{{{Subclass|}}}}}]]}}|{{#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:{{{Title|}}}|||<br>'''{{{Title|}}}'''}}{{#ifeq:{{{Subclass|}}}|||<br>[[:Category:{{{Subclass|}}}|({{{Subclass|}}})]]}}
|align=center| '''<small>Level</small>'''<br><span style="font-size: x-large">{{#ifeq:{{{Level|}}}||??|{{{Level}}}}}</span>
|}
|-
|colspan=4|
----
|-
|width=1|
!align=left| Strength
|align=right| '''{{#ifeq:{{{Strength|}}} | | ?? | {{{Strength}}} }}'''
|width=1|
|-
|width=1|
!align=left| Endurance
|align=right| '''{{#ifeq:{{{Endurance|}}} | | ?? | {{{Endurance}}} }}'''
|width=1|
|-
|width=1|
!align=left| Coordination
|align=right| '''{{#ifeq:{{{Coordination|}}} | | ?? | {{{Coordination}}} }}'''
|width=1|
|-
|width=1|
!align=left| Quickness
|align=right| '''{{#ifeq:{{{Quickness|}}} | | ?? | {{{Quickness}}} }}'''
|width=1|
|-
|width=1|
!align=left| Focus
|align=right| '''{{#ifeq:{{{Focus|}}} | | ?? | {{{Focus}}} }}'''
|width=1|
|-
|width=1|
!align=left| Self
|align=right| '''{{#ifeq:{{{Self|}}} | | ?? | {{{Self}}} }}'''
|width=1|
|-
|width=1|
!align=left| <font color=darkred>Health
|align=right| <font color=darkred>'''{{#ifeq:{{{Health|}}} | | ?? | {{{Health}}} }}'''
|width=1|
|-
|width=1|
!align=left| <font color=darkgoldenrod>Stamina
|align=right| <font color=darkgoldenrod>'''{{#ifeq:{{{Stamina|}}} | | ?? | {{{Stamina}}} }}'''
|width=1|
|-
|width=1|
!align=left| <font color=darkblue>Mana
|align=right| <font color=darkblue>'''{{#ifeq:{{{Mana|}}} | | ?? | {{{Mana}}} }}'''
|width=1|
|-
|colspan=4|
----
|-
|-
|align=center| Value: {{{Value|??}}}<br>{{#ifeq:{{lc:{{{Burden|}}}}}|unknown|Unknown Burden|{{{Burden|??}}} Burden Units}}
|width=1|
|width=40 align=center| [[Image:{{{Icon Image|Icon.png}}}]]
!align=left| <font color=darkgreen>XP
|align=right| <font color=darkgreen>'''{{#ifeq:{{{XP|}}} | | ?? | {{{XP}}}xp }}'''
|width=1|
|-
|-
|colspan=2|  
|width=1|
{{#ifeq:{{{Description|}}}|||{{{Description|}}}<br><br>}}{{#ifeq:{{{Special Properties|}}}|||[[Special Properties]]: {{{Special Properties|}}}<br><br>}}{{#ifeq:{{{Damage|}}}|||Damage: {{{Damage|?? - ??}}}{{#ifeq:{{{Buffed Damage|}}}|||<b><font color=green> ({{{Buffed Damage|}}})</font></b>}}, {{{Element|??}}}}}{{#ifeq:{{{Damage|}}}|||<br>}}{{#ifeq:{{{Speed|}}}|||Speed: {{{Speed|??}}}}}{{#ifeq:{{{Buffed Speed|}}}||| <b><font color=green> ({{{Buffed Speed|}}})</font></b>}}<br>{{#ifeq:{{{Weapon Skill|}}}|||Uses {{{Weapon Skill|}}} Skill<br>}}{{#ifeq:{{{Bonus to Attack|}}}|||Bonus to Attack Skill: +{{{Bonus to Attack|}}}%}}{{#ifeq:{{{Buffed Attack|}}}|||<b><font color=green> ({{{Buffed Attack|}}}%)</font></b>}}{{#ifeq:{{{Bonus to Attack|}}}|||<br>}}{{#ifeq:{{{Bonus to Defense|}}}|||Bonus to Melee Defense: +{{{Bonus to Defense|}}}%}}{{#ifeq:{{{Buffed Defense|}}}|||<b><font color=green> ({{{Buffed Defense|}}}%)</font></b>}}{{#ifeq:{{{Bonus to Defense|}}}|||<br>}}{{#ifeq:{{{Defense|}}}|||Bonus to Melee Defense: {{{Defense|}}}<br>}}{{#ifeq:{{{Bonus to Missile|}}}|||Bonus to Missile Defense: +{{{Bonus to Missile|}}}%<br>}}{{#ifeq:{{{Bonus to Magic|}}}|||Bonus to Magic Defense: +{{{Bonus to Magic|}}}%<br>}}<br>{{#ifeq:{{{Special Req|}}}|||{{{Special Req|}}}<br><br>}}{{#ifeq:{{lc:{{{Player Attuned|}}}}}|true|This item can only be wielded by <Player>.<br><br>|}}{{#ifeq:{{{Level Req|}}}|||You must be at least level {{{Level Req|}}} to wield this item.<br>}}{{#ifeq:{{{Base Weapon Req|}}}|||Your base {{{Weapon Type}}} must be at least {{{Base Weapon Req|}}} to wield this item.<br>}}{{#ifeq:{{{Buffed Weapon Req|}}}|||Your {{{Weapon Type}}} must be at least {{{Buffed Weapon Req|}}} to wield this item.<br>}}{{#ifeq:{{{Level Req|}}}||{{#ifeq:{{{Base Weapon Req|}}}||{{#ifeq:{{{Buffed Weapon Req|}}}|||<br>}}|<br>}}|<br>}}{{#ifeq:{{{Spells|}}}|||Casts the following spells: {{{Spells|}}}<br><br>}}{{#ifeq:{{{Activation Reqs|}}}|||Activation Requirements: {{{Activation Reqs}}}<br><br>}}{{#ifeq:{{{Spellcraft|}}}|||Spellcraft: {{{Spellcraft|}}}<br>}}{{#ifeq:{{{Mana|}}}|||Mana: {{{Mana|}}}<br>}}{{#ifeq:{{{Mana Cost|}}}|||Mana Cost: 1 point per {{{Mana Cost|??}}} seconds.<br>}}{{#ifeq:{{lc:{{{Cannot Be Sold|False}}} }}|true|<br>This item cannot be sold.<br>|}}
!align=left| <font color=purple>Luminance:
|align=right| <font color=purple>'''{{#ifeq:{{{Luminance|}}} | | ?? | {{{Luminance}}} }}'''
|width=1|
|-
|-
|}
|}
|width=20|
|}
|
|
{{#ifeq:{{{Live Image|Live.jpg}}}
{|style="border:1px solid #aaaaaa; background:#f9f9f9;"
| Live.jpg
{|cellpadding=2
|  
!align=center width=308 height=412 style="border:1px solid #aaaaaa; background:#f9f9f9;"| {{#ifexist:File:{{{Image|}}}|[[File:{{{Image|}}}|300x400px]]|[[File:Live.jpg|300x400px]]}}
| {{#ifeq:{{{Live Image|}}}
|}
    |  
|-
    |  
|align=center colspan=2|
    | [[Image:{{{Live Image|}}}{{!}}frame{{!}}{{{Live Image Caption}}}|right]]
{|cellpadding=2 style="width:634px; border:1px solid #aaaaaa; background:#f9f9f9; vertical-align:top;"
  }}
|-
}}
|bgcolor=#d0d0d0 align=center valign=top colspan=6| '''[[Trophies]]'''
|}</includeonly><noinclude>
|-
{{Related|Wiki Templates|Melee Weapon Template}}
|valign=top colspan=6 align=center| '''{{#ifeq:{{{Trophies|}}}||??|{{{Trophies}}}}}'''
== Syntax ==
|-
<pre>
{{#ifeq:{{{Wielded Items|}}} | | |
{{Melee Weapon
{{!}}bgcolor=#d0d0d0 align=center valign=top colspan=6{{!}}'''[[:Category:Unwieldable & Creature or NPC only Equipment{{!}}Commonly Wielded Items]]'''
|       Weapon Type =  
{{!}}-
|               Name =
{{!}}valign=top colspan=6 align=center{{!}} {{{Wielded Items}}}}}
|         Icon Image = Icon.png
|-
|         Live Image = Live.jpg
|bgcolor=#d0d0d0 align=center valign=top colspan=3 width=310| '''Common Attacks'''
| Live Image Caption =
|bgcolor=#d0d0d0 align=center valign=top colspan=3 width=310| '''Weaknessess'''
|  
|-
|             Value =  
|valign=top colspan=3 align=center| {{#ifeq:{{{Attacks|}}}||??|{{{Attacks}}}}}
|             Burden =  
|valign=top colspan=3 align=center| {{#ifeq:{{{Weaknesses|}}}||??|{{{Weaknesses}}}}}
|       Description =  
|-
| Special Properties =  
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Melee A'''
|  
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Missile A'''
|             Damage =  
|bgcolor=#d0d0d0 align=center valign=top| '''Magic A'''
|     Buffed Damage =  
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Melee D'''
|           Element =
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Missile D'''
|             Speed =  
|bgcolor=#d0d0d0 align=center valign=top width=100| '''Magic D'''
|      Buffed Speed =  
|-
|   Bonus to Attack =
|valign=top align=center| {{#ifeq:{{{Melee Attack}}}||&nbsp;|{{{Melee Attack}}}}}
|     Buffed Attack =
|valign=top align=center| {{#ifeq:{{{Missile Attack}}}||&nbsp;|{{{Missile Attack}}}}}
|   Bonus to Defense =  
|valign=top align=center| {{#ifeq:{{{Magic Attack}}}||&nbsp;|{{{Magic Attack}}}}}
|     Buffed Defense =  
|valign=top align=center| {{#ifeq:{{{Melee Defense}}}||&nbsp;|{{{Melee Defense}}}}}
|  Bonus to Missile =  
|valign=top align=center| {{#ifeq:{{{Missile Defense}}}||&nbsp;|{{{Missile Defense}}}}}
|     Bonus to Magic =
|valign=top align=center| {{#ifeq:{{{Magic Defense}}}||&nbsp;|{{{Magic Defense}}}}}
|  
|-
|     Player Attuned =  
|}
|         Level Req =  
|}
|   Base Weapon Req =  
{{#ifeq:{{lc:{{{Boss|}}}}} | true | [[Category:Boss Creature]] | }}[[Category:Creature]] {{#if: {{{Class|}}} | [[Category:{{{Class}}}]] {{#ifeq: {{{Subclass| }}} | {{{Subclass|u}}} | {{#if:{{{Subclass|}}} | [[Category:{{{Subclass}}}]] | }} | }} }}</includeonly><noinclude>{{Documentation}}[[Category:Wiki Template]][[Category:Stats Panel Template]]</noinclude>
| Buffed Weapon Req =
|       Special Req =
|  
|             Spells =
|   Activation Reqs =
|         Spellcraft =
|               Mana =
|         Mana Cost =
|     Cannot Be Sold = False
}}
</pre>
 
== Usage ==
This template is one component of the page template [[Melee Weapon Stat Template]], full details and an example can be found there.
 
[[Category:Wiki Template]]
</noinclude>

Revision as of 19:42, 23 January 2012

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

Sandbox Documentation