Template:Float right: Difference between revisions
(includeonly) |
m (34 revisions imported: importing required formatting templates) |
||
(19 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span {{#if:{{{id|}}}|id="{{{id}}}"}} style="float: |
<includeonly><span {{#if:{{{id|}}}|id="{{{id}}}"}} style="float:right; margin:{{{3|0}}} {{{offset|{{{2|0}}}}}} {{{3|0}}} {{{4|0}}}; {{{style|}}}">{{{content|{{{1}}}}}}</span></includeonly><noinclude> |
||
{{documentation}} |
|||
{{{content|{{{1}}}}}} |
|||
</span></includeonly><noinclude> |
|||
This template floats text to the right without changing the alignment. To align text to the right, use {{tl|right}}. |
|||
==<nowiki>{{right}}</nowiki> ''versus'' <nowiki>{{float right}}</nowiki>== |
|||
This template, <nowiki>{{float right}}</nowiki>, 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. {{tl|right}} retains the text in the normal flow, but causes it to be aligned along the right margin. |
|||
{| class="prettytable" width="100%" cellpadding="20" |
|||
|- |
|||
| width="50%" | {{Lorem ipsum}} |
|||
{{right|'''This text is'''<br/> |
|||
'''right aligned'''<br/> |
|||
'''using <nowiki>{{right}}</nowiki>.'''}} |
|||
''{{Lorem ipsum}}'' |
|||
| width="50%" | {{Lorem ipsum}} |
|||
{{float right|'''This text is'''<br/> |
|||
'''floated right'''<br/> |
|||
'''using <nowiki>{{float right}}</nowiki>.'''}} |
|||
''{{Lorem ipsum}}'' |
|||
|} |
|||
[[Category:Special effects templates|{{PAGENAME}}]] |
|||
</noinclude> |
</noinclude> |