Template:Generic cargo gallery/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "<templatedata> { "params": { "tables": { "aliases": [ "table" ], "label": "Tables", "description": "The Cargo table(s) to use for querying.", "example": "btd6_artifacts", "type": "string", "required": true }, "image field": { "label": "Image field", "description": "The field to use for querying images. If a cargo table has a column named \"icon\", set this to \"icon\" to display the images in that column.", "example": "image_M",..." |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 34: | Line 34: | ||
"example": "100px", | "example": "100px", | ||
"type": "string", | "type": "string", | ||
"default": " | "default": "120px" | ||
}, | }, | ||
"heights": { | "heights": { | ||
| Line 41: | Line 41: | ||
"example": "100px", | "example": "100px", | ||
"type": "string", | "type": "string", | ||
"default": " | "default": "120px" | ||
}, | }, | ||
"mode": {} | "mode": {} | ||
}, | }, | ||
"description": "Template for creating a gallery of images using Cargo. | "description": "Template for creating a gallery of images using Cargo.", | ||
"format": "block" | "format": "block" | ||
} | } | ||
Latest revision as of 02:30, 5 April 2026
Template for creating a gallery of images using Cargo.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Tables | tables table | The Cargo table(s) to use for querying.
| String | required |
| Image field | image field | The field to use for querying images. If a cargo table has a column named "icon", set this to "icon" to display the images in that column.
| String | optional |
| Name field | name field | The field to use for the text to display under the image. If a cargo table has a column named "description", set this to "description" to display the text in that column.
| String | optional |
| where | where | no description | Unknown | optional |
| order by | order by | no description | Unknown | optional |
| limit | limit | no description | Unknown | optional |
| Widths | widths | The widths of the images.
| String | optional |
| Heights | heights | The heights of the images.
| String | optional |
| mode | mode | no description | Unknown | optional |
Example usage
{{generic cargo gallery
|table=btd6_artifacts
|where=type != "Boost"
|limit=150
|widths=100px
|heights=100px
}}