Difference between revisions of "Template:Dashbox"
Jump to navigation
Jump to search
(Created page with "{| style="padding:5px; border:1px dashed #2f6fab; width:100%; margin-bottom:.2em;" {{#if: {{{header|}}}| style="border:1px solid #2f6fab; text-align:center;" | ''' {{{header}}...") |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| style="padding:5px; border:1px dashed #2f6fab; width:100%; margin-bottom:.2em;" | {| style="padding:5px; border:1px dashed #2f6fab; width:100%; margin-bottom:.2em;" | ||
{{#if: {{{ | | {{#if: {{{heading|}}} | style="border:1px solid #2f6fab; text-align:center;" | style="display:none;" }} | ''' {{{heading}}} ''' | ||
|- | |- | ||
| | | | ||
{{{text}}} | {{{text}}} | ||
| Line 9: | Line 9: | ||
Add this template around a block of text to surround the text with a dashed blue line. | Add this template around a block of text to surround the text with a dashed blue line. | ||
Use <code> | Use <code>heading=</code> to add text in a header box | ||
Use <code>text=</code> to indicate the text that should appear within the box. | Use <code>text=</code> to indicate the text that should appear within the box. | ||
Latest revision as of 23:02, 16 February 2017
|
{{{text}}} |
Usage
Add this template around a block of text to surround the text with a dashed blue line.
Use heading= to add text in a header box
Use text= to indicate the text that should appear within the box.
Example
{{dashbox|header=Sample rule|text=
Always use a serial comma (a.k.a. Oxford comma) with series of three or more items:
{{example|text=
100 1 Smith, John.
245 10 Baseball, hot dogs, and apple pie /{{subfield|c}}by John Smith.}} }}
displays as:
| Sample rule |
|
Always use a serial comma (a.k.a. Oxford comma) with series of three or more items: 100 1 Smith, John.
245 10 Baseball, hot dogs, and apple pie /‡cby John Smith.
|