Help:Wikitext: Difference between revisions
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
Line 15:
===Sections===
Sections in a page will follow the page's [[wikipedia:WP:LEAD|lead/introduction]], and under certain conditions, the [[wikipedia:WP:TOC|table of contents]].
====Section headings====
Line 31:
====Horizontal rule====
{{see|wikipedia:WP:LINE}}
The horizontal rule represents a paragraph-level thematic break. Do not use in article content, as rules are used only after main sections, and this is automatic.
Line 44:
====Table of contents====
{{see|wikipedia:WP:TOC}}
When a page has at least four headings, a table of contents (TOC) will automatically appear after the lead and before the first heading. The TOC can be controlled by magic words or templates:
Line 87:
===Indent text===
{{see|wikipedia:WP:INDENT}}
Indentation is most commonly used on talk pages.
Line 871:
* The part after the hash sign (#) must match a [[Section_editing#Creation_and_numbering_of_sections|section heading]] on the page. Matches must be exact in terms of spelling, case, and punctuation. Links to non-existent sections are not broken; they are treated as links to the beginning of the page.
* Include "| link title" to create a stylish ([[wikipedia:WP:Piping|piped]]) link title.
* If sections have the same title, add a number to link to any but the first. [[#Example section 3]] goes to the third section named "Example section". You can use the pipe and retype the section title to display the text without the # symbol.
Line 1,050:
===Categories===
* To put an article in a [[Wikipedia:Categorization|category]], place a link like <code><nowiki>[[Category:Example]]</nowiki></code> into the article. As with interlanguage links, placing these links at [[wikipedia:WP:FOOTERS|the end of the article]] is recommended.
* To link to a category page without putting the article into the category, use a colon prefix (":Category") in the link.
Line 1,296:
See the Wikipedia's [[Wikipedia:Image use policy|image use policy]] for the policy used on Wikipedia.
For further help on images, including some more versatile abilities, see the [[wikipedia:WP:PIC|picture tutorial]] and [[Wikipedia:Extended image syntax|extended image syntax]].
{| class="wikitable"
Line 1,381:
|
* Captions are only displayed when the thumb or frame attributes are present
* The [[wikipedia:WP:PIC|picture tutorial]] explains more options.
|- style="vertical-align:top;"
Line 1,391:
|
* {{anchor|px tag}}The [[wikipedia:WP:PIC|picture tutorial]] explains more options.
* This should be used very sparingly, thumb images are always of the same width.
* There is an [[#upright tag|''upright'' attribute]] that can be used to display tall images. These tags are optimised for both laptop and mobile phone screens.
Line 1,530:
'''[[Help:Template|Templates]]''' are segments of wiki markup that are meant to be copied automatically ("transcluded") into a page.
They are specified by putting the template's name in <nowiki>{{double braces}}</nowiki>. Most templates are pages in the [[wikipedia:WP:Template namespace|Template namespace]], but it is possible to transclude mainspace pages (articles) by using <nowiki>{{:colon and double braces}}</nowiki>.
There are three pairs of [[html element|tags]] that can be used in [[wikitext]] to control how transclusion affects parts of a template or article.
Line 1,900:
===Nowiki===
{{anchor|NOWIKI}}
{{redirect|wikipedia:WP:NOWIKI|the essay about the name "Wiki"|Wikipedia:Don't abbreviate "Wikipedia" as "Wiki"!}}
{{shortcut|H:NOWIKI|wikipedia:WP:NOWIKI}}
In order for the software to interpret wiki markup, its parser first scans the page. When it sees its nowiki tags
Line 1,943:
The rest of the section consists of simple, live examples showing how a single nowiki tag escapes entire linkage structures, beyond [[ wikilink <nowiki />]] and {{ template <nowiki />}}:
:[[ ''[[
:{{ ''pagename'' <nowiki />| ''parameter'' }}
:[[ ''fullpagename'' | {{ ''pagename'' }<nowiki />} ]<nowiki />]
Line 1,956:
<pre>
[[
[<nowiki />[
[[<nowiki />
[[
[[
<poem>
:[[
:[<nowiki />[
:[[<nowiki />
:[[
:[[
</poem>
Line 1,973:
<pre>
[[
[[
[[
[[
<poem>
:[[
:[[
:[[
:[[
</poem>
Line 1,988:
<pre>
[[
[[
<nowiki>[[
<poem>
:[[
:[[
:<nowiki>[[
</poem>
Line 2,116:
===Pre===
{{shortcut|wikipedia:WP:PRE}}
{{tag|pre|o}} is a parser tag that emulates the HTML {{tag|pre|o}} tag. It defines preformatted text that is displayed in a fixed-width font and is enclosed in a dashed box. HTML and wiki markups are escaped and spaces and line breaks are preserved, but HTML entities are parsed.
| |||