This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Difference between revisions of "Template:Tocright"

From Heroes Wiki
Jump to navigation Jump to search
imported>Martin Van Buren
imported>Ryangibsonstewart
m (Reverted edits by Martin Van Buren (Talk); changed back to last version by MiamiVolts)
 
Line 1: Line 1:
<div style="position: fixed; width: 100%; height: 100%; top: 0; left: 0; background-color: grey; opacity: 1; z-index: 99;"></div>
{| cellspacing="0" cellpadding="0" style="clear:right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{1|auto}}};"
| {{toclimit|limit={{{limit|}}}}}
|}<noinclude>
 
== Usage ==
<pre>{{tocright
  |<!--OPTIONAL width of TOC-->
  |limit=<!--OPTIONAL Highest level heading to include in TOC-->
}}</pre>
Forces TOC and floats it on right.  TOC will appear at the location the template is inserted, so it should be used before the first heading.
 
If the first argument/parameter is specified, it will be applied to width of the TOC (i.e. use <nowiki>{{tocright|170px}}</nowiki> for a TOC that is only 170 pixels wide).
 
If <code>|limit=</code> is specified, only headings of the specified level or greater will be included in the TOC.  For example, <code>|limit=2</code> will include only level two headings (<nowiki>==Heading==</nowiki>), while <code>|limit=3</code> will include level three headings (<nowiki>===Heading===</nowiki>) as well as level two headings, and so on.
 
[[Category: Page Elements]]
[[Category: Table of Contents Templates]]
</noinclude>

Latest revision as of 23:47, 24 August 2011

Usage

{{tocright
  |<!--OPTIONAL width of TOC-->
  |limit=<!--OPTIONAL Highest level heading to include in TOC-->
}}

Forces TOC and floats it on right. TOC will appear at the location the template is inserted, so it should be used before the first heading.

If the first argument/parameter is specified, it will be applied to width of the TOC (i.e. use {{tocright|170px}} for a TOC that is only 170 pixels wide).

If |limit= is specified, only headings of the specified level or greater will be included in the TOC. For example, |limit=2 will include only level two headings (==Heading==), while |limit=3 will include level three headings (===Heading===) as well as level two headings, and so on.