Template:Harvest Component: Difference between revisions
Jump to navigation
Jump to search
Harvest DB: add Cargo row template storing creature manifest rows into HarvestComponents |
Harvest DB: link effect tags in Harvest Profiles to prefilled, auto-run Find Components searches |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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}}}|—}} || {{#if:{{{contributor_to|}}}|{{{contributor_to}}}|—}}</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 /><span class="plainlinks"><small>{{#arraymap:{{{effects|}}}|,|@@@@|[{{fullurl:Find Components|pfRunQueryFormName=Component+Search&wpRunQuery=true&Component_Search%5Beffects%5D={{urlencode:@@@@|QUERY}}}} @@@@]| • }}</small></span>|}} || {{#if:{{{primary_for|}}}|{{{primary_for}}}|—}} || {{#if:{{{contributor_to|}}}|{{{contributor_to}}}|—}}</includeonly><noinclude> | ||
{{#cargo_declare:_table=HarvestComponents | {{#cargo_declare:_table=HarvestComponents | ||
|creature=Page | |creature=Page | ||
| Line 20: | Line 21: | ||
|cv=Integer | |cv=Integer | ||
|signature=Boolean | |signature=Boolean | ||
|effect= | |effect=Wikitext | ||
|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 | ||
|notes= | |notes=Wikitext | ||
}} | }} | ||
One '''manifest row''' — a component that exists on a creature's carcass per the [[Monster Harvesting]] carcass-first rules. Stores the row into the [[Special:CargoTables|Cargo]] table '''HarvestComponents''' and renders one wikitable row. Wrap a run of these with [[Template:Harvest Profile Header]] and [[Template:Harvest Table End]]. | One '''manifest row''' — a component that exists on a creature's carcass per the [[Monster Harvesting]] carcass-first rules. Stores the row into the [[Special:CargoTables|Cargo]] table '''HarvestComponents''' and renders one wikitable row. Wrap a run of these with [[Template:Harvest Profile Header]] and [[Template:Harvest Table End]]. | ||
| 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. Each tag renders as a link to a prefilled, already-run [[Find Components]] search; tags also power [[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> | ||
Latest revision as of 03:02, 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 ofScraps, 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).signature—yesfor 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.effects— standard 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. Each tag renders as a link to a prefilled, already-run Find Components search; tags also power 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.