Template:Harvest Component: Difference between revisions
Jump to navigation
Jump to search
Harvest DB: declare effect/notes as Wikitext type — Text double-escapes ampersands in query output |
Harvest DB: link effect tags in Harvest Profiles to prefilled, auto-run Find Components searches |
||
| Line 13: | 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:{{{effects|}}}|<br /><small>{{{effects}}}</small>|}} || {{#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 37: | Line 37: | ||
* <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> — 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>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. | * <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.