Template:Banner: Difference between revisions

From Project-GC
Jump to navigation Jump to search
Creating banner. Options to change colour to follow.
 
Changing background colour, now allows optional parameters for bg and fg
Line 1: Line 1:
<div style="background:#f0f8ff; border-radius:9px; border:solid 3px #00008b; box-shadow:5px 5px 5px rgba(68,68,68,0.6); color:#00008b; margin-bottom:10px; padding:8px; text-align:center">
<div style="background:{{{bg|#EBE7E4}}}; border-radius:9px; border:solid 3px #00008b; box-shadow:5px 5px 5px rgba(68,68,68,0.6); color:{{{fg|#00008b}}}; margin-bottom:10px; padding:8px; text-align:center">
<p style="text-align:center"><span style="font-family:Trebuchet MS,Helvetica,sans-serif">{{{text|text goes here}}}</span></p></div><noinclude>
<p style="text-align:center"><span style="font-family:Trebuchet MS,Helvetica,sans-serif">{{{text|Text goes here}}}</span></p></div><noinclude>


Produces a banner.
Produces a banner.
Line 6: Line 6:
==Usage==
==Usage==


<nowiki>{{Banner|text = </nowiki>''text you want to appear.''<nowiki>}}</nowiki>
<nowiki>{{Banner | text = </nowiki>''text you want to appear.'' | bg = ''Background colour in RGB hex (optional)'' | fg = ''Font colour in RGB hex (optional)''<nowiki>}}</nowiki>

Revision as of 17:13, 27 January 2024

Text goes here

Produces a banner.

Usage

{{Banner | text = text you want to appear. | bg = Background colour in RGB hex (optional) | fg = Font colour in RGB hex (optional)}}