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