Template:Banner: Difference between revisions

From Red Faction Wiki
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
-->border-color: {{#if: {{Banner/data|{{{1|}}}|data=border_color}} | {{Banner/data|{{{1|}}}|data=border_color}} | rgb(107,107,107)}};<!--
-->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: {{{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|}}} | width: {{{height_override|}}}; | {{#if: {{Banner/data|{{{1|}}}|data=height}} | height: {{Banner/data|{{{1|}}}|data=height}};}}<!--
-->{{#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=]]
| 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: {{{title_override|}}} | <b>{{{title_override|}}}</b><br> | {{#if: {{Banner/data|{{{1|}}}|data=title}} |<b>{{Banner/data|{{{1|}}}|data=title}}</b><br>|}}|}}<!--
Line 49: Line 47:
"height_override": {
"height_override": {
"label": "Height Override",
"label": "Height Override",
"description": "Override the banner's height.",
"description": "Overrides the banner's height.",
"example": "300px",
"example": "300px",
"type": "string"
"type": "string"

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.

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
Width Overridewidth_override

Overrides the banner's width.

Example
400px
Stringoptional
Height Overrideheight_override

Overrides the banner's height.

Example
300px
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: