Template:Banner/data: Difference between revisions
SimpleArrows (talk | contribs) (Created page with "{{#switch: {{{1|}}} | WIP = {{#switch: {{{data|}}} | title = Work in progress. | description = rijdfwdijs | icon = Icon_RFG.png | border_color = gold }} }}") |
SimpleArrows (talk | contribs) mNo edit summary |
||
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. | |||
| | | PRESET_NAME = {{#switch: {{{data|}}} | ||
| title = | | title = | ||
| description = | | description = | ||
| icon = | | icon = | ||
| border_color = | | border_color = | ||
}} | }} | ||
}} | |||
--> | |||
| Under construction = {{#switch: {{{data|}}} | |||
| title = This page is under construction. | |||
| description = The information on this page is not considered complete. | |||
| icon = Doozer.png | |||
| border_color = rgb(243,163,96) | |||
}} | |||
}}<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 should not be 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 | |||
} | |||
}, | |||
"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" | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 11:04, 28 January 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.
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 |