Template:TOCright: Difference between revisions
No edit summary |
mNo edit summary |
||
(9 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<div style="clear:right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none;"> |
<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.