Template:Image Template Base/doc: Difference between revisions
Created page with "{{Documentation/Header}} Base template for image templates such as {{T|Survivor}} and {{T|Game}} to wrap around. ==Syntax== See Template Data. When a template wraps around this template, it should be done in conjunction with {{T|UndefParam}}. ==Examples== See {{T|Survivor}} or {{T|Game}}. ==Template Data== <templatedata> { "params": { "1": { "label": "Name", "description": "Name of the entity.", "example": "Anby", "type": "string",..." |
(No difference)
|
Revision as of 13:47, 10 June 2025
This is the documentation page for Image Template Base. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
Base template for image templates such as {{Survivor}} and {{Game}} to wrap around.
Syntax
See Template Data.
When a template wraps around this template, it should be done in conjunction with {{UndefParam}}.
Examples
Template Data
Display a link with an icon.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | 1 | Name of the entity.
| String | required |
| Icon Size | 2 | Size of the entity icon.
| Number | optional |
| Custom Text | text | no description
| String | optional |
| Custom Link | link | Changes link to something other than entity page. | Page name | optional |
| nobr | nobr | Set to "1" for no new line. | Boolean | optional |
| notext | notext | Set to "1" for no text. | Boolean | optional |
| outerWidth | outerWidth | Outer width of the container element | Number | optional |
| minOuterWidth | minOuterWidth | Minimum outer width of the container element | Number | optional |
| maxOuterWidth | maxOuterWidth | Maximum outer width of the container element | Number | optional |
| Entity Type | type | The entity type
| String | required |
| desktop_defaultDim | desktop_defaultDim | Default dimension of the icon on desktop. | Number | required |
| mobile_defaultDim | mobile_defaultDim | Default dimension of the icon on mobile. | Number | required |
| desktop_imageContainerClass | desktop_imageContainerClass | Optional CSS class for the image container element on non-mobile. | String | optional |
| desktop_imageContainerStyle | desktop_imageContainerStyle | Optional CSS class for the image container element on non-mobile. | String | optional |