模板:Rule
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
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:
上述文档嵌入自Template:Rule/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |