Template:Weapon type page: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
}}
}}


{{#if:{{{range m|}}}{{{range ft|}}}|
{{#if:{{{range m|}}}{{{range ft|}}}
* {{Range|m={{{range m}}}|ft={{{range ft}}}}}
|* {{Range|m={{{range m}}}|ft={{{range ft}}}}}
|{{#if:{{{reach|}}}
| {{#if:{{{range|}}}
|* {{Range|reach}}
  |* {{Range|{{{range}}}}}
|* {{Range|melee}}
  | {{#ifeq: {{{melee or ranged|}}} | ranged
}}}}
    |* {{Range|ranged}}
    | {{#if:{{{reach|}}}
      |* {{Range|reach}}
      |* {{Range|melee}}
      }}
    }}
  }}
}}
* {{#switch:{{{handedness|}}}
* {{#switch:{{{handedness|}}}
| one-handed = {{One-Handed}}
| one-handed = {{One-Handed}}
Line 56: Line 63:
<h2> List of {{{type}}} </h2>
<h2> List of {{{type}}} </h2>


{{#switch: {{{this is an example|}}}
| yes = ''Omitted because this is an example''
| #default =
{{WeaponsTableHeader}}
{{WeaponsTableHeader}}
{{#cargo_query: tables = weapons
{{#cargo_query: tables = weapons
Line 67: Line 77:
}}
}}
{{WeaponsTableFooter}}
{{WeaponsTableFooter}}
}}


[[Category:Equipment]] [[Category:Weapon Types]] [[Category:{{{category|simple}}} Weapon Types]]</includeonly><noinclude><!--
{{#switch: {{{this is an example|}}}
| yes =
| #default = [[Category:Equipment]] [[Category:Weapon Types]] [[Category:{{{category|simple}}} Weapon Types]]
}}</includeonly><noinclude><!--


     ==== Documentation follows ====
     ==== Documentation follows ====
Line 100: Line 114:


[[Category:Page Generating Templates]]
[[Category:Page Generating Templates]]
Examples follow.
= Daggers =
{{WeaponTypePage
| type = Daggers
| example = Dagger
| category = simple
| handedness = one-handed
| melee or ranged = melee
| damage = 1d4
| damage type = Piercing
| finesse = yes
| light = yes
| dippable = yes
| actions =
* {{Piercing Strike}}
| this is an example = yes
}}
= Longbows =
{{WeaponTypePage
| type = Longbows
| example = Longbow
| category = martial
| handedness = two-handed
| melee or ranged = ranged
| damage = 1d8
| damage type = Piercing
| ammunition = yes
| heavy = yes
| dippable = yes
| actions =
* {{Hamstring Shot}}
* {{Brace (Ranged)}}
| this is an example = yes
}}
----


{{#cargo_declare: _table = weapon_types
{{#cargo_declare: _table = weapon_types