Template:Harvest Log Entry: Difference between revisions

From Deez Nuts' Sword Coast Campaign
Jump to navigation Jump to search
Harvest DB: add Cargo row template storing harvest events into HarvestLog
 
Harvest DB: declare notes as Wikitext type (matches component tables)
 
Line 21: Line 21:
|roll=String
|roll=String
|outcome=String
|outcome=String
|notes=Text
|notes=Wikitext
}}
}}
One '''harvest event''' — what actually happened to a component of a slain carcass. Stores the row into the [[Special:CargoTables|Cargo]] table '''HarvestLog''' and renders one wikitable row. Wrap a run of these with [[Template:Harvest Record Header]] and [[Template:Harvest Table End]]. The [[Harvested Materials]] ledger is a live query that sums this table, joined to '''HarvestComponents''' — component names must match the manifest exactly.
One '''harvest event''' — what actually happened to a component of a slain carcass. Stores the row into the [[Special:CargoTables|Cargo]] table '''HarvestLog''' and renders one wikitable row. Wrap a run of these with [[Template:Harvest Record Header]] and [[Template:Harvest Table End]]. The [[Harvested Materials]] ledger is a live query that sums this table, joined to '''HarvestComponents''' — component names must match the manifest exactly.

Latest revision as of 02:39, 13 September 2026

This template defines the table "HarvestLog". View table. One harvest event — what actually happened to a component of a slain carcass. Stores the row into the Cargo table HarvestLog and renders one wikitable row. Wrap a run of these with Template:Harvest Record Header and Template:Harvest Table End. The Harvested Materials ledger is a live query that sums this table, joined to HarvestComponents — component names must match the manifest exactly.

Parameters

  • component — exact manifest name from the creature's Harvest Profile.
  • creature — defaults to the page name.
  • session — session number (e.g. 54); session_page — the full session page title.
  • quantity — units banked, including margin bonuses (default 1; use 0 for Left rows; negative for Spent rows when components are consumed by crafting).
  • harvester — who recovered it (plain text); roll — the check total(s), free text (e.g. 24, nat 20).
  • outcomeRecovered (default, banked), Left (left on the carcass), Eaten (recovered but consumed, never banked), Spent (banked stock consumed by crafting).
  • notes — free text.