Template:TOCright: Difference between revisions

From FreeCAD Documentation
(This template inserts the magic word __TOC__ inside a <div> with float:right. Category:Template:Effect)
(Created sections to demonstrate the use)
Line 3: Line 3:
----
----


This template inserts the magic word <nowiki>__TOC__</nowiki> inside a <nowiki><div></nowiki> with <nowiki>float:right</nowiki>.
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.
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:Effect]]

Revision as of 01:39, 8 December 2018


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