Difference between revisions of "Template:Textbox"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <div class="textbox {{#if: {{{1}}} | {{{1}}} }}"> | + | <includeonly><div class="textbox {{#if: {{{1}}} | {{{1}}} }}"> |
{{#if: {{{2}}} | <div class="textbox-head">{{{2}}}</div>}} | {{#if: {{{2}}} | <div class="textbox-head">{{{2}}}</div>}} | ||
<div class="textbox-body"> | <div class="textbox-body"> | ||
Line 5: | Line 5: | ||
</div> | </div> | ||
</div> | </div> | ||
− | <includeonly>< | + | </includeonly><noinclude> |
+ | usage: '''<nowiki>{{textbox|color|head|body}}</nowiki>''' | ||
+ | * '''color''': Empty or one of 'red' or 'green'. Default color is blue. | ||
+ | * '''head ''': Empty ot text for head line. | ||
+ | * '''body''': Any text for inside of the box. | ||
+ | |||
+ | 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}} | ||
+ | |||
{{textbox|red|Red Title|Red colored boxes are also possible.}} | {{textbox|red|Red Title|Red colored boxes are also possible.}} | ||
+ | |||
{{textbox|green|Green Title|Green colored boxes are also possible.}} | {{textbox|green|Green Title|Green colored boxes are also possible.}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 17:40, 17 March 2011
usage: {{textbox|color|head|body}}
- color: Empty or one of 'red' or 'green'. Default color is blue.
- 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.
Green Title
Green colored boxes are also possible.