Template:Banner: Difference between revisions
SimpleArrows (talk | contribs) No edit summary |
No edit summary |
||
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)}}" | <includeonly>{| class="banner" style="border-color: {{#if: {{Banner/data|{{{1|}}}|data=border_color}} | {{Banner/data|{{{1|}}}|data=border_color}} | rgb(107,107,107)}}" | ||
| width="50px" | [[File:{{#if: {{Banner/data|{{{1|}}}|data=icon}} | {{Banner/data|{{{1|}}}|data=icon}} | Icon_Info.png}}|center|link=]] | | width="50px" | [[File:{{#if: {{Banner/data|{{{1|}}}|data=icon}} | {{Banner/data|{{{1|}}}|data=icon}} | Icon_Info.png}}|center|link=]] | ||
|{{#if: {{Banner/data|{{{1|}}}|data=title}} | | |{{#if: {{{title_override|}}} | {{{title_override|}}} | {{#if: {{Banner/data|{{{1|}}}|data=title}} |{{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 17: | Line 17: | ||
"label": "Caption Override", | "label": "Caption Override", | ||
"description": "Overrides the text beneath the banner's title with the new text.", | "description": "Overrides the text beneath the banner's title with the new text.", | ||
"type": "string" | |||
}, | |||
"title_override": { | |||
"label": "Title Override", | |||
"description": "Overrides the banner's title with the new text.", | |||
"type": "string" | "type": "string" | ||
} | } |
Revision as of 15:01, 28 January 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 |
{{Banner|PRESET_NAME}}
Usage:
{{Banner|Under construction}}
Output:
This page is under construction. The information on this page may not yet be complete. |