Difference between revisions of "Template:TOCright"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(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}...")
 
m (embedding toc limit)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| 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}}}}}};" class="toclimit-{{{1|3}}}"
| __TOC__
| __TOC__
|}
|}
Line 12: Line 12:
== Usage ==
== Usage ==
<pre style="width: 50%;">
<pre style="width: 50%;">
{{TOCright}}
{{TOCright|<limit>|clear=|width=|fix=}}
</pre>
</pre>


==Parameters (optional)==
==Parameters (optional)==
; ''unnamed parameter 1'' (limit)
: Sets the TOC limit, i.e. header depth level. Defaults to 3.
;clear  
;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.
: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.

Latest revision as of 18:13, 16 July 2017


This template shows a right-aligned table of contents.

Usage

{{TOCright|<limit>|clear=|width=|fix=}}

Parameters (optional)

unnamed parameter 1 (limit)
Sets the TOC limit, i.e. header depth level. Defaults to 3.
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.