User:Tirerim/sandbox/Template:EquipmentTableLine
From Fallen London Wiki (Staging)
< User:Tirerim | sandbox
Renders a table line showing a single piece of equipment, its Fate cost, and its effects. Use as the template for a query that will return a list of equipment, like so:
{| class="article-table" !Item !Cost !Effects {{#ask: [[FCS::Let Slivvy Speak]] [[Gains::+]] |?Gains=Item |?Has fate cost=Fate Cost |link=none |named args=yes |userparam=ShowFateCost |format=plainlist |limit=100 |template=EquipmentTableLine }} |}
Fate Cost and Slot are optional columns, included by including the string "ShowFateCost" or "ShowSlot" in the userparam of the query, and also including those fields in the query output. The userparam can also be used to set a condition for highlighting some items conditionally based on ID, by including something like "HighlightID>12345" or "HighlightID{{=}}12345", and likewise including the ID in the query output. userparam options may be included in any order, separated by commas.