模板: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子頁面中添加分類。 本模板的子頁面。 |