Template:Banner/data: Difference between revisions
SimpleArrows (talk | contribs) mNo edit summary |
No edit summary |
||
| (19 intermediate revisions by one other user not shown) | |||
| Line 8: | Line 8: | ||
| border_color = | | border_color = | ||
}} | }} | ||
OPTIONAL PARAMETERS: | |||
| width = | |||
| height = | |||
--> | --> | ||
| DashInstallTranslations = {{#switch: {{{data|}}} | |||
| description = | |||
* [[Dash Faction Installation Guide|English]] | |||
* [[Dash Faction Installation Guide/es|Spanish/Español]] | |||
* [[Dash Faction Installation Guide/fr|French/Français]] | |||
* [[Dash Faction Installation Guide/ru|Russian/Русский]] | |||
* [[Dash Faction Installation Guide/pl|Polish/Polskie]] | |||
* [[Dash Faction Installation Guide/ro|Romanian/Romana]] | |||
| icon = Icon_Globe.png | |||
| width = auto | |||
| height = 150px | |||
}} | |||
| Under construction = {{#switch: {{{data|}}} | | Under construction = {{#switch: {{{data|}}} | ||
| title = This page is under construction. | | title = This page is under construction. | ||
| Line 15: | Line 30: | ||
| icon = Doozer.png | | icon = Doozer.png | ||
| border_color = rgb(255,193,12) | | border_color = rgb(255,193,12) | ||
}} | |||
| Requires Alpine = {{#switch: {{{data|}}} | |||
| title = This content is specific to Alpine Faction. | |||
| description = The information on this page relies on capabilities added to Red Faction via the [https://alpinefaction.com Alpine Faction] patch. | |||
| icon = AFIcon.png | |||
| border_color = rgb(140,192,250) | |||
}} | }} | ||
| Line 38: | Line 60: | ||
| Discord = {{#switch: {{{data|}}} | | Discord = {{#switch: {{{data|}}} | ||
| title = [https://discord.gg/factionfiles Join the RF Community Discord] | | title = [https://discord.gg/factionfiles Join the RF Community Discord] | ||
| icon = DiscordLogo.png | | icon = DiscordLogo.png{{!}}link=https://discord.gg/factionfiles | ||
| border_color = rgb(114,136,218) | | border_color = rgb(114,136,218) | ||
| width = | | width = 35% | ||
}} | }} | ||
| Line 86: | Line 108: | ||
"default": "rgb(107,107,107)", | "default": "rgb(107,107,107)", | ||
"suggested": true | "suggested": true | ||
}, | |||
"width": { | |||
"label": "Width", | |||
"description": "The width of the banner.", | |||
"example": "300px", | |||
"type": "number", | |||
"default": "65%" | |||
}, | |||
"height": { | |||
"label": "Height", | |||
"description": "The height of the banner.", | |||
"example": "150px", | |||
"type": "number" | |||
} | } | ||
}, | }, | ||
"description": "A list of presets that are used by Template:Banner. Click on the page's edit button to view, add and edit banner presets.", | "description": "A list of presets that are used by Template:Banner. Click on the page's edit button to view, add and edit banner presets.", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"title", | |||
"description", | |||
"icon", | |||
"border_color", | |||
"width", | |||
"height" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Core Templates]]</noinclude> | [[Category:Core Templates]]</noinclude> | ||
Latest revision as of 13:54, 17 May 2025
- For the border_color parameter, a name from the HTML Color Names list is able to be used.
A list of presets that are used by Template:Banner. Click on the page's edit button to view, add and edit banner presets.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | A small amount of text to show the point of the banner.
| String | required |
| Description | description | Extra information that the reader should know. Can be an expanded version of the title.
| String | suggested |
| Icon | icon | An icon to reflect the banner's purpose. Can be from a Red Faction series game or an actual icon.
| File | required |
| Border Color | border_color | The color of the banner's border. It's advised to use a color either similar to or exactly the same as the icon being used to prevent an inconsistent style/color scheme. Only RGB values and HTML color names work as values, not hex codes.
| String | suggested |
| Width | width | The width of the banner.
| Number | optional |
| Height | height | The height of the banner.
| Number | optional |