Template:TOC top/doc

From OpenStreetMap Wiki
Jump to: navigation, search

This is used to create custom table of contents templates such as {{list TOC}}. It replaces and suppresses the ToC that the wiki software would automatically generate.

Usage

Please note that this is solely for ease of maintaining existing templates. Please do not use this to write new templates: instead, browse through Category:Wikipedia table of contents templates and use an existing template. This code is one of the final pieces in cleaning up years of redundant and overlapping code in this area.

Parameters (optional)

title
The title to use for this ToC element. The default is Contents.
align
Sets the CSS float and clear properties, which forces this float underneath the side specified with this attribute. So, align=right will place the element after all the right floating elements before it. Options are left, right, center, or none (default).
clear
Overrides the default CSS clear property set by the align parameter, which is not typically needed. Options are left, right, both, or none. The defaults are left when |align=left, right when |align=right, none when |align=center, and left when |align=none. Use |clear=none to allow other floating elements to float next to the table of contents, and |clear=both to force the table of contents to have nothing next to it.
primary
Set this to false if this ToC is not used as the primary ToC of a page. This makes sure that the title of this ToC does not show up in the primary ToC. A side effect of this is the disappearing of the show/hide toggle.

See also
http://wiki.openstreetmap.org/wiki/Template:TOC_top/doc
wiki.openstreetmap.org
crawl=CC-MAIN-2016-44
19650
application/http; msgtype=response
sha1:BM5VF532S7Y4T6VGKRGQ3NOPRZ7YXC44
<urn:uuid:4a4ca305-b8a2-4aa8-85f0-82782bb01669>
2016-10-21T20:21:32Z
193.63.75.106
sha1:3T37WIEVUTKN5IMP2YC35GSZANJDGJ3S
<urn:uuid:67eff6d9-c726-44da-b3f0-214f58e69a82>
http://wiki.openstreetmap.org/wiki/Template:TOC_top/doc
response
<urn:uuid:7ffcb54a-63d6-45a2-98c4-232798c88de1>
robots: classic
hostname: ip-10-171-6-4.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-44
operator: CommonCrawl Admin
description: Wide crawl of the web for October 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf