Template:Camp supplies list: Difference between revisions
Jump to navigation
Jump to search
(add orderby) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><ul style="list-style: none; column-width: 30em;"> | |||
tables= | {{#cargo_query: tables = misc_items | ||
|fields=_pageName=name, | | fields = _pageName = page, name, camp_supplies, icon | ||
|where={{{where| | | where = {{{where|}}} | ||
|more results text= | | more results text = | ||
|format=template | | format = template | ||
|template= | | template = Camp supplies list/format | ||
|named args=yes | | named args = yes | ||
|order by= | | order by = camp_supplies desc, name asc | ||
}}</ul> | }} | ||
</ul></includeonly><noinclude>{{documentation|content= | |||
Creates a list of supplies. | Creates a list of supplies. | ||
Example: | |||
{{Template demo | |||
| style = table | |||
| caption1 = >= 5 camp supplies | |||
| <nowiki>{{Camp supplies list | where = camp_supplies = 8 AND type = "Food" }}</nowiki> | |||
}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | == Template data== | ||
<templatedata> | |||
{ | |||
"params": { | |||
"where": { | |||
"label": "Where", | |||
"description": "Criteria for querying camp supplies. Requires knowledge of Cargo.", | |||
"type": "string", | |||
"required": true | |||
} | |||
} | |||
} | |||
</templatedata>}}</noinclude> |
Latest revision as of 23:13, 28 August 2024
Template documentation
Creates a list of supplies.
Example:
Markup | Renders as |
---|---|
{{Camp supplies list | where = camp_supplies = 8 AND type = "Food" }} |
|
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Where | where | Criteria for querying camp supplies. Requires knowledge of Cargo. | String | required |