Module:CargoQuery/doc

This module is taken from Leaguepedia's CargoQuery module.

This module lets you get around the  bug that Cargo has by avoiding |format=template. This module implicitly assumed you ARE using named args in your template (corresponding to ; you do not need to specify this.)

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

Parameters

 * You may specify all parameters the same as if they were parameters in.

One-To-Many
This template allows for one-to-many support, allowing you to specify a field to treat equivalently to a  field. Syntax is as follows:
 * , a list of fields you want concatenated together.
 * , the thing you want our one-to-many values grouped by. UNLIKE the  parameter, this should be the FINAL name of a field, so something on the RIGHT SIDE of the equals sign in your   parameter.
 * , defaults to comma. Currently you must pick the same separator for all of your one-to-many fields.

Example
Here, the  is a list of players on the team in question. For each ONE team, there are MANY players, so the field  that's sent to the template is a comma-separated list of players, grouped by team page.

Compound Queries
You can also run compound queries using. It has the same syntax as  but with a few exceptions:
 * for each individual query is disabled; default must be specified outside as an additional argument, which is then applied if no queries return results.
 * Each query must be numbered as in, etc.
 * Because of how compound query uses  as a separator, strings with this character cannot be used. This can be worked around by specifying   to be another symbol, and splitting each query's arguments using that delimiter instead.