Template:TOCright: Difference between revisions
(This template inserts the magic word __TOC__ inside a <div> with float:right. Category:Template:Effect) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
---- |
---- |
||
This template inserts the magic word <nowiki>__TOC__</nowiki> inside a <nowiki><div></nowiki> with < |
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]] |
||
[[Category:Template]] |
|||
</noinclude> |
</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.