Changes

Jump to navigation Jump to search
25 bytes removed ,  14:37, 27 July 2010
update for nonum TOC default
Line 1: Line 1: −
<noinclude>{{TOCright|num=nonumtoc}}
+
<noinclude>{{TOCright}}
 
[[Category:TOC templates|{{PAGENAME}}]]
 
[[Category:TOC templates|{{PAGENAME}}]]
 
</noinclude>{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{1|auto}}};" class="toclimit-{{#expr: 1 + {{{show|11}}} }} {{{num|}}}"
 
</noinclude>{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{1|auto}}};" class="toclimit-{{#expr: 1 + {{{show|11}}} }} {{{num|}}}"
Line 8: Line 8:  
This template can be used to wrap page text around a right-side table of contents box and, optionally, show only 1 to 10 of the possible indentation levels, and eliminate the heading numbering. An alternate template, [[Template:TOCleft]], is available if one wants to place the table of contents box on the left side of the page.
 
This template can be used to wrap page text around a right-side table of contents box and, optionally, show only 1 to 10 of the possible indentation levels, and eliminate the heading numbering. An alternate template, [[Template:TOCleft]], is available if one wants to place the table of contents box on the left side of the page.
   −
'''Note:''' The optional features work with the [http://wiki.sugarlabs.org/index.php?title=Template:TOCright&useskin=monobook MonoBook skin], but not currently with the default shikiwiki skin.
+
'''Note:''' The optional features work with the [http://wiki.sugarlabs.org/index.php?title=Template:TOCright&useskin=monobook MonoBook skin], but not currently with the default ShikiWiki skin.
 
===Common usage===
 
===Common usage===
 
* <code><nowiki>{{TOCright}}</nowiki></code> - Entered on the page where you want the top of the table of contents box to appear.
 
* <code><nowiki>{{TOCright}}</nowiki></code> - Entered on the page where you want the top of the table of contents box to appear.
Line 22: Line 22:  
*: For instance, using <tt>show=1</tt> will show only the left-most headings and exclude any headings that would be indented 1 or more levels; <tt>show=2</tt> will show 2 indentation levels in the table of contents as calculated according to the indentation rules above.
 
*: For instance, using <tt>show=1</tt> will show only the left-most headings and exclude any headings that would be indented 1 or more levels; <tt>show=2</tt> will show 2 indentation levels in the table of contents as calculated according to the indentation rules above.
 
*:: (Headings with low priority encodings, like <tt>=====H5=====</tt> may appear at shallow indentations when entered first on the page or above higher priority headings. (The styles of the headings, as presented in the page body, are unaffected by the table of contents indentation logic.)
 
*:: (Headings with low priority encodings, like <tt>=====H5=====</tt> may appear at shallow indentations when entered first on the page or above higher priority headings. (The styles of the headings, as presented in the page body, are unaffected by the table of contents indentation logic.)
===Show headings without numbering===
+
===Show headings with numbering===
* <code><nowiki>{{TOCright|num=nonumtoc}}</nowiki></code> - Removes the numbers prefixing the section heading titles.
+
* <code><nowiki>{{TOCright|num=numtoc}}</nowiki></code> - Adds numbers prefixing the section heading titles.
 
*: The <tt>show</tt> and <tt>num</tt> parameters are implemented through [[wikipedia:Cascading Style Sheets|CSS]] classes in the [[MediaWiki:Common.css]].
 
*: The <tt>show</tt> and <tt>num</tt> parameters are implemented through [[wikipedia:Cascading Style Sheets|CSS]] classes in the [[MediaWiki:Common.css]].
 
<!--
 
<!--

Navigation menu