模板: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[編輯]

See also[編輯]

· · · · · · · · · · · · · · ·
Rule Segment - Span - 100px.svg Rule Segment - Diamond - 6px.svg Rule Segment - Span - 10px.svg Rule Segment - Diamond - 10px.svg Rule Segment - Span - 10px.svg Rule Segment - Diamond - 6px.svg Rule Segment - Span - 100px.svg