Difference between revisions of "Template:Textbox"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
<div class="textbox-body">{{{3}}}</div></div></includeonly><noinclude> | <div class="textbox-body">{{{3}}}</div></div></includeonly><noinclude> | ||
== Usage == | == Usage == | ||
− | usage: '''<nowiki>{{textbox| | + | usage: '''<nowiki>{{textbox|class|head|body}}</nowiki>''' |
− | + | <ul> | |
− | + | <li> | |
− | + | '''class''': Empty or '''one''' of the following keywords: | |
− | + | * 'red', 'green', 'cyan': setup color. | |
+ | * 'news': special style for news on main page | ||
+ | The default color is blue. | ||
+ | Add the any number of the following keywords to modify the layout: | ||
+ | * 'center': center the body text | ||
+ | </li> | ||
+ | <li>'''head ''': Empty ot text for head line.</li> | ||
+ | <li>'''body''': Any text for inside of the box.</li> | ||
+ | </ul> | ||
== Examples == | == Examples == | ||
Line 15: | Line 23: | ||
{{textbox|green|Green Title|Green colored boxes are also possible.}} | {{textbox|green|Green Title|Green colored boxes are also possible.}} | ||
+ | |||
+ | {{textbox|cyan|Cyan Title|Cyan colored boxes are also possible.}} | ||
{{textbox|center||This is centered text in a box without header.}} | {{textbox|center||This is centered text in a box without header.}} | ||
+ | |||
+ | {{textbox|news|News|A news box.}} | ||
</noinclude> | </noinclude> |
Revision as of 14:17, 18 March 2011
Usage
usage: {{textbox|class|head|body}}
-
class: Empty or one of the following keywords:
- 'red', 'green', 'cyan': setup color.
- 'news': special style for news on main page
- 'center': center the body text
- head : Empty ot text for head line.
- body: Any text for inside of the box.
Examples
Blue Title
This is an text box. The standard color is blue
Red Title
Red colored boxes are also possible. The text is centered.
Green Title
Green colored boxes are also possible.
Cyan Title
Cyan colored boxes are also possible.
This is centered text in a box without header.
News
A news box.