Template:TOCright: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Gorgonzola (talk | contribs)
TOC floated to the right (similar to Wikipedia and Guild Wars wiki usage).
 
Trimoon (talk | contribs)
m #REDIRECT: Template:Tocright
 
Line 1: Line 1:
{| cellspacing="0" cellpadding="0" style="clear:{{{clear|right}}}; margin-bottom:0.5em; float:right; padding:0.5em 0 0.8em 1.4em; background:none; width:{{{width|{{{1|auto}}}}}};"
#REDIRECT: [[Template:Tocright]]
| __TOC__
|}
<noinclude>
 
==Description==
This template shows a right-aligned ''table of contents''. This '''replaces''' the use of <nowiki>__TOC__</nowiki> in the article.
 
==Syntax==
<pre>
{{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.
 
[[Category:Formatting templates|TOCright]]
</noinclude>

Latest revision as of 08:53, 16 April 2016

Redirect to: