Template:TOCright: Difference between revisions

From FreeCAD Documentation
(Changed category from Template/it to Template)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="clear:right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none;">__TOC__</div><noinclude>[[Category:Template]]</noinclude>
<div style="clear:right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none;">__TOC__</div><noinclude>

----

This template inserts the magic word <nowiki>__TOC__</nowiki> inside a <nowiki><div></nowiki> with <code>style="float:right"</code>.

In this way the autogenerated table of contents appears floating on the right, which is useful to save space in a documentation page with a large list of sections.

<nowiki>
{{TOCright}}</nowiki>

Some sections will be created to see this effect.

== One ==
=== Sub ===
== Two ==
== Three ==
=== Something ===
== Four ==

[[Category:Template:Effect]]
[[Category:Template]]
</noinclude>

Latest revision as of 13:18, 17 January 2020


This template inserts the magic word __TOC__ inside a <div> with style="float:right".

In this way the autogenerated table of contents appears floating on the right, which is useful to save space in a documentation page with a large list of sections.

{{TOCright}}

Some sections will be created to see this effect.

One

Sub

Two

Three

Something

Four