Difference between revisions of "Template:TextBox"

From Jackpoint
 
(6 intermediate revisions by the same user not shown)
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}}}'''
 
|}
 
|}
 
|- style="color: {{{color|black}}}"
 
|- style="color: {{{color|black}}}"
 
|{{{2}}}
 
|{{{2}}}
|}</includeonly>
+
|}</includeonly><noinclude>
<noinclude>
 
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
{{TEMPLATE INVOCATION}}
+
{{Template:TextBox|headercolor=<a css colour string>|1=<the header>|2=<the body>}}
 +
</pre>
 +
With named parameters:
 +
<pre>
 +
{{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)
 +
}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

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)
}}