Template:CargoResult
From Dragon Mania Legends (DML) Wiki
Template documentation |
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this template's documentation. (About template documentation) |
Example(s)
{{CargoResult|{{{1|}}}}}
(parameter 1 filled by cargo), gives plain-text result(s).
See Also
{{DragonEventsTable}}
, an example Cargo query template that uses this template to display an "outro" count.
Allows a value Cargo query result (most commonly a single value) to be returned in plain-text and used in a Cargo query, or before/after Cargo results, such as in Cargo's "intro" or "outro" paramters. Has multiple applications, but is sometimes used by Cargo templates that have a count above/below the table/output. ---- This is done by putting a second query (with identical "where" criteria) in either "intro" or "outro", then this template set as the output formatting template to return the result (cargo query results cannot be returned directly without some kind of formatting set). ---- Alternatively, to use a count result within a query's formatted result, on the initial query, set "|group by=_pageName" with "COUNT(*)=FieldName", and then you can use <nowiki>{{{FieldName|}}}</nowiki> in the primary formatting template.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | This parameter is auto-filled by Cargo. | Number | required |