Difference between revisions of "Template:TOC"

From Hökaland Wiki
Jump to navigation Jump to search
(Created)
 
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:




</noinclude>
</noinclude><includeonly>
<div style="float:right; margin: 0 0 10px 10px"></div>
<div style="float:{{{1|right}}}; margin: 0 10px 10px 10px">__TOC__</div>
<noinclude>
</includeonly><noinclude>
[[Category:Template:TOC]]
[[Category:Functional templates]]
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 22:07, 25 June 2017

This template adds a Table of Contents either in location, or floating somewhere, depending on variables.

Use like this for normal TOC at the specified location:

{{TOC}}

Use like this for a TOC that is floating right:

{{TOC|right}}

HOWEVER: MediaWiki ParserFunctions need to be installed before this advanced usage. At the moment, this template just adds a right-floating TOC!