Difference between revisions of "Template:Dashbox"

From CCS Cataloging Manual
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}}...")
 
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: {{{header|}}}| style="border:1px solid #2f6fab; text-align:center;" | ''' {{{header}}} '''
{{#if: {{{heading|}}}
| style="border:1px solid #2f6fab; text-align:center;" | ''' {{{heading}}} '''
|- }}
|- }}
|
|
Line 9: Line 10:
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>header=</code> to add text in a header box
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.

Revision as of 22:56, 16 February 2017

{{{heading}}}

{{{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.