Module:CargoQuery/doc

This module lets you get around the  bug that Cargo has by avoiding |format=template.

To use, preface query arguments with. Even if you are only using one table, use. You may additionally specify  (required), ,  ,  , and.

Use Lua names of all query parameters, so,  , etc.

For simplicity of code, the named args parameter is required to be Yes, and you do not need to specify it.

Unlike, this wrapper will NOT rename parameters with underscores in them to use spaces instead.

vardefine trick
There exists a Template:vardefine such that if it is passed in as the  parameter, the effect will be that every field's value is assigned to a variable named as the field name. Note: If multiple results are returned for a given query, due to the inherent behavior of #vardefine, the last result's values will override those of all the results that came before it. When using this template, the default template output is empty, however output-affecting parameters such as,  , and   will still be included in the return value. As usual, if no results are found,  will also still be used as the output, and no variables will be assigned.

Dependencies

 * Module:ProcessArgs