Difference between revisions of "Template:FloatRight"

From Unofficial Fantasica Wiki
Jump to: navigation, search
(test template)
 
m (test)
 
(One intermediate revision by one user not shown)
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 ===
 
This template floats text to the right without changing the alignment.
 
This template floats text to the right without changing the alignment.
Line 18: Line 17:
 
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>

Latest revision as of 19:27, 22 June 2015

[edit] Usage

This template floats text to the right without changing the alignment.

[edit] 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.

Personal tools
Namespaces

Variants
Actions
Menu
Game Menu
Card Lists
Trading
External Resources
Toolbox
Google AdSense