Template:Banner/data: Difference between revisions
SimpleArrows (talk | contribs) mNo edit summary |
SimpleArrows (talk | contribs) mNo edit summary |
||
Line 8: | Line 8: | ||
| border_color = | | border_color = | ||
}} | }} | ||
OPTIONAL PARAMETERS: | |||
| width = | |||
| height = | |||
--> | --> | ||
| DashInstallTranslations = {{#switch: {{{data|}}} | | DashInstallTranslations = {{#switch: {{{data|}}} | ||
Line 100: | Line 103: | ||
"width": { | "width": { | ||
"label": "Width", | "label": "Width", | ||
"description": "The width of the banner | "description": "The width of the banner.", | ||
"example": "30%", | "example": "30%", | ||
"type": "number", | "type": "number", | ||
"default": "65%" | "default": "65%" | ||
}, | |||
"height": { | |||
"label": "Height", | |||
"description": "The height of the banner.", | |||
"example": "150px", | |||
"type": "number" | |||
} | } | ||
}, | }, | ||
Line 113: | Line 122: | ||
"icon", | "icon", | ||
"border_color", | "border_color", | ||
"width" | "width", | ||
"height" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Core Templates]]</noinclude> | [[Category:Core Templates]]</noinclude> |
Revision as of 23:14, 6 March 2024
- For the border_color parameter, a name from the HTML Color Names list is able to be used.
A list of presets that are used by Template:Banner. Click on the page's edit button to view, add and edit banner presets.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | A small amount of text to show the point of the banner.
| String | required |
Description | description | Extra information that the reader should know. Can be an expanded version of the title.
| String | suggested |
Icon | icon | An icon to reflect the banner's purpose. Can be from a Red Faction series game or an actual icon.
| File | required |
Border Color | border_color | The color of the banner's border. It's advised to use a color either similar to or exactly the same as the icon being used to prevent an inconsistent style/color scheme. Only RGB values and HTML color names work as values, not hex codes.
| String | suggested |
Width | width | The width of the banner.
| Number | optional |
Height | height | The height of the banner.
| Number | optional |