Difference between revisions of "User:Evon R'al/Sandbox template/doc"
From EVE University Wiki
m (correct color name) |
m (Coding and testing) |
||
Line 8: | Line 8: | ||
;Syntax | ;Syntax | ||
:{{T|Banner|2=color= |3=border= |4=text= |5=content}} | :{{T|Banner|2=color= |3=border= |4=text= |5=content}} | ||
− | :: color - Color of the banner background. If omitted the background color is {{Co|dimgray|dimgray}}. 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}}). | + | :: color - Color of the banner background. If omitted the background color is {{Co|white|dimgray|dimgray}}. 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}}. | :: 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}}. | :: text - Color of the text in the banner. If omitted the text color is {{Co|white|white}}. |
Revision as of 14:15, 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 dimgray. 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...
! class missing !
RELATED UNI-WIKI REFERENCES
EXTERNAL LINKS
|
Ship Attributes
|
{{Banner|color= yellow|border= red|text= black|This is a yellow banner with a red border and black text !}} gives...
! class missing !
RELATED UNI-WIKI REFERENCES
EXTERNAL LINKS
|
Ship Attributes
|
- References
- ^ https://www.w3schools.com/cssref/css_colors.asp [2021-10-23]
- ^ https://www.w3schools.com/cssref/css_colors_legal.asp [2021-10-23]