Difference between revisions of "Template:Infobox weapon"

From Discworld MUD Wiki
Jump to: navigation, search
(ranged too)
(Try again to put category in the same switch as type)
Line 27: Line 27:
 
| colspan=2 | '''[[Weapons#Categories|Melee type]]'''
 
| colspan=2 | '''[[Weapons#Categories|Melee type]]'''
 
| colspan=2 | {{#if: {{{Type|}}}|{{#switch: {{lc:{{{Type|}}}}}
 
| colspan=2 | {{#if: {{{Type|}}}|{{#switch: {{lc:{{{Type|}}}}}
| axe = [[Axes|Axe]]
+
| axe = [[Axes|Axe]] [[Category:Axes]]
| dagger = [[Daggers|Dagger]]
+
| dagger = [[Daggers|Dagger]] [[Category:Daggers]]
| flail = [[Flails|Flail]]
+
| flail = [[Flails|Flail]] [[Category:Flails]]
| heavy-sword = [[Heavy-swords|Heavy-sword]]
+
| heavy-sword = [[Heavy-swords|Heavy-sword]] [[Category:Heavy-swords]]
| mace = [[Maces|Mace]]
+
| mace = [[Maces|Mace]] [[Category:Maces]]
| misc = [[Misc weapons|Misc weapon]]
+
| misc = [[Misc weapons|Misc weapon]] [[Category:Misc weapons]]
| polearm = [[Polearms|Polearm]]
+
| polearm = [[Polearms|Polearm]] [[Category:Polearms]]
| sword = [[Swords|Sword]]
+
| sword = [[Swords|Sword]] [[Category:Swords]]
 
| none = None
 
| none = None
 
| #default = {{Fontcolor|red|'''Bad Type!'''}}
 
| #default = {{Fontcolor|red|'''Bad Type!'''}}
Line 41: Line 41:
 
{{#if: {{{Ranged-type|}}}|{{!}} colspan=2 {{!}} '''[[Weapons#Categories|Ranged type]]'''
 
{{#if: {{{Ranged-type|}}}|{{!}} colspan=2 {{!}} '''[[Weapons#Categories|Ranged type]]'''
 
{{!}} colspan=2 {{!}} {{#switch: {{lc:{{{Ranged-type}}}}}
 
{{!}} colspan=2 {{!}} {{#switch: {{lc:{{{Ranged-type}}}}}
| thrown = [[Thrown weapons|Thrown]]
+
| thrown = [[Thrown weapons|Thrown]] [[Category:Thrown weapons]]
| fired = [[Fired weapons|Fired]]
+
| fired = [[Fired weapons|Fired]] [[Category:Fired weapons]]
 
| #default = {{Fontcolor|red|'''Bad Ranged-type!'''}}
 
| #default = {{Fontcolor|red|'''Bad Ranged-type!'''}}
 
}}|}}
 
}}|}}
Line 100: Line 100:
 
|-
 
|-
 
! colspan="4" | {{{Comment|}}}
 
! colspan="4" | {{{Comment|}}}
|}{{#switch: {{lc:{{{Type}}}}}
+
|}<noinclude>[[Category:Infoboxes]]<br style="clear:both;" />
| axe = [[Category:Axes]]
+
| dagger = [[Category:Daggers]]
+
| flail = [[Category:Flails]]
+
| heavy-sword = [[Category:Heavy-swords]]
+
| mace = [[Category:Maces]]
+
| misc = [[Category:Misc weapons]]
+
| polearm = [[Category:Polearms]]
+
| sword = [[Category:Swords]]
+
| #default =
+
}}{{#switch: {{lc:{{{Ranged-type}}}}}
+
| thrown = [[Category:Thrown weapons]]
+
| fired = [[Category:Fired weapons]]
+
| #default =
+
}}<noinclude>[[Category:Infoboxes]]<br style="clear:both;" />
+
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 21:09, 17 June 2011

Infobox weapon
Weapon information
Weight No information
Max thaums No information
Commands No information
Hands No information
Precise dimensions No information
Material No information
Melee type No information
Judge data
Not available

[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-23: The overall judge rating for that strength.
  • Judge-attack-9 up to Judge-attack-23: The 'ease of attack' judge rating for that strength.
  • Judge-parry-9 up to Judge-parry-23: 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.