Template:Float/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Used to float tables or videos left, right, or center. == Usage == <code><nowiki>{{float|DIRECTION|CONTENT}}</nowiki></code> <code>DIRECTION</code> can be left, right, or ce...") |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Used to float tables or videos left, right, or center. | Used to float tables or videos left, right, or center. | ||
It's basically a wrapper for a HTML span tag: <code><nowiki>{{float|DIRECTION|CONTENT}}</nowiki></code> creates <code><nowiki><span style="float:DIRECTION">CONTENT</span></nowiki></code> | |||
== Usage == | == Usage == | ||
Line 9: | Line 11: | ||
To break the justification you can include a line break like {{tl|-}}. | To break the justification you can include a line break like {{tl|-}}. | ||
If CONTENT contains an equals sign then you will need to place a 2= before that parameter. For example: <code><nowiki>{{float|DIRECTION|2=CONTENT}}</nowiki></code>. | |||
=== Example === | === Example === | ||
<code><nowiki>{{float|right| {{youtube|-MY-Kk76x9w | <code><nowiki>{{float|right| {{youtube|-MY-Kk76x9w}} }} blah blah blah blah</nowiki></code> | ||
'''creates''' | |||
{{float|right| {{youtube|-MY-Kk76x9w | {{float|right| {{youtube|-MY-Kk76x9w}} }} blah blah blah blah | ||
{{-}} | {{-}} | ||
< | |||
== See also == | |||
*{{tl|center}} | |||
<includeonly> | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</ | </includeonly> |
Latest revision as of 01:46, 20 March 2015
Used to float tables or videos left, right, or center.
It's basically a wrapper for a HTML span tag: {{float|DIRECTION|CONTENT}}
creates <span style="float:DIRECTION">CONTENT</span>
Usage
{{float|DIRECTION|CONTENT}}
DIRECTION
can be left, right, or center.
CONTENT
is the video or table or whatever content you want to justify.
To break the justification you can include a line break like {{-}}.
If CONTENT contains an equals sign then you will need to place a 2= before that parameter. For example: {{float|DIRECTION|2=CONTENT}}
.
Example
{{float|right| {{youtube|-MY-Kk76x9w}} }} blah blah blah blah
creates
blah blah blah blah
See also
- {{center}}