Difference between revisions of "Template:Dashbox"
Jump to navigation
Jump to search
(One intermediate revision 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: {{{heading|}}} | | {{#if: {{{heading|}}} | style="border:1px solid #2f6fab; text-align:center;" | style="display:none;" }} | ''' {{{heading}}} ''' | ||
| style="border:1px solid #2f6fab; text-align:center;" || ''' {{{heading}}} ''' | |- | ||
|- | |||
| | | | ||
{{{text}}} | {{{text}}} |
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.
|