19,344
edits
(improvements to documentation) |
m (by way of explaining why the Daodan DLL article is mentioned) |
||
Line 3: | Line 3: | ||
On the other hand, see the [[Template:TOClimit|TOClimit]] template if you just want to omit lower-level section headers from the TOC, but note that this TOCfloat template also offers the optional use of a "limit" parameter which accomplishes the same thing, allowing a combined approach to shortening the TOC. | On the other hand, see the [[Template:TOClimit|TOClimit]] template if you just want to omit lower-level section headers from the TOC, but note that this TOCfloat template also offers the optional use of a "limit" parameter which accomplishes the same thing, allowing a combined approach to shortening the TOC. | ||
It's important to have a grasp of proper wiki article layout, because this template includes the magic word <nowiki>__TOC__</nowiki>, which determines the TOC's position within the article. Thus, in order to preserve the standard layout, this means that <u>you have to place the template markup between the lede text (if there is any) and the first subheader</u> in the article. You are also expected to avoid the use of level 1 headers (=) when writing articles. The Daodan article above demonstrates proper layout with (1) a lede that describes the DLL briefly without the use of a section header, followed by (2) the | It's important to have a grasp of proper wiki article layout, because this template includes the magic word <nowiki>__TOC__</nowiki>, which determines the TOC's position within the article. Thus, in order to preserve the standard layout, this means that <u>you have to place the template markup between the lede text (if there is any) and the first subheader</u> in the article. You are also expected to avoid the use of level 1 headers (=) when writing articles. The Daodan article above demonstrates proper layout with (1) a lede that describes the DLL briefly without the use of a section header, followed by (2) the TOCfloat template, followed by (3) the article's body with subheaders. The fact that the body is now wrapping around the TOC does not change the order of layout elements; it merely improves its appearance. | ||
Optional parameters: | Optional parameters: |