Actions

Template

Difference between revisions of "Item Weapon"

From P6 Spheres

(Created page with "<noinclude> This is the "Item" template. '''Name'''=Real name of item<br> '''SortName'''=Name for use when sorting; "Climbing Kit, Basic" and "Climbing Kit, Deluxe"<br> '''Ta...")
 
 
(11 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
'''Damage'''=Medium damage<br>
 
'''Damage'''=Medium damage<br>
 
'''Critical'''=x4 / 19-20 / 19-20/x2<br>
 
'''Critical'''=x4 / 19-20 / 19-20/x2<br>
'''Range'''=As an integer<br>
+
'''RangeInc'''=As an integer<br>
 
'''DamageTypes'''=Types of damage = B / B or P / B and P
 
'''DamageTypes'''=Types of damage = B / B or P / B and P
 
'''Short'''=Short summary of benefits/use for tables<br>
 
'''Short'''=Short summary of benefits/use for tables<br>
Line 26: Line 26:
 
'''Source'''=OGL Codes<br>
 
'''Source'''=OGL Codes<br>
  
{{#cargo_declare:_table=Items_Weapons|Proficiency=Text (allowed values=simple,martial,exotic)|Hands=Text (allowed values=light,one-handed,two-handed)|RangeType=Text (allowed values=melee,ranged)|Damage=Text|Critical=Text|Range=Integer|DamageTypes=Text}}
+
{{#cargo_declare:_table=Items_Weapons|Proficiency=Text (allowed values=simple,martial,exotic)|Hands=Text (allowed values=light,one-handed,two-handed)|RangeType=Text (allowed values=melee,ranged,ammunition,misc)|Damage=Text|Critical=Text|RangeInc=Text|DamageTypes=Text}}
 
{{#cargo_attach:_table = Base_Items}}</noinclude><!--
 
{{#cargo_attach:_table = Base_Items}}</noinclude><!--
  
--><includeonly>{{#cargo_store:_table=Base_Items|Name={{{Name}}}|SortName={{{SortName|{{{Name}}}}}}|ItemType=Weapons|TreasureUse=Weapon|Tags={{{Tags|}}}|Price={{{Price|-}}}|PrettyPrice={{MapPrice|{{{Price|0.0}}}}}|Weight={{{Weight|-}}}|PrettyWeight={{MapWeight|{{{Weight|0.0}}}}}|Short={{{Short|}}}|Fluff={{{Fluff|}}}|Description={{{Description|}}}|Benefit={{{Benefit|}}}|Note={{{Note|}}}|CraftRequirements={{{CraftRequirements|}}}|CraftDC={{{CraftDC|}}}|CraftSkill={{{CraftSkill|}}}|CraftCost={{{CraftCost|}}}|Source={{{Source|}}}|Campaigns={{{Campaigns|}}} }}<!--
+
--><includeonly>{{#cargo_store:_table=Base_Items|Name={{{Name}}}|SortName={{{SortName|{{{Name}}}}}}|UrlName={{InterCargoEncode|{{{Name}}}}}|ItemType=Weapons|TreasureUse=Weapon|Tags={{{Tags|}}}|Price={{{Price|0}}}|PrettyPrice={{MapPrice|{{{Price|0.0}}}}}|Weight={{{Weight|0}}}|PrettyWeight={{MapWeight|{{{Weight|0.0}}}}}|Short={{{Short|}}}|Fluff={{{Fluff|}}}|Description={{{Description|}}}|Benefit={{{Benefit|}}}|Note={{{Note|}}}|CraftRequirements={{{CraftRequirements|}}}|CraftDC={{{CraftDC|}}}|CraftSkill={{{CraftSkill|}}}|CraftCost={{{CraftCost|}}}|Source={{{Source|}}}|Campaigns={{{Campaigns|}}} }}<!--
  
-->{{#cargo_store:_table=Items_Weapons|Proficiency={{{Proficiency}}}|Hands={{{Hands}}}|RangeType={{{RangeType}}}|Damage={{{Damage|}}}|Critical={{{Critical|}}}|Range={{{Range|}}}|DamageTypes={{{DamageTypes|}}}} }}<!--
+
-->{{#cargo_store:_table=Items_Weapons|Proficiency={{{Proficiency}}}|Hands={{{Hands}}}|RangeType={{{RangeType}}}|Damage={{{Damage|}}}|Critical={{{Critical|}}}|RangeInc={{{RangeInc|}}}|DamageTypes={{{DamageTypes|}}} }}<!--
  
 
-->{{#vardefine:CategoryTag|{{#replace:{{{ItemType}}}||_}}}}{{#vardefine:SubCategoryTag|{{#replace:{{{ItemSubType}}}||%20}}}}<!--
 
-->{{#vardefine:CategoryTag|{{#replace:{{{ItemType}}}||_}}}}{{#vardefine:SubCategoryTag|{{#replace:{{{ItemSubType}}}||%20}}}}<!--
  
 
-->{{DISPLAYTITLE:{{{Name|}}}}}<!--
 
-->{{DISPLAYTITLE:{{{Name|}}}}}<!--
-->{{BreadCrumbs|[[Equipment]] > [[Equipment/WeaponList|{{{ItemType}}}]]|{{{Name}}}|auto=no}}<!--
+
-->{{BreadCrumbs|[[Equipment]] > [[Equipment/WeaponList|Weapons]]|{{{Name}}}|auto=no}}<!--
  
 
-->{{#if: {{{Fluff|}}}|<wbr>
 
-->{{#if: {{{Fluff|}}}|<wbr>
Line 44: Line 44:
 
{{#!:{| class="wikitable"
 
{{#!:{| class="wikitable"
 
|-
 
|-
! Proficiency !! Damage !! Critical !! Type !!{{#if: {{{Range|}}}| Range !!|}} Special !! Cost !! Weight
+
! Proficiency !! Damage !! Critical !! Type !!{{#if: {{{RangeInc|}}}| Range !!|}} Special !! Cost !! Weight
 
|-
 
|-
| {{{Proficiency}}} {{{Hands}}} {{{RangeType}}} || {{{Damage|—}}} || {{{Critical|—}}} || {{Item_Weapon_DamageType|{{{DamageTypes|—}}}}} ||{{#if: {{{Range|}}}| {{{Range|—}}} {{#!:||}}|}} {{{Short|—}}} || {{{Cost|}}} || {{{Weight|}}}
+
| {{{Proficiency}}} {{{Hands}}} {{{RangeType}}} || {{{Damage|—}}} || {{{Critical|—}}} || {{Item_Weapon_DamageType|{{{DamageTypes|—}}}}} ||{{#if: {{{RangeInc|}}}| {{{RangeInc}}} {{#!:||}}|}} {{{Short|—}}} || {{MapPrice|{{{Price|0.0}}}}} || {{MapWeight|{{{Weight|0.0}}}}}
 
|}}}<!--
 
|}}}<!--
  
Line 72: Line 72:
 
-->''Short Description:'' {{{Short|None}}}}}
 
-->''Short Description:'' {{{Short|None}}}}}
  
{{OGL|{{{Source}}}}}[[Category:Items]]
+
{{OGL|{{{Source}}}}}[[Category:Weapons]]
 
</includeonly>
 
</includeonly>

Latest revision as of 19:54, 24 March 2020

This is the "Item" template.

Name=Real name of item
SortName=Name for use when sorting; "Climbing Kit, Basic" and "Climbing Kit, Deluxe"
Tags=Any further tags used for filtering
Price=Buying price in gp (Float)
Weight=Weight of the item in lbs. (Float)
Campaigns=Filtering. "All" by default
Proficiency=simple / martial / exotic
Hands=light / one-handed / two-handed
RangeType=melee / ranged
Damage=Medium damage
Critical=x4 / 19-20 / 19-20/x2
RangeInc=As an integer
DamageTypes=Types of damage = B / B or P / B and P Short=Short summary of benefits/use for tables
Fluff=Fluff description
Description=Full description
Benefit=Specific rule benefits
Note=Note
CraftRequirements=Workshop, feats, materials, talents
CraftDC=The Craft DC for the item (Integer)
CraftSkill=The Craft skill used for the item or Spellcraft
CraftCost=Cost in sp/gp (Float)
Source=OGL Codes

This template defines the table "Items_Weapons". View table. This template adds rows to the table "Base_Items", which is declared by the template Item. View table.