Difference between revisions of "Template:TextBox"

From Jackpoint
(Added usage for the complex styling)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| style="width: {{{size|400px}}}; margin: 5px auto; font-size:90%; padding:2px; border: solid {{{border|black}}} 2px; background: {{{background|#EEE}}}; -moz-border-radius: {{{mainradius|}}}"
+
{| style="width: {{{size|400px}}}; margin: 5px auto; font-size:90%; padding:2px; border: solid {{{border|black}}} 2px; background: {{{background|#EEE}}}; border-radius: {{{mainradius|}}}"
 
|  
 
|  
{| style="text-align:center; font-size:110%; width:100%; background: {{{headercolor|#BBB}}}; border: solid {{{border|black}}} 1px; color: {{{hcolor|black}}}; -moz-border-radius: {{{headradius|}}}"
+
{| style="text-align:center; font-size:110%; width:100%; background: {{{headercolor|#BBB}}}; border: solid {{{border|black}}} 1px; color: {{{hcolor|black}}}; border-radius: {{{headradius|}}}"
 
|'''{{{1}}}'''
 
|'''{{{1}}}'''
 
|}
 
|}

Revision as of 21:20, 10 July 2021

Usage

{{Template:TextBox|headercolor=<a css colour string>|1=<the header>|2=<the body>}}

With named parameters:

{{Template:TextBox
|1=<the header>
|2=<the body>
|headercolor=<a css colour string> (defaults to #BBB)
|hcolor=<a css colour string> (defaults to black)
|background=<a css colour string> (defaults to #EEE)
|color=<a css colour string> (defaults to black)
|size=<a size string> (defaults to 400px)
|border=<a css colour string> (defaults to black)
|mainradius=<a size string> (defaults to none)
|headradius=<a size string> (defaults to none)
}}