Difference between revisions of "Template:Textbox"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
{{#if: {{{2}}} |<div class="textbox-head">{{{2}}}</div>}} | {{#if: {{{2}}} |<div class="textbox-head">{{{2}}}</div>}} | ||
<div class="textbox-body">{{{3}}}</div></div></includeonly><noinclude> | <div class="textbox-body">{{{3}}}</div></div></includeonly><noinclude> | ||
+ | == Usage == | ||
usage: '''<nowiki>{{textbox|color|head|body}}</nowiki>''' | usage: '''<nowiki>{{textbox|color|head|body}}</nowiki>''' | ||
* '''color''': Empty or one of 'red' or 'green'. Default color is blue. The keyword 'center' can be added to center the text of the body. | * '''color''': Empty or one of 'red' or 'green'. Default color is blue. The keyword 'center' can be added to center the text of the body. | ||
Line 7: | Line 8: | ||
* '''body''': Any text for inside of the box. | * '''body''': Any text for inside of the box. | ||
− | Examples | + | |
+ | == Examples == | ||
{{textbox||Blue Title|This is an text box. The standard color is blue}} | {{textbox||Blue Title|This is an text box. The standard color is blue}} | ||
Line 13: | Line 15: | ||
{{textbox|green|Green Title|Green colored boxes are also possible.}} | {{textbox|green|Green Title|Green colored boxes are also possible.}} | ||
+ | |||
+ | {{textbox|center||This is centered text in a box without header.}} | ||
+ | |||
</noinclude> | </noinclude> |
Revision as of 20:36, 17 March 2011
Usage
usage: {{textbox|color|head|body}}
- color: Empty or one of 'red' or 'green'. Default color is blue. The keyword 'center' can be added to center the text of the body.
- 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.
This is centered text in a box without header.