Template:Divbox: Difference between revisions
Jump to navigation
Jump to search
m (+cat) |
(+docs) |
||
Line 1: | Line 1: | ||
<div class="boilerplate metadata" {{#if:{{{2|}}}|id="{{{2|}}}"|}} style="{{divstyle{{{1}}}}}; padding: 1em;"> | <includeonly><div class="boilerplate metadata" {{#if:{{{2|}}}|id="{{{2|}}}"|}} style="{{divstyle{{{1}}}}}; padding: 1em;"> | ||
<center><b>{{{2|}}}</b></center> | <center><b>{{{2|}}}</b></center> | ||
{{{3}}} | {{{3}}} | ||
</div> | </div></includeonly> | ||
<noinclude>[[Category:Basic formatting templates]]</noinclude> | <noinclude>Just a simple template for making pretty message boxes. Syntax is <nowiki>{{Divbox|style|title|message}}</nowiki> to get a box in the style of your choice, with a centered title and some text in the body. The title is optional; if you use <nowiki>{{Divbox|plain|3=Text body}}</nowiki>, you will get a box that simply says "Text body" with no title. When it comes to the style parameter, you can choose from the following [[seven]] flavors: blue, gray, navy, orange, plain, red, and yellow. The styles come from [http://wiki.oni2.net/w/index.php?title=Special%3APrefixIndex&prefix=Divstyle&namespace=10 individual templates] that are only meant to be called from this one. | ||
Sample usage: '''<nowiki>{{Divbox|navy|Join the Navy|See the world!}}</nowiki>''' yields: | |||
{{Divbox|navy|Join the Navy|See the world!}} | |||
[[Category:Basic formatting templates]]</noinclude> |
Revision as of 02:16, 14 June 2011
Just a simple template for making pretty message boxes. Syntax is {{Divbox|style|title|message}} to get a box in the style of your choice, with a centered title and some text in the body. The title is optional; if you use {{Divbox|plain|3=Text body}}, you will get a box that simply says "Text body" with no title. When it comes to the style parameter, you can choose from the following seven flavors: blue, gray, navy, orange, plain, red, and yellow. The styles come from individual templates that are only meant to be called from this one.
Sample usage: {{Divbox|navy|Join the Navy|See the world!}} yields: