Template:Component Search

From Deez Nuts' Sword Coast Campaign
Revision as of 02:36, 13 September 2026 by Wvaske (talk | contribs) (Harvest DB: add the RunQuery results template — builds a Cargo query from the search form's filters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Results template for the Component Search form (via Special:RunQuery, embedded on Find Components). Builds a Cargo query over HarvestComponents joined to HarvestLog from the form's filters:

  • effects — comma list of tags; match = Any (default) or All, assembled into HOLDS clauses with #arraymap. The connectives are unspaced between parenthesized clauses on purpose — parser-function arguments are whitespace-trimmed.
  • rarity — comma list, becomes an IN (…).
  • usable_for — one item type, matched against both primary_for and contributor_to.
  • bankedYes limits to components with net banked quantity > 0; otherwise every known component shows with its quantity (0 = known but not held).