Template:Divbox: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
m (docs: link fix)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="boilerplate metadata" {{#if:{{{2|}}}|id="{{{2}}}"|}} style="{{divstyle{{{1}}}}}; padding: 1em;"><center><b>{{{2|}}}</b></center>{{{3}}}</div>
<includeonly><div class="boilerplate metadata" {{#if:{{{2|}}}|id="{{{2|}}}"|}} style="{{Divbox/{{{1}}}}}; padding: 1em;">
<center><b>{{{2|}}}</b></center>
{{{3}}}
</div></includeonly>
<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 [[Special:PrefixIndex/Template:Divbox|individual templates]] that are only meant to be called from this one.
 
Here are samples of each flavor:
 
'''<nowiki>{{Divbox|blue|Blue Divbox|Here's a blue divbox.}}</nowiki>''':
{{Divbox|blue|Blue Divbox|Here's a blue divbox.}}
 
'''<nowiki>{{Divbox|gray|Gray Divbox|Here's a gray divbox.}}</nowiki>''':
{{Divbox|gray|Gray Divbox|Here's a gray divbox.}}
 
'''<nowiki>{{Divbox|navy|Join the Navy|See the world!}}</nowiki>''':
{{Divbox|navy|Join the Navy|See the world!}}
 
'''<nowiki>{{Divbox|orange|3=Here's an orange divbox without a title.}}</nowiki>''':
{{Divbox|orange|3=Here's an orange divbox without a title.}}
 
'''<nowiki>{{Divbox|plain|Plain Divbox|Here's a plain divbox.}}</nowiki>''':
{{Divbox|plain|Plain Divbox|Here's a plain divbox.}}
 
'''<nowiki>{{Divbox|red|Red Divbox|Here's a red divbox.}}</nowiki>''':
{{Divbox|red|Red Divbox|Here's a red divbox.}}
 
'''<nowiki>{{Divbox|yellow|Blue Divbox|Here's a yellow divbox.}}</nowiki>''':
{{Divbox|yellow|Yellow Divbox|Here's a yellow divbox.}}
 
[[Category:Message box templates]]</noinclude>

Latest revision as of 04:15, 11 December 2023

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.

Here are samples of each flavor:

{{Divbox|blue|Blue Divbox|Here's a blue divbox.}}:


{{Divbox|gray|Gray Divbox|Here's a gray divbox.}}:


{{Divbox|navy|Join the Navy|See the world!}}:


{{Divbox|orange|3=Here's an orange divbox without a title.}}:


{{Divbox|plain|Plain Divbox|Here's a plain divbox.}}:


{{Divbox|red|Red Divbox|Here's a red divbox.}}:


{{Divbox|yellow|Blue Divbox|Here's a yellow divbox.}}: