Help:Section: Difference between revisions

Content deleted Content added
remove navbox
update link
Line 27:
In a page calling a template with sections, the sections in the template are numbered according to their position in the rendered page, e.g. if the template tag is in the third section, then the first section of the template is numbered four. Any text in the template before its first section shows up as part of the section with the template tag, and any text after the tag before a new heading shows up as part of the last section of the template. This may be done deliberately, but can usually better be avoided (see also below).
 
In MediaWiki, a section header in wikitext is [httphttps://svnphabricator.wikimedia.org/viewvcsource/mediawiki/trunkbrowse/phase3master/includes/parser/Parser.php?view=markup defined by] a regular expression, <code>/(^={1,6}.*?={1,6}\s*?$)/m</code> ("m" refers to multi-line mode).
 
==Table of contents (TOC)==