Difference between revisions of "Template:TextBox"
From Jackpoint
(Added usage for the complex styling) |
|||
Line 11: | Line 11: | ||
<pre> | <pre> | ||
{{Template:TextBox|headercolor=<a css colour string>|1=<the header>|2=<the body>}} | {{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> |
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) }}