Difference between revisions of "Template:TOC"

From Hökaland Wiki
Jump to navigation Jump to search
Line 14: Line 14:


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

Revision as of 18:12, 26 July 2015

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!