Template:Toc: Difference between revisions

From KBwiki
Jump to navigation Jump to search
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Image:toc.gif|link={{NAMESPACE}}:{{PAGENAME}}#contents]]
[[Image:{{{2|toc.gif}}}|link={{FULLPAGENAME}}#{{{3|contents}}}]]
[[{{NAMESPACE}}:{{PAGENAME}}#contents|Table of Contents]]
[[{{FULLPAGENAME}}#{{{3|contents}}}|{{{1|Table of contents}}}]]
<noinclude>
<noinclude>
==Usage==
==Usage==
Inserts a link icon to the page's table of contents
Inserts a link icon to the current page's table of contents.
* <code>{{Google|Term1 Term2 Term3}}</code>
The position to jump to should be defined by something like
* <code>{{Google|"a phrase"}}</code>
<pre>
<div id="contents"></div>
__TOC__
</pre>
at the top of the page. The template takes three
[http://www.mediawiki.org/wiki/Help:Templates#Anonymous_parameters parameters]: the message,
the icon and the destination label. The defaults are:
 
1='''Table of Contents''', 2='''toc.gif''', 3='''contents'''
[[Category:Template|Toc]]
[[Category:Template|Toc]]
</noinclude>
</noinclude>

Latest revision as of 11:24, 10 February 2011

Toc.gif Table of contents

Usage

Inserts a link icon to the current page's table of contents. The position to jump to should be defined by something like

<div id="contents"></div>
__TOC__

at the top of the page. The template takes three parameters: the message, the icon and the destination label. The defaults are:

1=Table of Contents, 2=toc.gif, 3=contents