Template:Banner: Difference between revisions

From Red Faction Wiki
mNo edit summary
No edit summary
Line 3: Line 3:
|{{#if: {{Banner/data|{{{1|}}}|data=title}} |<b>{{Banner/data|{{{1|}}}|data=title}}</b><br>|}}{{#if: {{Banner/data|{{{1|}}}|data=description}} |{{Banner/data|{{{1|}}}|data=description}}|}}
|{{#if: {{Banner/data|{{{1|}}}|data=title}} |<b>{{Banner/data|{{{1|}}}|data=title}}</b><br>|}}{{#if: {{Banner/data|{{{1|}}}|data=description}} |{{Banner/data|{{{1|}}}|data=description}}|}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
{{Banner}}
: To view, add and edit banner presets, see [[Template:Banner/data]].
{{Banner|WIP}}
<templatedata>
{
"params": {
"1": {
"label": "Preset",
"description": "The preset the banner will use. This parameter grabs the presets from the Template:Banner/data page.",
"example": "Under construction",
"type": "string",
"required": true
}
},
"description": "Place at the top of pages (above infoboxes, if any) to show necessary warnings or info for the reader.",
"format": "inline"
}
</templatedata>
<pre>{{Banner|PRESET_NAME}}</pre>
'''Usage:'''
<pre>{{Banner|Under construction}}</pre>
'''Output:'''
{{Banner|Under construction}}
</noinclude>
</noinclude>

Revision as of 10:08, 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.

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
{{Banner|PRESET_NAME}}

Usage:

{{Banner|Under construction}}

Output: