Difference between revisions of "Template:Infobox weapon"
From Discworld MUD Wiki
(Align widths) |
(unbreak all weapons without Realweight) |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
! colspan="4" style="background-color:#992222; color:#ffffff;" | Weapon information | ! colspan="4" style="background-color:#992222; color:#ffffff;" | Weapon information | ||
+ | |- | ||
+ | | colspan=2 | '''[[Measuring tape|Precise dimensions]]''' | ||
+ | | colspan=2 | {{#if: {{{Tape-length|}}}|{{{Tape-length|?}}} x {{{Tape-width|?}}}|''No information''}} | ||
+ | |- | ||
+ | | colspan=2 | '''Material''' | ||
+ | | colspan=2 | {{#if: {{{Material|}}}|{{{Material|}}}|''No information''}} | ||
|- | |- | ||
| style="width:40%" colspan=2 | '''Weight''' | | style="width:40%" colspan=2 | '''Weight''' | ||
| style="width:60%" colspan=2 | {{#if: {{{Weight|}}}|{{{Weight|}}}|''No information''}} | | style="width:60%" colspan=2 | {{#if: {{{Weight|}}}|{{{Weight|}}}|''No information''}} | ||
|- | |- | ||
− | | colspan=2 | ''' | + | | colspan=2 | '''Thaums/sec''' |
− | | colspan=2 | {{#if: {{{ | + | | colspan=2 | {{Halfthaums|{{#if:{{{Realweight|}}}|{{{Realweight}}}|{{{Weight|}}}}}}} stable / {{Percent thaums|{{#if:{{{Realweight|}}}|{{{Realweight}}}|{{{Weight|}}}}}|0.65}} talisman / {{Maxthaums|{{#if:{{{Realweight|}}}|{{{Realweight}}}|{{{Weight}}}}}}} max |
− | | | + | |
− | | | + | |
− | | | + | |
|- | |- | ||
| colspan=2 | '''Hands''' | | colspan=2 | '''Hands''' | ||
| colspan=2 | {{#if: {{{Hands|}}}|{{{Hands|}}}|''No information''}} | | colspan=2 | {{#if: {{{Hands|}}}|{{{Hands|}}}|''No information''}} | ||
|- | |- | ||
− | | colspan=2 | ''' | + | | colspan=2 | '''Commands''' |
− | + | | colspan=2 | {{#if: {{{Commands|}}}|{{{Commands|}}}|''No information''}} | |
− | + | ||
− | + | ||
− | | colspan=2 | {{#if: {{{ | + | |
|- | |- | ||
| 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 = [[Axes|Axe]] [[Category:Axes]] |
− | | dagger = [[Daggers| | + | | dagger = [[Daggers|Dagger]] [[Category:Daggers]] |
− | | flail = [[Flails| | + | | flail = [[Flails|Flail]] [[Category:Flails]] |
− | | heavy-sword = [[Heavy-swords| | + | | heavy-sword = [[Heavy-swords|Heavy-sword]] [[Category:Heavy-swords]] |
− | | mace = [[Maces| | + | | mace = [[Maces|Mace]] [[Category:Maces]] |
− | | misc = [[Misc weapons| | + | | misc = [[Misc weapons|Misc weapon]] [[Category:Misc weapons]] |
− | | polearm = [[Polearms| | + | | polearm = [[Polearms|Polearm]] [[Category:Polearms]] |
− | | sword = [[Swords| | + | | sword = [[Swords|Sword]] [[Category:Swords]] |
− | | none = | + | | none = None [[Category:Non-melee weapons]] |
− | | #default = {{Fontcolor|red|'''Bad Type!'''}} | + | | #default = {{Fontcolor|red|'''Bad Type!'''}} [[Category:Weapons with bad type]] |
}}|''No information''}} | }}|''No information''}} | ||
|- | |- | ||
{{#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 weapons|Thrown]] [[Category:Thrown weapons]] |
− | | fired = [[Fired weapons| | + | | fired = [[Fired weapons|Fired]] [[Category:Fired weapons]] |
| #default = {{Fontcolor|red|'''Bad Ranged-type!'''}} | | #default = {{Fontcolor|red|'''Bad Ranged-type!'''}} | ||
}}|}} | }}|}} | ||
Line 48: | Line 48: | ||
! colspan="4" style="background-color:#992222; color:#ffffff;" | Judge data | ! colspan="4" style="background-color:#992222; color:#ffffff;" | Judge data | ||
|- | |- | ||
− | {{#if:{{{Judge-speed|}}}|{{!}} colspan=2 {{!}} '''Speed''' {{!}}{{!}} style="font-size:80%" {{!}} {{wr-speed|{{{Judge-speed|}}}}} {{Ifnumber|{{{Judge-speed|}}}|{{wr-speed|{{{Judge-speed|}}}|reverse=True}}|{{{Judge-speed|}}}}} {{!}}{{!}} {{ratebar|{{wr-speed|{{{Judge-speed|}}}}}}}|}} | + | {{#if: {{{Thrown|}}}|{{!}} colspan=2 {{!}} '''Thrown judge''' {{!}}{{!}} colspan=2 {{!}} {{{Thrown|}}}}} |
+ | |- | ||
+ | {{#if: {{{Fired|}}}|{{!}} colspan=2 {{!}} '''Fired judge''' {{!}}{{!}} colspan=2 {{!}} {{{Fired|}}}}} | ||
+ | |- | ||
+ | {{#if: {{{Ranged-type|}}}|{{#if:{{{Thrown|}}}{{{Fired|}}}||{{!}} colspan=4 style="text-align: center;" {{!}} ''No ranged judge information'' <includeonly>[[Category:Weapons needing ranged judge info]]</includeonly>}} }} | ||
+ | |- | ||
+ | {{#if:{{{Judge-speed|}}}|{{!}} colspan=2 {{!}} '''Speed''' {{!}}{{!}} style="font-size:80%" {{!}} {{wr-speed|{{{Judge-speed|}}}}} {{Ifnumber|{{{Judge-speed|}}}|{{wr-speed|{{{Judge-speed|}}}|reverse=True}}|{{{Judge-speed|}}}}} {{!}}{{!}} {{ratebar|{{wr-speed|{{{Judge-speed|}}}}}|base=10}}|}} | ||
|- | |- | ||
{{#if:{{{Judge-speed|}}}|{{!}} colspan=2 {{!}} '''Maximum damage''' {{!}}{{!}} style="font-size:80%" {{!}} {{wr-damage|{{{Judge-max|}}}}} {{Ifnumber|{{{Judge-max|}}}|{{wr-damage|{{{Judge-max|}}}|reverse=True}}|{{{Judge-max|}}}}} {{!}}{{!}} {{ratebar|{{wr-damage|{{{Judge-max|}}}}}}}|}} | {{#if:{{{Judge-speed|}}}|{{!}} colspan=2 {{!}} '''Maximum damage''' {{!}}{{!}} style="font-size:80%" {{!}} {{wr-damage|{{{Judge-max|}}}}} {{Ifnumber|{{{Judge-max|}}}|{{wr-damage|{{{Judge-max|}}}|reverse=True}}|{{{Judge-max|}}}}} {{!}}{{!}} {{ratebar|{{wr-damage|{{{Judge-max|}}}}}}}|}} | ||
|- | |- | ||
− | {{#if:{{{Judge-speed|}}}|{{!}} colspan=2 {{!}} '''Average damage''' {{!}}{{!}} style="font-size:80%" {{!}} {{wr-damage|{{{Judge-ave|}}}}} {{Ifnumber|{{{Judge-ave|}}}|{{wr-damage|{{{Judge-ave|}}}|reverse=True}}|{{{Judge-ave|}}}}} {{!}}{{!}} {{ratebar|{{wr-damage|{{{Judge-ave|}}}}}}}|{{ | + | {{#if:{{{Judge-speed|}}}|{{!}} colspan=2 {{!}} '''Average damage''' {{!}}{{!}} style="font-size:80%" {{!}} {{wr-damage|{{{Judge-ave|}}}}} {{Ifnumber|{{{Judge-ave|}}}|{{wr-damage|{{{Judge-ave|}}}|reverse=True}}|{{{Judge-ave|}}}}} {{!}}{{!}} {{ratebar|{{wr-damage|{{{Judge-ave|}}}}}}}|{{#ifeq: {{lc:{{{Type|}}}}} | none | |{{!}} colspan=4 style="text-align: center;" {{!}} ''No melee judge information'' <includeonly>[[Category:Weapons needing judge info]]</includeonly>}} }} |
|- | |- | ||
− | {{#if:{{{Judge-speed|}}}|{{!}} style="width:10%" {{!}} '''Str''' {{!}}{{!}} style="width:30%" {{!}} '''Overall''' {{!}}{{!}} style="width:30%" {{!}} '''Attack ease''' {{!}}{{!}} style="width:30%" {{!}} '''Parry ease''' |}} | + | | colspan="4" | |
+ | {| style="border:0px;background:whitesmoke;width:100%" cellpadding=0 | ||
+ | {{#if:{{{Vselect-default|}}}|{{!}} style="width:5%" {{!}} |}} | ||
+ | {{#if:{{{Judge-speed|}}}| {{!}} style="width:10%" {{!}} '''Str''' {{!}}{{!}} style="width:30%" {{!}} '''Overall''' {{!}}{{!}} style="width:30%" {{!}} '''Attack ease''' {{!}}{{!}} style="width:30%" {{!}} '''Parry ease''' |}} | ||
+ | |} | ||
|- | |- | ||
| colspan="4" | | | colspan="4" | | ||
− | {|style="border:0px;background:whitesmoke;width:100%" cellpadding=0 | + | {| style="border:0px;background:whitesmoke;width:100%" cellpadding=0 |
+ | {{#if:{{{Vselect-default|}}}|{{!}} style="width:5%" {{!}}|}} | ||
+ | {{#if:{{{Vselect-default|}}}|{{vselect control|name=weapvs|default={{{Vselect-default}}}}}|}} | ||
+ | {{#if:{{{Vselect-default|}}}|{{!}} style="width:95%" {{!}}|{{!}} colspan="4" {{!}}}} | ||
+ | {|{{#if:{{{Vselect-default|}}}|class="vselect" id="weapvs-default-{{{Vselect-default}}}"|}} style="border:0px;background:whitesmoke;width:100%;align:right" cellpadding=0 | ||
|- | |- | ||
{{#if:{{{Judge-speed|}}}|{{#if:{{{Judge-overall-9|}}}| {{Judge-str-line|9|{{{Judge-overall-9|}}}|{{{Judge-attack-9|}}}|{{{Judge-parry-9|}}}}} |}} |}} | {{#if:{{{Judge-speed|}}}|{{#if:{{{Judge-overall-9|}}}| {{Judge-str-line|9|{{{Judge-overall-9|}}}|{{{Judge-attack-9|}}}|{{{Judge-parry-9|}}}}} |}} |}} | ||
Line 88: | Line 102: | ||
|- | |- | ||
{{#if:{{{Judge-speed|}}}|{{#if:{{{Judge-overall-23|}}}| {{Judge-str-line|23|{{{Judge-overall-23|}}}|{{{Judge-attack-23|}}}|{{{Judge-parry-23|}}}}} |}} |}} | {{#if:{{{Judge-speed|}}}|{{#if:{{{Judge-overall-23|}}}| {{Judge-str-line|23|{{{Judge-overall-23|}}}|{{{Judge-attack-23|}}}|{{{Judge-parry-23|}}}}} |}} |}} | ||
+ | |} | ||
|} | |} | ||
|- | |- | ||
! colspan="4" | {{{Comment|}}} | ! colspan="4" | {{{Comment|}}} | ||
− | | | + | |}<noinclude>[[Category:Infoboxes]]<br style="clear:both;" /> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 03:27, 6 February 2018
Infobox weapon | |||||||
---|---|---|---|---|---|---|---|
Weapon information | |||||||
Precise dimensions | No information | ||||||
Material | No information | ||||||
Weight | No information | ||||||
Thaums/sec | ? stable / ? talisman / ? max | ||||||
Hands | No information | ||||||
Commands | No information | ||||||
Melee type | No information | ||||||
Judge data | |||||||
No melee judge 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-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.