Template:Div-dotted
Jump to navigation
Jump to search
Sample text
This documentation is transcluded from Template:Div-dotted/doc.
This template creates a dotted border, because I use it often, so I created a template for it.
Usage
{{Div-dotted |cborder= |tborder= |margintop= |pad= }}
Please note that to ease the usage, the <div>
is not closed.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
cborder | Border color | #666 | optional | |
tborder | Border width | 2px | optional | |
margintop | Top margin width | 1em | optional | |
pad | Padding width | 0.6em | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Example
{{Div-dotted|cborder=green|tborder=0.5em|pad=1.4em}}
renders as:
Sample text
Localization
This template is not intended to be localized.
Code
Wikitext of Div-dotted
<onlyinclude><div style="margin-top:{{{margintop|1em}}}; clear: both; border: {{{tborder|2px}}} dotted {{{cborder|#666}}}; padding: {{{pad|0.6em}}}"></onlyinclude>Sample text</div> {{documentation}}