Changes

Template:TOCright

941 bytes added, 18:56, 18 April 2017
Created page with "{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}..."
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};"
| __TOC__
|}
{{#if:{{{fix|}}}|
{{{!}} style="display:inline-block; width:100%; max-width:1000px;"
{{!}}
{{!}}}
}}<noinclude>

This template shows a right-aligned ''table of contents''.

== Usage ==
<pre style="width: 50%;">
{{TOCright}}
</pre>

==Parameters (optional)==
;clear
:Sets the CSS clear property, which forces this float underneath the side specified with this attribute. So, clear=right (which is the default) will place the element after all the right floating elements before it. Options are left, right, both, or none.
;width
:Set the CSS width.
;fix=y
:Created a fixed width invisible table, used to solve vertical spacing issues when using this template on pages that contain tables.

[[Category:Formatting templates|TOCright]]
</noinclude>
150
edits