Template:TOClimit: Difference between revisions

m
by way of explaining why the Zukai article is mentioned
m (oops, copy-paste error from TOCfloat)
m (by way of explaining why the Zukai article is mentioned)
 
Line 3: Line 3:
On the other hand, if you simply have a lot of top-level sections (==) or you feel that the lower-level sections <u>should</u> be in the TOC, then you might want to look at the [[Template:TOCfloat|TOCfloat]] template, which will cause the article text to wrap around the TOC rather than starting after the TOC. TOCfloat also offers the same limit feature as this TOClimit template, so you can can use it to both shorten the TOC and wrap text around it.
On the other hand, if you simply have a lot of top-level sections (==) or you feel that the lower-level sections <u>should</u> be in the TOC, then you might want to look at the [[Template:TOCfloat|TOCfloat]] template, which will cause the article text to wrap around the TOC rather than starting after the TOC. TOCfloat also offers the same limit feature as this TOClimit template, so you can can use it to both shorten the TOC and wrap text around it.


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 [[wikipedia:WP:LEDE|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 [[Zukai]] article demonstrates proper layout with (1) a lede that describes the project briefly without the use of a section header, followed by (2) the TOC, followed by (3) the article's body with subheaders.
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 [[wikipedia:WP:LEDE|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 [[Zukai]] article demonstrates proper layout with (1) a lede that describes the project briefly without the use of a section header, followed by (2) the TOClimit template, followed by (3) the article's body with subheaders.


Usage:
Usage: