Actions

Template

Difference between revisions of "Equipment"

From Titan's Teeth

Line 22: Line 22:
 
--><includeonly>{{#cargo_store:_table=Equipment|Name={{{Name|{{SUBPAGENAME}}}}}|Category={{{Category|}}}|SubCategory={{{SubCategory|}}}|CraftDC={{{CraftDC|}}}|CraftType={{{CraftType|}}}|Cost={{{Cost|—}}}|Weight={{{Weight|—}}}|Stones={{{Stones|—}}}|Short={{{Short|—}}}|Fluff={{{Fluff|}}}|Description={{{Description|}}}|Benefit={{{Benefit|}}}|Note={{{Note|}}}|Hidden={{{Hidden|}}} }}<!--
 
--><includeonly>{{#cargo_store:_table=Equipment|Name={{{Name|{{SUBPAGENAME}}}}}|Category={{{Category|}}}|SubCategory={{{SubCategory|}}}|CraftDC={{{CraftDC|}}}|CraftType={{{CraftType|}}}|Cost={{{Cost|—}}}|Weight={{{Weight|—}}}|Stones={{{Stones|—}}}|Short={{{Short|—}}}|Fluff={{{Fluff|}}}|Description={{{Description|}}}|Benefit={{{Benefit|}}}|Note={{{Note|}}}|Hidden={{{Hidden|}}} }}<!--
  
-->
+
-->{{#if:{{{CraftDC|}}}|<!--
{{#!:{| class="wikitable"
+
-->{{#vardefine:tableCraftHeader|!! Craft DC}}<!--
 +
-->{{#vardefine:tableCraftBode|{{!}}{{!}} {{{Craft DC}}}}}<!--
 +
-->|}}<!--
 +
 
 +
-->{{#!:{| class="wikitable"
 
|-
 
|-
! Cost !! Weight
+
! Cost !! Weight {{#if:{{{CraftDC|}}}|!! Craft DC|}}
 
|-
 
|-
| {{{Cost|—}}} || {{{Weight|—}}}
+
| {{{Cost|—}}} || {{{Weight|—}}} {{#if:{{{CraftDC|}}}|{{!}}{{!}} Craft DC|}}
 
|}}}<!--
 
|}}}<!--
  

Revision as of 16:03, 9 January 2020

Usage:

{{Temp |Name=Name for use when sorting; "Climbing Kit, Basic" and "Climbing Kit, Deluxe" |Category=Category |SubCategory=SubCategory |CraftDC=The Craft DC for the item |CraftType=The Craft skill used for the item |Cost=Cost in sp/gp |Weight=Weight in pounds = 1 lb. |Stones=Weight in stones |Short=Short summary of benefits for tables |Fluff=fluff |Description=basic description |Benefit=specific rule benefits |Note=note}}

This template defines the table "Equipment". View table.