Template:DM Harvest Component: Difference between revisions
Harvest DB: add Cargo row template storing DM-only manifest rows into DMHarvest (namespace-gated) |
Harvest DB: add effects field (controlled tag list) to the DM manifest schema, store, and row display |
||
| Line 8: | Line 8: | ||
|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 14: | Line 15: | ||
}}|<strong class="error">DM Harvest Component used outside the DM: namespace — nothing stored.</strong>}} | }}|<strong class="error">DM Harvest Component used outside the DM: namespace — nothing stored.</strong>}} | ||
|- | |- | ||
| {{#switch:{{lc:{{{signature|}}}}}|yes|1|true='''{{{component|}}}''' ''(signature)''|#default={{{component|}}}}} || {{{tool|}}} || {{{rarity|}}} || {{{dc|{{#switch:{{{rarity|}}}|Scraps=0|Common=5|Uncommon=10|Rare=15|Very Rare=20|Legendary=25|Artifact=30|#default=—}}}}} || {{#if:{{{effect|}}}|{{{effect}}}|''Structure only''}} || {{#if:{{{primary_for|}}}|{{{primary_for}}}|—}} || {{#if:{{{contributor_to|}}}|{{{contributor_to}}}|—}} || {{{status|Unrevealed}}} || {{#if:{{{notes|}}}|{{{notes}}}|—}}</includeonly><noinclude> | | {{#switch:{{lc:{{{signature|}}}}}|yes|1|true='''{{{component|}}}''' ''(signature)''|#default={{{component|}}}}} || {{{tool|}}} || {{{rarity|}}} || {{{dc|{{#switch:{{{rarity|}}}|Scraps=0|Common=5|Uncommon=10|Rare=15|Very Rare=20|Legendary=25|Artifact=30|#default=—}}}}} || {{#if:{{{effect|}}}|{{{effect}}}|''Structure only''}}{{#if:{{{effects|}}}|<br /><small>{{{effects}}}</small>|}} || {{#if:{{{primary_for|}}}|{{{primary_for}}}|—}} || {{#if:{{{contributor_to|}}}|{{{contributor_to}}}|—}} || {{{status|Unrevealed}}} || {{#if:{{{notes|}}}|{{{notes}}}|—}}</includeonly><noinclude> | ||
{{#cargo_declare:_table=DMHarvest | {{#cargo_declare:_table=DMHarvest | ||
|creature=Page | |creature=Page | ||
| Line 24: | Line 25: | ||
|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 33: | Line 35: | ||
'''Safety:''' the store only fires on pages in the read-restricted <code>DM:</code> namespace — used anywhere else it stores nothing and shows an error. The data itself is '''not''' protected by Lockdown once stored: '''never <code>#cargo_query</code> the DMHarvest table from a player-visible page.''' When a creature's manifest is revealed at the table, move its rows to the creature page as [[Template:Harvest Component]] calls (the player table) and delete them here. | '''Safety:''' the store only fires on pages in the read-restricted <code>DM:</code> namespace — used anywhere else it stores nothing and shows an error. The data itself is '''not''' protected by Lockdown once stored: '''never <code>#cargo_query</code> the DMHarvest table from a player-visible page.''' When a creature's manifest is revealed at the table, move its rows to the creature page as [[Template:Harvest Component]] calls (the player table) and delete them here. | ||
Same parameters as [[Template:Harvest Component]] | Same parameters as [[Template:Harvest Component]] — including <code>effects</code> (standard tags from [[Template:Harvest Effect Values]]) — plus: | ||
* <code>dc</code> — harvest DC; defaults from rarity (5/10/15/20/25/30). | * <code>dc</code> — harvest DC; defaults from rarity (5/10/15/20/25/30). | ||
* <code>status</code> — <code>Unrevealed</code> (default), <code>Pending</code> (assignments not confirmed), <code>Revealed</code> (migrated to the player table; keep briefly for bookkeeping). | * <code>status</code> — <code>Unrevealed</code> (default), <code>Pending</code> (assignments not confirmed), <code>Revealed</code> (migrated to the player table; keep briefly for bookkeeping). | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 02:30, 13 September 2026
This template defines the table "DMHarvest". View table. DM-only manifest row — a component the party has not yet learned about (prepared manifests for unfought creatures, pending assignments, planned yields). Stores into the Cargo table DMHarvest and renders one wikitable row. Wrap with Template:DM Harvest Header and Template:Harvest Table End.
Safety: the store only fires on pages in the read-restricted DM: namespace — used anywhere else it stores nothing and shows an error. The data itself is not protected by Lockdown once stored: never #cargo_query the DMHarvest table from a player-visible page. When a creature's manifest is revealed at the table, move its rows to the creature page as Template:Harvest Component calls (the player table) and delete them here.
Same parameters as Template:Harvest Component — including effects (standard tags from Template:Harvest Effect Values) — plus:
dc— harvest DC; defaults from rarity (5/10/15/20/25/30).status—Unrevealed(default),Pending(assignments not confirmed),Revealed(migrated to the player table; keep briefly for bookkeeping).