More actions
m Blank page for next project Tag: Blanking |
m creating {{Banner}} documentation |
||
| Line 1: | Line 1: | ||
; Description | |||
: This template creates a colored banner with centered text. | |||
; Dependencies | |||
:: Uses: | |||
::: {{T|Co}} | |||
:: Used by: | |||
::: | |||
;Syntax | |||
:{{T|Banner|2=color= |3=border= |4=text= |5=content}} | |||
:: color - Color of the banner background. If omitted the background color is {{Co|gray|gray}}. Colors can be given either by color name<ref>https://www.w3schools.com/cssref/css_colors.asp [2021-10-23]</ref> (e.g. {{Co|red|red}} or {{Co|green|green}}) or values<ref>https://www.w3schools.com/cssref/css_colors_legal.asp [2021-10-23]</ref> (like {{Co|#0000FF|#FF0000}}). | |||
:: banner - Color of the border of the banner. If omitted the border color is {{Co|red|red}}. | |||
:: text - Color of the text in the banner. If omitted the text color is {{Co|white|white}}. | |||
:: content - The content of the banner | |||
; Sample output | |||
: {{Code|<nowiki>{{Banner|This is a banner!}}</nowiki> gives...}} {{:User:Evon R'al/Sandbox template|This is a banner!}} | |||
: {{Code|<nowiki>{{Banner|color= yellow|border= red|text= black|This is a yellow banner with a red border and black text !}}</nowiki> gives...}} {{:User:Evon R'al/Sandbox template|color= yellow|border= red|text= black|This is a yellow banner with a red border and black text !}} | |||
; References | |||
<references /> | |||
<includeonly>Any categories for the template itself</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |||
Revision as of 14:04, 23 October 2021
- Description
- This template creates a colored banner with centered text.
- Dependencies
-
- Uses:
- {{Co}}
- Used by:
- Uses:
- Syntax
- {{Banner|<color=>|<border=>|<text=>|<content>}}
- color - Color of the banner background. If omitted the background color is gray. Colors can be given either by color name[1] (e.g. red or green) or values[2] (like #FF0000).
- banner - Color of the border of the banner. If omitted the border color is red.
- text - Color of the text in the banner. If omitted the text color is white.
- content - The content of the banner
- Sample output
{{Banner|This is a banner!}} gives...
≡ SHIP: INFORMATION
[[]]
{{Banner|color= yellow|border= red|text= black|This is a yellow banner with a red border and black text !}} gives...
≡ SHIP: INFORMATION
[[]]
- References
- ^ https://www.w3schools.com/cssref/css_colors.asp [2021-10-23]
- ^ https://www.w3schools.com/cssref/css_colors_legal.asp [2021-10-23]