Difference between revisions of "Template:TextBox"
From Jackpoint
Line 2: | Line 2: | ||
{| style="width: {{{size|400px}}}; margin: 5px auto; font-size:90%; padding:2px; border: solid {{{border|black}}} 2px; background: {{{background|#EEE}}}; 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: | + | {| 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}}}''' | ||
|} | |} | ||
Line 23: | Line 23: | ||
|size=<a size string> (defaults to 400px) | |size=<a size string> (defaults to 400px) | ||
|border=<a css colour string> (defaults to black) | |border=<a css colour string> (defaults to black) | ||
− | |||
|mainradius=<a size string> (defaults to none) | |mainradius=<a size string> (defaults to none) | ||
|headradius=<a size string> (defaults to none) | |headradius=<a size string> (defaults to none) |
Latest revision as of 01:01, 11 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) }}