Template:VarQuery/doc

This template performs a Cargo query and stores its results into variables that can be used later on. The query must not yield more than one result.

Usage
The argument names are identical to the  arguments. The following are available:


 * Note:
 * and  may be used instead of   and.
 * defaults to

The values get stored into variables. The variable names are the field names prefixed with.

TemplateData
{	"params": { "tables": { "aliases": [ "table" ],			"example": "heroes", "type": "string", "required": true },		"fields": { "aliases": [ "field" ],			"type": "string", "default": "_pageName", "suggested": true },		"where": { "example": "_pageName=\"Axe\"", "type": "string", "suggested": true },		"join on": { "type": "string" },		"group by": { "type": "string" },		"having": { "type": "string" },		"order by": { "type": "string" },		"limit": { "description": "A limit of 1 may be set. This will supress the error multiple results usually produce.", "type": "number" },		"prefix": { "label": "Variable prefix", "type": "string", "default": "cargo_" }	},	"format": "block" }

zh:Template:VarQuery/doc