Difference between revisions of "Template:Banner/doc"
From EVE University Wiki
m (Minor formatting) |
m (Update dependencies.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
; Description | ; Description | ||
: This template creates a colored banner with centered text. | : This template creates a colored banner with centered text. | ||
+ | |||
; Dependencies | ; Dependencies | ||
− | + | : Uses: | |
− | + | :: {{T|Co}} | |
− | + | : Used by: | |
− | + | :: {{T|Cleanup}} | |
− | + | :: {{T|Deletion}} | |
− | + | :: {{T|Deprecated}} | |
− | + | :: {{T|Merge}} | |
− | + | :: {{T|Mission stub}} | |
− | + | :: {{T|Move}} | |
− | + | :: {{T|NPOV}} | |
− | + | :: {{T|Past content}} | |
− | + | :: {{T|Stub}} | |
− | + | :: {{T|Update}} | |
− | + | :: {{T|Work in progress}} | |
− | + | ||
;Syntax | ;Syntax | ||
− | :{{T|Banner|2=color= |3=border= |4=text= |5=content}} | + | :{{T|Banner|2=color= color|3=border= color|4=text= color|5=content}} |
− | :: '''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|# | + | :: '''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|#0000FF}}). |
:: '''border''' - Color of the border of the banner. If omitted and "color" is given then the border is the same color as the background. If color is also omitted then the border color is {{Co|red|red}}. | :: '''border''' - Color of the border of the banner. If omitted and "color" is given then the border is the same color as the background. If color is also omitted then 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}}. | ||
:: '''content''' - The content of the banner | :: '''content''' - The content of the banner | ||
+ | |||
; Sample output | ; Sample output | ||
: {{Code|<nowiki>{{Banner|This is a banner!}}</nowiki> gives...}} {{Banner|This is a banner!}} | : {{Code|<nowiki>{{Banner|This is a banner!}}</nowiki> gives...}} {{Banner|This is a banner!}} | ||
: {{Code|<nowiki>{{Banner|color= LightSalmon|border= blue|text= #000000|This is a light salmon banner with a blue border and black text !}}</nowiki> gives...}} {{Banner|color= LightSalmon|border= blue|text= #000000|This is a light salmon banner with a blue border and black text !}} | : {{Code|<nowiki>{{Banner|color= LightSalmon|border= blue|text= #000000|This is a light salmon banner with a blue border and black text !}}</nowiki> gives...}} {{Banner|color= LightSalmon|border= blue|text= #000000|This is a light salmon banner with a blue border and black text !}} | ||
+ | |||
; References | ; References | ||
<references /> | <references /> | ||
<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 12:42, 10 October 2023
- Description
- This template creates a colored banner with centered text.
- Dependencies
- Uses:
- {{Co}}
- Used by:
- {{Cleanup}}
- {{Deletion}}
- {{Deprecated}}
- {{Merge}}
- {{Mission stub}}
- {{Move}}
- {{NPOV}}
- {{Past content}}
- {{Stub}}
- {{Update}}
- {{Work in progress}}
- Syntax
- {{Banner|<color= color>|<border= color>|<text= color>|<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 #0000FF).
- border - Color of the border of the banner. If omitted and "color" is given then the border is the same color as the background. If color is also omitted then 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... This is a banner!
{{Banner|color= LightSalmon|border= blue|text= #000000|This is a light salmon banner with a blue border and black text !}} gives... This is a light salmon banner with a blue border and black text !
- References
- ^ https://www.w3schools.com/cssref/css_colors.asp [2021-10-23]
- ^ https://www.w3schools.com/cssref/css_colors_legal.asp [2021-10-23]