Template:Banner/data: Difference between revisions

From Red Faction Wiki
(Created page with "{{#switch: {{{1|}}} | WIP = {{#switch: {{{data|}}} | title = Work in progress. | description = rijdfwdijs | icon = Icon_RFG.png | border_color = gold }} }}")
 
mNo edit summary
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
<!-- EDITOR NOTE: A blank preset is below for you to use, or you can copy and paste an existing preset to modify.


| WIP = {{#switch: {{{data|}}}
| PRESET_NAME = {{#switch: {{{data|}}}
   | title        = Work in progress.
   | title        =  
   | description  = rijdfwdijs
   | description  =  
   | icon        = Icon_RFG.png
   | icon        =  
   | border_color = gold
   | 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|}}}
  | title        = This page is under construction.
  | description  = The information on this page may not yet be complete.
  | icon        = Doozer.png
  | border_color = rgb(255,193,12)
  }}
 
| Stub = {{#switch: {{{data|}}}
  | title        = This article needs additional information.
  | description  = You can help the Red Faction Wiki by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].
  | icon        = StubIco.png
  | border_color = rgb(185,75,48)
  }}
 
| Need image = {{#switch: {{{data|}}}
  | title        = This article needs more images.
  | description  = You can help the Red Faction Wiki by [{{fullurl:{{FULLPAGENAME}}|action=edit}} adding some].
  | icon        = TryAnythingOnce.png
  | border_color = rgb(255,193,12)
  }}
 
| Wikipedia = {{#switch: {{{data|}}}
  | icon        = Wikipedia-logo-1-.png
  | border_color = rgb(133,133,133)
  }}
 
| Discord = {{#switch: {{{data|}}}
  | title        = [https://discord.gg/factionfiles Join the RF Community Discord]
  | icon        = DiscordLogo.png{{!}}link=https://discord.gg/factionfiles
  | border_color = rgb(114,136,218)
  | width        = 35%
  }}
 
| RF1Tutorial = {{#switch: {{{data|}}}
  | icon        = Icon_RED.png
  | border_color = rgb(255,128,128)
  }}
 
| RFGTutorial = {{#switch: {{{data|}}}
  | icon        = Rfg aim 09.jpg
  | border_color = rgb(209,137,60)
  }}
}}<noinclude>
: For the border_color parameter, a name from the [https://htmlcolorcodes.com/color-names/ HTML Color Names] list is able to be used.
<templatedata>
{
"params": {
"title": {
"label": "Title",
"description": "A small amount of text to show the point of the banner.",
"example": "This page is under construction.",
"type": "string",
"required": true
},
"description": {
"label": "Description",
"description": "Extra information that the reader should know. Can be an expanded version of the title.",
"example": "The information on this page is not considered complete.",
"type": "string",
"suggested": true
},
"icon": {
"label": "Icon",
"description": "An icon to reflect the banner's purpose. Can be from a Red Faction series game or an actual icon.",
"example": "Icon_RFG.png",
"type": "wiki-file-name",
"default": "Icon_Info.png",
"required": true
},
"border_color": {
"label": "Border Color",
"description": "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.",
"example": "gold",
"type": "string",
"default": "rgb(107,107,107)",
"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.",
"format": "block",
"paramOrder": [
"title",
"description",
"icon",
"border_color",
"width",
"height"
]
}
</templatedata>
[[Category:Core Templates]]</noinclude>

Latest revision as of 23:52, 6 March 2024

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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

A small amount of text to show the point of the banner.

Example
This page is under construction.
Stringrequired
Descriptiondescription

Extra information that the reader should know. Can be an expanded version of the title.

Example
The information on this page is not considered complete.
Stringsuggested
Iconicon

An icon to reflect the banner's purpose. Can be from a Red Faction series game or an actual icon.

Default
Icon_Info.png
Example
Icon_RFG.png
Filerequired
Border Colorborder_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.

Default
rgb(107,107,107)
Example
gold
Stringsuggested
Widthwidth

The width of the banner.

Default
65%
Example
300px
Numberoptional
Heightheight

The height of the banner.

Example
150px
Numberoptional