Template:Component Search

From Deez Nuts' Sword Coast Campaign
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).