![]() It's important to note that most languages don't even have any style guide for writing in that language (and many languages don't have a written form entirely), so people usually use the most common style based on existing written convention (not prescribed, but simply 'standard' due to popular usage), which makes the written use of many languages have a sort of 'fluid' punctuation, spelling/orthography and even grammar. The different w:style guides of each language sometimes recommend different typographic conventions to follow. ĭifferent languages have different ways of expressing TOCs and how its (sub)section numbering is done.Īlso, the different style guides of many languages differ in what style of TOC and TOC (sub)section numbering scheme they recommend for writers to use. It is also possible to add numbering to headings themselves using JavaScript, as explained at Snippets/Auto-number headings. It is possible to suppress the auto-generated section numbers in the TOC, if the proper class exists locally at MediaWiki:Common.css, defined as.This behavior of the table of contents can be customised in several ways: The section headings themselves aren't numbered. See Template:TOC and the relevant rules at Template:TOC/limit-styles.css for an example implementation.īy default, the TOC automatically numbers the sections. To customize this for individual pages, the TOC can be enclosed in an element with class toclimit-, if the appropriate CSS rules are defined in the pages CSS. The maximum level of headings displayed on the TOC is defined in $wgMaxTocLevel. This seems to be available in some Wikimedia-projects only, like w:template:TOC left.Īn extenuating circumstance may require the width of a TOC width to be adjusted as a percentage of a page. ![]() If you have three or fewer headings but want to have a TOC, write either the magic word _FORCETOC_ anywhere on the page to make it display at the default location, or _TOC_ at the preferred position. To place it elsewhere, use the magic word _TOC_ at the preferred position on the page.Ī skin may remove or move the table of contents to another section of the page using Extension:DeToc. The default position of the TOC is directly above the first section heading. ![]() Using certain templates, such as Template:Compact ToC (found on English Wikipedia), will replace the regular Table of Contents functionality. Place _NOTOC_ anywhere you want on the page to hide its TOC. The table of contents is not generated for section headings that are found within html tags ( Manual:$wgRawHtml ). Typically, the table reproduces and numbers these headings.Īll HTML in the headings is stripped in the TOC, except the following tags: īy default, a table of contents (sometimes abbreviated to TOC) is automatically generated on a page when more than three section headings are used. For the contents page of the MediaWiki technical manual, see Manual:Contents. This page is about tables of contents in wiki pages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |