Difference between revisions 54872173 and 55050133 on enwiki:''See [[Wikipedia:Guide to layout]] for information about using sections to structure articles.'' ===Compact TOC=== Several kinds of compact TOC can be found at [[Wikipedia:Template messages/Compact table of contents]]. Also note that a normal compact TOC will not work on a Category page; see the same page's section on [[Wikipedia:Template messages/Compact table of contents#To use on Category pages|how to make a compact TOC on a Category page]]. ===Floating the TOC=== The TOC can, in some instances, be floated either right or left using {{tl|TOCright}} or {{tl|TOCleft}}. Before changing the default TOC to a floated TOC, consider the following guidelines: *A floating TOC should be used when it is beneficial to the layout of the article, or when the default TOC gets in the way of other elements. *If an article will be adversely affected by the change, don't float the TOC. *If floating the TOC, the TOC should be placed after the lead section for consistency. Users of [[screen reader]]s do not expect any text between the TOC and the first heading, and yhaving no text above the TOC is confusing. See [[wikipedia:accessibility #Article structure]] *When floating a TOC, check whether the page layout will be harmed if the TOC is hidden by the user. *The TOC should not be longer than necessary, whether it is floated or not. *The default TOC is placed before the first headline, but after any introductory text (unless changed by the page's editors). If the introductory summary is long enough that a typical user has to scroll down to see the top of the TOC, you may float the TOC so it appears closer to the top of the article. However, the floating TOC should in most cases follow at least the first paragraph of article text. *Floating a wide TOC will produce a narrow column of readable text for users with low resolutions. If the TOC's width exceeds 30% of the user's visible screen (about twice the size of the Wikipedia navigation bar to the left), then it is not suitable for floating. (Percentages assume a typical user setup.) If text is trapped between a floating TOC and an image, floating can be cancelled at a certain text point, see [[Wikipedia:Picture_tutorial#Forcing a break|Forcing a break]]. *If the TOC is placed in the general vicinity of other floated images or boxes, it can be floated as long as the flowing text column does not become narrower than 30% of the average user's visible screen width. *If the TOC is going to be placed in a long list page, it should be floated. *A left-floated TOC may affect bulleted or numbered lists. Where it does, float the TOC to the right, or do not float it. The {{tl|TOCright}} template was proposed for deletion in early July 2005, but there was no consensus on the matter. The archive of the discussion and voting regarding this may be seen at [[Wikipedia:Templates for deletion/TOCright]]. The Manual of Style discussion can be found [[Wikipedia_talk:Manual_of_Style--Archive_17|here]]. All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://en.wikipedia.org/w/index.php?diff=prev&oldid=55050133.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|