More actions
Corrected width parameter |
More documentation |
||
| Line 14: | Line 14: | ||
;width | ;width | ||
:This sets the width of the text box. It's recommended to set this as a percentage (of the paragraph width), so <code>50%</code> will produce a text box half as wide as the surrounding paragraph. If omitted, the text box will be as wide as the surrounding paragraph (<code>100%</code>). | :This sets the width of the text box. It's recommended to set this as a percentage (of the paragraph width), so <code>50%</code> will produce a text box half as wide as the surrounding paragraph. If omitted, the text box will be as wide as the surrounding paragraph (<code>100%</code>). | ||
;contents | |||
:The contents of the text box. This can be as long or short as necessary, and wiki formatting (such as bold text or links) works just fine. | |||
=== Usage notes === | === Usage notes === | ||
The background color should be darker than the border. Depending on how light the background color is, either white or black text is easier to read. | The background color should be darker than the border. Depending on how light the background color is, either white or black text is easier to read. Given that the default skin for the UniWiki has light text on a dark background, a text box with a light background will stand out much more than one with a darker background (but will also make a page look more cluttered, especially if it is used repeatedly). | ||
== Related templates == | |||
This template is used in a number of more specific templates, such as {{tl|Deprecated}}, {{tl|Merge}}, or {{tl|Example}}. | |||
== Examples == | == Examples == | ||
| Line 27: | Line 32: | ||
<code><nowiki>{{Color box|color=#110033|border=#6600bb|width= | <code><nowiki>{{Color box|color=#110033|border=#6600bb|width=50%|A smaller, purple box}}</nowiki></code>: | ||
{{Color box|color=#110033|border=#6600bb|width= | {{Color box|color=#110033|border=#6600bb|width=50%|A smaller, purple box}} | ||