m (link fix) |
No edit summary |
||
(11 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
{{doc-sub}} |
|||
{{documentation subpage}} |
|||
==Usage== |
==Usage== |
||
This template aligns text to the right. For example, |
This template aligns text to the right. For example, |
||
<nowiki>{{right|'''Example text'''}}</nowiki> |
<nowiki>{{right|'''Example text'''}}</nowiki> |
||
yields |
yields |
||
{{right|'''Example text'''}} |
{{right|'''Example text'''}} |
||
Text can be offset from the right margin by use of a second <tt>offset</tt> parameter, implicitly or by name: |
Text can be offset from the right margin by use of a second <tt>offset</tt> parameter, implicitly or by name: |
||
Line 15: | Line 12: | ||
both yield |
both yield |
||
{{right|'''Example text'''|3em}} |
{{right|'''Example text'''|3em}} |
||
==<nowiki>{{right}}</nowiki> ''versus'' {{tl|float right}}== |
==<nowiki>{{right}}</nowiki> ''versus'' {{tl|float right}}== |
||
Line 21: | Line 17: | ||
{| class="prettytable" width="100%" cellpadding="20" |
{| class="prettytable" width="100%" cellpadding="20" |
||
!{{template|right}} !! {{template|float right}} |
|||
|- |
|- |
||
| width="50%" | {{Lorem ipsum}} |
| width="50%" | {{Lorem ipsum}} |
||
Line 37: | Line 34: | ||
''{{Lorem ipsum}}'' |
''{{Lorem ipsum}}'' |
||
|} |
|} |
||
⚫ | |||
⚫ | |||
⚫ | |||
===See also=== |
|||
* [[Template:Left]] |
|||
⚫ | |||
⚫ | |||
[[Category:Template]] |
|||
⚫ | |||
</includeonly> |
</includeonly> |
Latest revision as of 23:25, 28 April 2020
This is a documentation subpage for Template:Right. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template aligns text to the right. For example,
{{right|'''Example text'''}}
yields
Example text
Text can be offset from the right margin by use of a second offset parameter, implicitly or by name:
{{right|'''Example text'''|3em}}
and
{{right|'''Example text'''|offset=3em}}
both yield
Example text
{{right}} versus {{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, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This text is Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This text is Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
See also