Content deleted Content added
No edit summary |
m Reverted edits by 2C0F:FC89:809F:FD4F:1:0:6E41:E05E (talk) to last version by Waddie96 Tags: Rollback Disambiguation links added |
||
(22 intermediate revisions by 6 users not shown) | |||
Line 1:
{{about|the appearance of blank space on an article|the Manual of Style section on using line breaks in an article|MOS:LINEBREAKS}}
[[File:WhiteSpace.jpg|right|thumb|350px|
{{shortcut|WP:WHITE}}
'''Whitespace''' refers to any [[Blank space (punctuation)|blank space]] that appears on the published version of a Wikipedia page across all [[Wikipedia:Namespaces|namespaces]] that is free of [[special characters]], [[Wikipedia:Templates|templates]], [[Wikipedia:Multimedia|media]], or other [[HTML elements]]. In other words, it appears as empty, ''white'' space.
Whitespace is not always desirable. It can give the page an untidy appearance and make the article look incomplete. But it cannot always be avoided, and there are times, when used sparingly, whitespace can enhance readability and visual balance, helping readers to better navigate and absorb the content on the page.
==Causes of whitespace==
===Table of contents===
On pages with multiple headings, a [[WP:TOC|table of contents]] listing the headings is automatically generated. When this occurs, the table of contents box will appear on the left side of the page between the lead section and the first heading. There will be no text to the right of the table of contents, though an image or a vertical template, such as an [[WP:INFOBOX|infobox]], will appear in the space to the right if formatting causes it to require that space. Still, no text will appear in the space in between; it'll be white (as you notice, there is some white space between the TOC box and the image above).
There are various ways to modify the appearing of the table of contents. Entering the templates {{Tlx|TOC left}} or {{Tlx|TOC right}} at the top of the page will produce a table of contents to the left or right that does share its lines with some text. The [[Help:Magic words|magic word]] <nowiki>__NOTOC__</nowiki> will cause the table of contents to be altogether absent, which for some pages may be necessary.
It is also possible to produce your own table of contents as follows:<br />
----
<syntaxhighlight lang="wikitext">
{| id="toc" class="toc" summary="Contents"
! {{MediaWiki:Toc}}
Line 25 ⟶ 23:
__NOTOC__
|}
</syntaxhighlight>
----
|