Template:Div-dotted

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Sample text
Template documentationview · edit · history · purge ]
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

ParameterDescriptionDefaultStatus
cborderBorder color#666optional
tborderBorder width2pxoptional
margintopTop margin width1emoptional
padPadding width0.6emoptional

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}}