Template:Right/doc: Difference between revisions

no edit summary
(paste documentation)
 
No edit summary
 
(13 intermediate revisions by 9 users not shown)
Line 1:
{{doc-sub}}
{{documentation subpage}}
 
==Usage==
 
This template aligns text to the right. For example,
<nowiki>{{right|'''Example text'''}}</nowiki>
yields
{{right|'''Example text'''}}
 
 
Text can be offset from the right margin by use of a second <tt>offset</tt> parameter, implicitly or by name:
Line 16 ⟶ 13:
{{right|'''Example text'''|3em}}
 
==<nowiki>{{right}}</nowiki> ''versus'' <nowiki>{{tl|float right}}</nowiki>==
 
==<nowiki>{{right}}</nowiki> ''versus'' <nowiki>{{float right}}</nowiki>==
This template, <nowiki>{{right}}</nowiki>, retains the text in the normal flow, but causes it to be aligned along the right margin. {{tl|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.
 
{| class="prettytable" width="100%" cellpadding="20"
!{{template|right}} !! {{template|float right}}
|-
| width="50%" | {{Lorem ipsum}}
Line 37 ⟶ 34:
''{{Lorem ipsum}}''
|}
<!-- template categories and interwiki links -->
[[Category:Special effects templates|{{PAGENAME}}]]
<includeonly>
 
 
===See also===
* [[Template:Left]]
 
<!-- template categories and interwiki links -->
<includeonly>
[[Category:Template]]
[[Category:Special effectsFormatting templates|{{PAGENAME}}]]
</includeonly>