Template:Banner: Difference between revisions
SimpleArrows (talk | contribs) mNo edit summary |
SimpleArrows (talk | contribs) mNo edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class="banner" style="border-color: {{#if: {{Banner/data|{{{1|}}}|data=border_color}} | {{Banner/data|{{{1|}}}|data=border_color}} | rgb(107,107,107)}}; {{#if: {{Banner/data|{{{1|}}}|data=width}} | | <includeonly>{| class="banner" style="{{#if: {{{css|}}}|{{{css}}}}}<!-- | ||
| width="50px | -->padding-right: 40px;<!-- | ||
|{{#if: {{{title_override|}}} | <b>{{{title_override|}}}</b><br> | {{#if: {{Banner/data|{{{1|}}}|data=title}} |<b>{{Banner/data|{{{1|}}}|data=title}}</b><br>|}}|}}{{#if: {{{caption_override|}}} | {{{caption_override|}}} | {{#if: {{Banner/data|{{{1|}}}|data=description}} | {{Banner/data|{{{1|}}}|data=description}} }}}} | |||
-->border-color: {{#if: {{Banner/data|{{{1|}}}|data=border_color}} | {{Banner/data|{{{1|}}}|data=border_color}} | rgb(107,107,107)}};<!-- | |||
-->{{#if: {{{width_override|}}} | width: {{{width_override|}}} !important; min-width: unset; | {{#if: {{Banner/data|{{{1|}}}|data=width}} | width: {{Banner/data|{{{1|}}}|data=width}} !important; min-width: unset;}} }}<!-- | |||
-->{{#if: {{{height_override|}}} | height: {{{height_override|}}}; | {{#if: {{Banner/data|{{{1|}}}|data=height}} | height: {{Banner/data|{{{1|}}}|data=height}};}} }}" | |||
| width="50px" | [[File:{{#if: {{Banner/data|{{{1|}}}|data=icon}} | {{Banner/data|{{{1|}}}|data=icon}} | Banner_InfoIcon.png}}|center|link=]] | |||
|{{#if: {{{title_override|}}} | <b>{{{title_override|}}}</b><br> | {{#if: {{Banner/data|{{{1|}}}|data=title}} |<b>{{Banner/data|{{{1|}}}|data=title}}</b><br>|}}|}}<!-- | |||
-->{{#if: {{{caption_override|}}} | {{{caption_override|}}} | {{#if: {{Banner/data|{{{1|}}}|data=description}} | {{Banner/data|{{{1|}}}|data=description}} }}}} | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
: To view, add and edit banner presets, see [[Template:Banner/data]]. | : To view, add and edit banner presets, see [[Template:Banner/data]]. | ||
Line 22: | Line 31: | ||
"label": "Title Override", | "label": "Title Override", | ||
"description": "Overrides the banner's title with the new text.", | "description": "Overrides the banner's title with the new text.", | ||
"type": "string" | |||
}, | |||
"css": { | |||
"label": "CSS", | |||
"description": "An additional parameter to add any CSS to customise the individual banner.", | |||
"example": "font-size: 12px;", | |||
"type": "string" | |||
}, | |||
"width_override": { | |||
"label": "Width Override", | |||
"description": "Overrides the banner's width.", | |||
"example": "400px", | |||
"type": "string" | |||
}, | |||
"height_override": { | |||
"label": "Height Override", | |||
"description": "Overrides the banner's height.", | |||
"example": "300px", | |||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
"description": "Place at the top of pages (above infoboxes, if any) to show necessary warnings or info for the reader.", | "description": "Place at the top of pages (above infoboxes, if any) to show necessary warnings or info for the reader.", | ||
"format": "inline" | "format": "inline", | ||
"paramOrder": [ | |||
"1", | |||
"caption_override", | |||
"title_override", | |||
"width_override", | |||
"height_override", | |||
"css" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> |
Latest revision as of 23:25, 6 March 2024
- To view, add and edit banner presets, see Template:Banner/data.
Place at the top of pages (above infoboxes, if any) to show necessary warnings or info for the reader.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Preset | 1 | The preset the banner will use. This parameter grabs the presets from the Template:Banner/data page.
| String | required |
Caption Override | caption_override | Overrides the text beneath the banner's title with the new text. | String | optional |
Title Override | title_override | Overrides the banner's title with the new text. | String | optional |
Width Override | width_override | Overrides the banner's width.
| String | optional |
Height Override | height_override | Overrides the banner's height.
| String | optional |
CSS | css | An additional parameter to add any CSS to customise the individual banner.
| String | optional |
{{Banner|PRESET_NAME}}
Usage:
{{Banner|Under construction}}
Output:
This page is under construction. The information on this page may not yet be complete. |