Template:Generic cargo query/doc: Difference between revisions

Created page with "<templatedata> { "params": { "tables": { "aliases": [ "table" ] }, "image size": {}, "extra col 1": {}, "extra col 2": {}, "extra col 3": {}, "extra col 4": {}, "order by": {} }, "format": "block" } </templatedata> ==Example usage== <pre>{{generic cargo table |table=battd_powers |extra col 1=rarity=Rarity |extra col 2=quality=Quality |order by=rarity, name }}</pre> {{generic cargo table |table=battd_powers |extra col 1=rarity=Rarity |extra c..."
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
{
{
"params": {
"params": {
"tables": {
"aliases": [
"table"
]
},
"image size": {},
"image size": {},
"extra col 1": {},
"extra col 1": {},
Line 12: Line 7:
"extra col 3": {},
"extra col 3": {},
"extra col 4": {},
"extra col 4": {},
"order by": {}
"order by": {},
"no description": {
"label": "Disable descriptions",
"description": "If set to anything, the \"Name / description\" column is replaced with a \"Name\" column and descriptions are not included in the query.",
"type": "boolean"
},
"limit": {},
"table": {
"label": "Table",
"description": "The name of the Cargo table to use.",
"example": "btd6_towers",
"type": "string",
"required": true,
"aliases": [
"tables"
]
},
"col align left": {},
"image field": {},
"name field": {},
"description field": {},
"extra col 5": {},
"extra col 6": {},
"where": {},
"group by": {},
"join on": {},
"extra col 7": {},
"extra col 8": {}
},
},
"format": "block"
"format": "block",
"paramOrder": [
"table",
"no description",
"image size",
"extra col 1",
"extra col 2",
"extra col 3",
"extra col 4",
"extra col 5",
"extra col 6",
"extra col 7",
"extra col 8",
"col align left",
"image field",
"name field",
"description field",
"where",
"order by",
"group by",
"limit",
"join on"
]
}
}
</templatedata>
</templatedata>


==Example usage==
==Example usage==
<pre>{{generic cargo table
<pre>{{generic cargo query
|table=battd_powers
|table=battd_powers
|extra col 1=rarity=Rarity
|extra col 1=rarity=Rarity
Line 25: Line 69:
|order by=rarity, name
|order by=rarity, name
}}</pre>
}}</pre>
{{generic cargo table
{{generic cargo query
|table=battd_powers
|table=battd_powers
|extra col 1=rarity=Rarity
|extra col 1=rarity=Rarity