模板:Right/doc
本文档是Template:Right的文档子页面 (见页面自身)。 本页包含用法信息、分类和其他非原页面的内容。 |
此模板已于10,000+个页面中应用,对其进行的修改会影响到这些页面。请先在本模板的沙盒或测试样例子页面或您的用户子页面中测试所要进行的修改,并请考虑在应用修改前,于讨论页上进行讨论。 |
用法
[编辑]本模板将文字置于右方。
{{right|'''字句'''}}
显示为
字句
第二参数或offset参数可增加文字右边边界的大小:
{{right|'''字句'''|3em}}
或
{{right|'''字句'''|offset=3em}}
均显示为
字句
{{right}}还是{{float right}}?
[编辑]This template, {{right}}, retains the text in the normal flow, but causes it to be aligned along the right margin. {{float right}} takes a block of text out of the normal text flow, and floats it as far right as possible, without changing how it is aligned; other text can flow around it, as if it were a picture or diagram.
{{right}} | {{float right}} |
---|---|
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
本句 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. |
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
本句 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. |
TemplateData
[编辑]Align text to the right.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
Text | 1 | The text to right-align. | 内容 | 必需 |
Offset | offset 2 | The right margin.
| 字符串 | 推荐 |
Top leading/padding | leading-top | The space to leave at the top of the aligned block. Value in ems (do not specify units).
| 字符串 | 推荐 |
Style | style | Any other CSS rules to apply to the block. | 字符串 | 可选 |
参见
[编辑]- {{Left}}: 将文字置左
- {{Block right}}: places a block of text in the right of the page, without affecting the text alignment within that block.