Difference between revisions of "Template:Textbox"

From Custom Mario Kart
Jump to navigation Jump to search
(Undo revision 960 by Wiimm (talk))
Line 1: Line 1:
 
<includeonly><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">{{{3}}}</div></div></includeonly><noinclude>
{{{3}}}
 
</div>
 
</div>
 
</includeonly><noinclude>
 
 
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.
 
* '''color''': Empty or one of 'red' or 'green'. Default color is blue.

Revision as of 19:09, 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.