Difference between revisions of "Template:Infobox weapon"

From Discworld MUD Wiki
Jump to: navigation, search
(Add the possibility to add a comment with | Comment = blablah)
(Transmit Thrown data to Judge)
Line 20: Line 20:
 
|-
 
|-
 
| '''[[Judge]]'''
 
| '''[[Judge]]'''
| {{#if:{{{Judges as|}}}|{{#ifexpr:{{REVISIONTIMESTAMP}} < 20090921000000|{{#ifeq:{{Judge class|{{#explode:{{{Judges as}}}| |0}}}}|'''Bad judge string'''|{{#ifeq:{{Judge class|{{#explode:{{{Judges as}}}| |0}} {{#explode:{{{Judges as}}}| |1}}}}|'''Bad judge string'''|''No information''|{{Judge|Judge={{#explode:{{{Judges as}}}| |0}} {{#explode:{{{Judges as}}}| |1}}}}}}|{{Judge|Judge={{#explode:{{{Judges as}}}| |0}}}}}}|<span style="color:#FF3333">''Please do not use 'judges as' - see [[Template:Infobox weapon/doc|here]] for the correct syntax''</span>}}|{{#if:{{{Judge|}}}|{{Judge|Judge={{{Judge}}}|Min={{{Min|}}}|Max={{{Max|}}}|Ave={{{Ave|}}}|Bonus={{{Bonus|}}}|Chance={{{Chance|}}}}}|''No information''}}}}
+
| {{#if:{{{Judges as|}}}|{{#ifexpr:{{REVISIONTIMESTAMP}} < 20090921000000|{{#ifeq:{{Judge class|{{#explode:{{{Judges as}}}| |0}}}}|'''Bad judge string'''|{{#ifeq:{{Judge class|{{#explode:{{{Judges as}}}| |0}} {{#explode:{{{Judges as}}}| |1}}}}|'''Bad judge string'''|''No information''|{{Judge|Judge={{#explode:{{{Judges as}}}| |0}} {{#explode:{{{Judges as}}}| |1}}}}}}|{{Judge|Judge={{#explode:{{{Judges as}}}| |0}}}}}}|<span style="color:#FF3333">''Please do not use 'judges as' - see [[Template:Infobox weapon/doc|here]] for the correct syntax''</span>}}|{{#if:{{{Judge|}}}|{{Judge|Judge={{{Judge}}}|Min={{{Min|}}}|Max={{{Max|}}}|Ave={{{Ave|}}}|Bonus={{{Bonus|}}}|Chance={{{Chance|}}}|Thrown={{{Thrown}}} }}|''No information''}}}}
 
|-
 
|-
 
! colspan="2" | {{{Comment|}}}
 
! colspan="2" | {{{Comment|}}}
 
|}<noinclude>[[Category:Infoboxes]]<br style="clear:both;" />
 
|}<noinclude>[[Category:Infoboxes]]<br style="clear:both;" />
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 17:13, 15 April 2010

Infobox weapon
Weapon information
Weight No information
Commands No information
Hands No information
Type No information
Judge No information

[edit]

Documentation
 

{{Infobox weapon}} is used to gather and display data for weapons.

Parameters

  • Weight: The weight of the weapon in the form "4 3/9". No lb, lbs or anything else please.
  • Commands: Links to the special fighting commands (eg. behead, pierce, etc.) that can be used with this weapon.
  • Hands: In how many hands this weapon is held by default.
  • Tape-length: The length revealed by a measuring tape in the form "4 3/12". No units please.
  • Tape-width: The width revealed by a measuring tape in the form "4 3/12". No units please.
  • Material: The material the weapon is made of as revealed by appraise.
  • Type: Which fighting.melee subskill is used for this weapon. One of Axe, Dagger, Flail, Heavy-sword, Mace, Misc, Polearm, Sword or None if it's not a melee weapon. This must not be a link just the text.
  • Ranged-type: Which fighting.range subskill is used for this weapon. One of thrown or fired. This must not be a link just the text. If it's not a ranged weapon don't put this parameter.
  • Comment: Something you want to add, displayed at the end of the infobox.

Judge Parameters

For some judge data the result varies with strength, for those you need to append the strength judged with.

  • Judge-overall-9 up to Judge-overall-26: The overall judge rating for that strength.
  • Judge-attack-9 up to Judge-attack-26: The 'ease of attack' judge rating for that strength.
  • Judge-parry-9 up to Judge-parry-26: The 'ease of parry' judge rating for that strength.
  • Judge-speed: The 'weapon speed' judge rating.
  • Judge-max: The 'maximum damage' judge rating.
  • Judge-ave: The 'average damage' judge rating.
The judge ratings above are optional; they must only be given if all are known from a single judge for a given strength. More specifically, you need to have a JIR high enough for it to be completely reliable. See Research:Judge for more details.