Difference between revisions of "Template:Equipment Weapon"

From Epic Paths
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:Disciplines|Proficiency|Hands|ItemType|Damage|Critical|DamageType|RangeInc|DamageTypeLong|Special}}
{{#template_params:Hands|ItemType|Damage|Critical|DamageType|RangeInc|DamageTypeLong|Special}}
{{#cargo_declare:_table=Equipment_Weapons|Disciplines=List (,) of String|Proficiency=String (allowed values=simple,martial,exotic)|Hands=String (allowed values=light,one-handed,two-handed)|ItemType=String (allowed values=melee,ranged,ammunition,misc)|Damage=String|Critical=String|DamageType=String|DamageTypeLong=String|RangeInc=String|Special=Wikitext}}
{{#cargo_declare:_table=Equipment_Weapons|Hands=String (allowed values=light,one-handed,two-handed)|ItemType=String (allowed values=melee,ranged,ammunition,misc)|Damage=String|Critical=String|DamageType=String|DamageTypeLong=String|RangeInc=String|Special=Wikitext}}
{{#cargo_attach:_table=Equipment_Items}}
{{#cargo_attach:_table=Equipment_Items}}
</noinclude><includeonly>{{#cargo_store:_table=Equipment_Weapons|Disciplines={{{Disciplines|}}}|Damage={{{Damage|}}}|Critical={{{Critical|}}}|DamageType={{{DamageType|}}}|DamageTypeLong={{{DamageTypeLong|}}}|RangeInc={{{RangeInc|—}}}|Special={{{Special|—}}}}}
</noinclude><includeonly>{{#cargo_store:_table=Equipment_Weapons|Damage={{{Damage|}}}|Critical={{{Critical|}}}|DamageType={{{DamageType|}}}|DamageTypeLong={{{DamageTypeLong|}}}|RangeInc={{{RangeInc|—}}}|Special={{{Special|—}}}}}
{{#cargo_store:_table=Equipment_Items|Short={{{Short|}}}|Fluff={{{Fluff|}}}|Description={{{Description|}}}|Benefit={{{Benefit|}}}|Note={{{Note|}}}|Cost={{{Cost|—}}}|Weight={{{Weight|—}}}|CraftDC={{{CraftDC|}}}|CraftType={{{CraftType|}}}|OGL={{{OGL|}}}}}<!--
{{#cargo_store:_table=Equipment_Items|Advanced={{{Advanced|no}}}|Variant={{{Variant|no}}}|Short={{{Short|}}}|Fluff={{{Fluff|}}}|Description={{{Description|}}}|Benefit={{{Benefit|}}}|Note={{{Note|}}}|CostGp={{{CostGp|0}}}|Cost={{#if:{{{CostGp|}}}|{{Mapper Cost|{{{CostGp}}}}}|{{{Cost|—}}}}}|Weight={{{Weight|—}}}|CraftDC={{{CraftDC|}}}|CraftType={{{CraftType|}}}|OGL={{{OGL|}}}}}<!--


-->{{BreadCrumbs|Equipment,Equipment/{{{Category}}}}}{{DISPLAYTITLE:{{SUBPAGENAME}}}}<!--
-->{{BreadCrumbs|Equipment,Equipment/{{{Category}}}}}{{DISPLAYTITLE:{{SUBPAGENAME}}}}<!--
-->{{#ifeq: {{{Variant|}}}|Yes|'''Variant:''' {{{Variant}}}{{Break}}}}<!--


-->{{#!:{| class="wikitable"
-->{{#!:{| class="wikitable"
|-
|-
! Proficiency !! Damage !! Critical !! Type !!{{#if: {{{Range|}}}| Range !!|}} Special !! Cost !! Weight
! Hands !! Damage !! Critical !! Type !!{{#if: {{{RangeInc|}}}| Range !!|}} Special !! Cost !! Weight
|-
|-
| {{{Proficiency}}} {{{Hands}}} {{{ItemType}}} || {{{Damage|—}}} || {{{Critical|—}}} || {{{DamageType|—}}} ||{{#if: {{{Range|}}}| {{{Range|—}}} {{#!:||}}|}} {{{Special|—}}} || {{{Cost|—}}} || {{{Weight|—}}}
| {{{Hands}}} {{{ItemType}}} || {{{Damage|—}}} || {{{Critical|—}}} || {{{DamageType|—}}} ||{{#if: {{{RangeInc|}}}| {{{RangeInc|—}}} {{#!:||}}|}} {{{Special|—}}} || {{#if:{{{CostGp|}}}|{{Mapper Cost|{{{CostGp}}}}}|{{{Cost|—}}}}} || {{{Weight|—}}}
|}}}<!--
|}}}<!--


Line 31: Line 33:
<wbr>|}}<!--
<wbr>|}}<!--


-->'''Disciplines:''' ({{{Disciplines|}}})
-->'''Training Feats:''' {{#cargo_query:tables=Feats_Weapon_Training|where=Weapons HOLDS "{{PAGENAME}}"|order by=Name|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name|format=list}}


<wbr>|}}<!--
<wbr><!--


-->{{#if: {{{CraftDC|}}}|'''Craft''' ({{{CraftType|}}}): {{{CraftDC}}}
-->{{#if: {{{CraftDC|}}}|'''Craft''' ({{{CraftType|}}}): {{{CraftDC}}}

Latest revision as of 15:27, 29 January 2022

This is the "Equipment Weapon" template.

It should be called in the following format:

{{Equipment Weapon
|Hands=
|ItemType=
|Damage=
|Critical=
|DamageType=
|RangeInc=
|DamageTypeLong=
|Special=
}}

Edit the page to see the template text.

This template defines the table "Equipment_Weapons". View table. This template adds rows to the table "Equipment_Items", which is declared by the template Equipment Item. View table.