Template:Cargo
Jump to navigation
Jump to search
Documentation The documentation below is transcluded from Template:Cargo/doc. (edit | history)
[purge]
This template displays a notice about the usage of the MediaWiki Cargo extension of a template. It is to be placed in the template's source code, in front of {{doc}}
.
If the template uses the {{#cargo_declare:}}
and/or {{#cargo_attach:}}
calls, they are to be put in the template's unnamed parameters.
Usage
{{ cargo | <cargo parser function calls> | query<n> = <cargo table name> | nocat = y/yes/1 }}
- First/second unnamed parameter
{{#cargo_declare:}}
and/or {{#cargo_attach:}}
calls, if necessary for the template.
- query1/query2/etc.
Names of cargo tables queried by the template, can be continued infinitely.
- nocat
Prevents the categorization of the template in Category:Templates using Cargo, which is enabled by default.
Examples
Code | Result |
---|---|
{{cargo|query1=Imageinfo|query2=Foobar}}
|
|
{{cargo|{{#cargo_attach:_table=Imageinfo}}|query1=Foobar}}
|
|
{{cargo|{{#cargo_declare:_table=Foobar|...}}|{{#cargo_attach:_table=Imageinfo}}}}
|