Template:Banner: Difference between revisions

From Red Faction Wiki
No edit summary
Tag: Manual revert
mNo 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)}}; {{#if: {{Banner/data|{{{1|}}}|data=width}} | min-width: {{Banner/data|{{{1|}}}|data=width}} !important; }}"
<includeonly>{| class="banner" style="{{#if: {{{css|}}}|{{{css}}}}} padding-right: 40px; 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}} | min-width: {{Banner/data|{{{1|}}}|data=width}} !important; }}"
| width="50px" | [[File:{{#if: {{Banner/data|{{{1|}}}|data=icon}} | {{Banner/data|{{{1|}}}|data=icon}} | Banner_InfoIcon.png}}|center|link=]]
| 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}} }}}}
|{{#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}} }}}}
Line 22: Line 22:
"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"
"type": "string"
}
}

Revision as of 22:55, 4 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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Preset1

The preset the banner will use. This parameter grabs the presets from the Template:Banner/data page.

Example
Under construction
Stringrequired
Caption Overridecaption_override

Overrides the text beneath the banner's title with the new text.

Stringoptional
Title Overridetitle_override

Overrides the banner's title with the new text.

Stringoptional
CSScss

An additional parameter to add any CSS to customise the individual banner.

Example
font-size: 12px;
Stringoptional
{{Banner|PRESET_NAME}}

Usage:

{{Banner|Under construction}}

Output: