Difference between revisions of "Template:FloatRight"
From Unofficial Fantasica Wiki
(test template) |
m (test) |
||
Line 1: | Line 1: | ||
<includeonly><span {{#if:{{{id|}}}|id="{{{id}}}"}} style="float:right; display:{{{display|block}}}; margin:{{{3|0}}} {{{offset|{{{2|0}}}}}} {{{3|0}}} {{{4|0}}}; {{{style|}}}"> | <includeonly><span {{#if:{{{id|}}}|id="{{{id}}}"}} style="float:right; display:{{{display|block}}}; margin:{{{3|0}}} {{{offset|{{{2|0}}}}}} {{{3|0}}} {{{4|0}}}; {{{style|}}}"> | ||
{{{content|{{{1}}}}}} | {{{content|{{{1}}}}}} | ||
− | </span></includeonly> | + | </span></includeonly><noinclude> |
=== Usage === | === Usage === | ||
Line 18: | Line 18: | ||
yields | yields | ||
{{FloatRight|offset=3em|'''This text is floated right with an offset of 3em.'''}} | {{FloatRight|offset=3em|'''This text is floated right with an offset of 3em.'''}} | ||
+ | </noinclude> |
Revision as of 19:26, 22 June 2015
Usage
This template floats text to the right without changing the alignment.
Offset
You can prevent the text from floating all the way to the right through the use of the offset parameter:
{{FloatRight|'''This text is floated right with no offset.'''}} yields This text is floated right with no offset.
while
{{FloatRight|offset=3em|'''This text is floated right with an offset of 3em.'''}} yields This text is floated right with an offset of 3em.