Difference between revisions of "Template:Banner"

From EVE University Wiki
Jump to: navigation, search
m (Increase border thickness. Change "border" default color to "color' when "color" is given)
m (Increase padding. Add rounded corners)
Line 1: Line 1:
<div style="margin: 1em auto; border: 1.5px solid {{{border|{{{color|red}}} }}}; padding: 5px; width: 85%; background-color: {{{color|dimgray}}}; color: {{{text|white}}}; text-align: center">{{{1|{{Co|orange|Content is missing!}}}}}</div>
+
<div style="margin: 1em auto; border: 1.5px solid {{{border|{{{color|red}}} }}}; border-radius: 8px; padding: .6em; width: 85%; background-color: {{{color|dimgray}}}; color: {{{text|white}}}; text-align: center">{{{1|{{Co|orange|Content is missing!}}}}}</div>
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Revision as of 18:11, 9 November 2021

Content is missing!
Template documentation (for the above template, sometimes hidden or invisible)
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
Visit Template:Banner/doc to edit this text! (How does this work?) (Refresh this text - why?)