Template:Harvest Component: Difference between revisions

From Deez Nuts' Sword Coast Campaign
Jump to navigation Jump to search
Harvest DB: add Cargo row template storing creature manifest rows into HarvestComponents
 
Harvest DB: add effects field (controlled tag list from Template:Harvest Effect Values) to schema, store, and row display
Line 7: Line 7:
|signature={{#switch:{{lc:{{{signature|}}}}}|yes|1|true=Yes|#default=No}}
|signature={{#switch:{{lc:{{{signature|}}}}}|yes|1|true=Yes|#default=No}}
|effect={{{effect|}}}
|effect={{{effect|}}}
|effects={{{effects|}}}
|primary_for={{{primary_for|}}}
|primary_for={{{primary_for|}}}
|contributor_to={{{contributor_to|}}}
|contributor_to={{{contributor_to|}}}
Line 12: Line 13:
}}
}}
|-
|-
| {{#switch:{{lc:{{{signature|}}}}}|yes|1|true='''{{{component|}}}''' ''(signature)''|#default={{{component|}}}}} || {{{tool|}}} || {{{rarity|}}}{{#if:{{{rarity_note|}}}| ''({{{rarity_note}}})''|}} || {{#if:{{{effect|}}}|{{{effect}}}|''Structure only''}}{{#if:{{{notes|}}}| ''({{{notes}}})''|}} || {{#if:{{{primary_for|}}}|{{{primary_for}}}|&mdash;}} || {{#if:{{{contributor_to|}}}|{{{contributor_to}}}|&mdash;}}</includeonly><noinclude>
| {{#switch:{{lc:{{{signature|}}}}}|yes|1|true='''{{{component|}}}''' ''(signature)''|#default={{{component|}}}}} || {{{tool|}}} || {{{rarity|}}}{{#if:{{{rarity_note|}}}| ''({{{rarity_note}}})''|}} || {{#if:{{{effect|}}}|{{{effect}}}|''Structure only''}}{{#if:{{{notes|}}}| ''({{{notes}}})''|}}{{#if:{{{effects|}}}|<br /><small>{{{effects}}}</small>|}} || {{#if:{{{primary_for|}}}|{{{primary_for}}}|&mdash;}} || {{#if:{{{contributor_to|}}}|{{{contributor_to}}}|&mdash;}}</includeonly><noinclude>
{{#cargo_declare:_table=HarvestComponents
{{#cargo_declare:_table=HarvestComponents
|creature=Page
|creature=Page
Line 21: Line 22:
|signature=Boolean
|signature=Boolean
|effect=Text
|effect=Text
|effects=List (,) of String (allowed values={{Harvest Effect Values}})
|primary_for=List (,) of String
|primary_for=List (,) of String
|contributor_to=List (,) of String
|contributor_to=List (,) of String
Line 34: Line 36:
* <code>rarity_note</code> — display-only italic after the rarity (e.g. <code>above ceiling — nat 20 only</code>).
* <code>rarity_note</code> — display-only italic after the rarity (e.g. <code>above ceiling — nat 20 only</code>).
* <code>signature</code> — <code>yes</code> for the carcass's signature component.
* <code>signature</code> — <code>yes</code> for the carcass's signature component.
* <code>effect</code> — what a primary use themes toward; leave empty for ''Structure only'' components.
* <code>effect</code> — free prose: what a primary use themes toward; leave empty for ''Structure only'' components. This is the creative canvas — players may pitch anything it suggests.
* <code>effects</code> — '''standard effect tags''', comma-separated, drawn only from the vocabulary in [[Template:Harvest Effect Values]] (e.g. <code>Damage: Poison, Afflict: Poisoned</code>). 1–4 tags describing what an item built primarily from this component could deliver; structure-only parts get none. Powers the [[Find Components]] search and [[Special:Drilldown]] filtering.
* <code>primary_for</code> / <code>contributor_to</code> — comma-separated lists drawn from: <code>Potion, Poison, Bomb, Wand, Staff, Wondrous, Armor, Weapon, Rations</code>.
* <code>primary_for</code> / <code>contributor_to</code> — comma-separated lists drawn from: <code>Potion, Poison, Bomb, Wand, Staff, Wondrous, Armor, Weapon, Rations</code>.
* <code>notes</code> — free text, shown in italics after the effect.
* <code>notes</code> — free text, shown in italics after the effect.
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 02:29, 13 September 2026

This template defines the table "HarvestComponents". View table. One manifest row — a component that exists on a creature's carcass per the Monster Harvesting carcass-first rules. Stores the row into the Cargo table HarvestComponents and renders one wikitable row. Wrap a run of these with Template:Harvest Profile Header and Template:Harvest Table End.

Parameters

  • component — the component's name. Must be globally unique across all creatures (the Harvested Materials ledger joins on it); prefix generic names with the creature (e.g. Hydra Hide Scraps).
  • creature — defaults to the page name; set explicitly when the profile lives elsewhere.
  • tool — the tool column(s) that can extract it.
  • rarity — one of Scraps, Common, Uncommon, Rare, Very Rare, Legendary, Artifact. Craft Value per unit is derived automatically (1/2/4/8/16/32/64).
  • rarity_note — display-only italic after the rarity (e.g. above ceiling — nat 20 only).
  • signatureyes for the carcass's signature component.
  • effect — free prose: what a primary use themes toward; leave empty for Structure only components. This is the creative canvas — players may pitch anything it suggests.
  • effectsstandard effect tags, comma-separated, drawn only from the vocabulary in Template:Harvest Effect Values (e.g. Damage: Poison, Afflict: Poisoned). 1–4 tags describing what an item built primarily from this component could deliver; structure-only parts get none. Powers the Find Components search and Special:Drilldown filtering.
  • primary_for / contributor_to — comma-separated lists drawn from: Potion, Poison, Bomb, Wand, Staff, Wondrous, Armor, Weapon, Rations.
  • notes — free text, shown in italics after the effect.