Template:Rule/doc: Difference between revisions
Waldyrious (talk | contribs) |
|||
Line 56: | Line 56: | ||
===See also=== |
===See also=== |
||
*{{ |
* {{tl|separator}} for a row of dots: |
||
{{separator|15}} |
{{separator|15}} |
||
*{{ |
* {{tl|Custom rule}} for a customized decorative rule: |
||
{{Custom rule|sp|100|d|6|sp|10|d|10|sp|10|d|6|sp|100}} |
{{Custom rule|sp|100|d|6|sp|10|d|10|sp|10|d|6|sp|100}} |
||
* {{tl|Longdash}} for an inline long dash: {{Longdash}}, and {{tl|Bar}} for an arbitrary-length such line: {{Bar}} |
|||
<includeonly> |
<includeonly> |
Revision as of 22:11, 5 November 2015
This is a documentation subpage for Template:Rule. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template inserts a black horizontal rule. It should be used in transcriptions in preference to wiki syntax "----", which inserts a rule but in a lighter colour. Furthermore there can be no certainty that the rendering of "----" will not change in the future. Please check for any [X]HTML 5 issues as well.
For example
{{rule}}
produces
The common case of a double-rule can be achieved by
{{rule}}{{rule}}
which produces
Width
A width may optionally be provided, in em or by % in which case a black horizontal rule of that width is centered on the line.
For example
{{rule|width=12em}}
and
{{rule|12em}}
both produce
Height
Height is provided by the named height parameter:
{{rule|height=3px}}
Alignment
In rare cases where the left or right alignment is required, the align parameter may be used.
For example
{{rule|6em|align=left}}
produces
Style
Finally, any desired special HTML styling may be applied through the style parameter.
For example
{{rule|6em|style=background-color:gold}}
produces
Redirects
- {{Hline}}
See also
- {{separator}} for a row of dots:
· | · | · | · | · | · | · | · | · | · | · | · | · | · | · |
- {{Custom rule}} for a customized decorative rule: