Help:Wikitext: Difference between revisions

Content deleted Content added
Line 740:
 
==Links and URLs==
{{main|Wikipedia:Help:Link}}
 
===Free links===
Line 751:
 
* Internally, the first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link has the same effect as typing a space, but is not recommended).
* Thus the link hereafter is to the Web address <code>en.wikipedia.org/wiki/Public_transport</code>, which is the Wikipedia article with the name "Public transport". See also [[Wikipedia:Help:Link#Conversion to canonical form|Canonicalization]].
* [[wikipedia:Intentionally permanent red link|A red link]] is a page that doesn't exist yet; it can be created by clicking on the link.
* [[wikipedia:Help:Self link|A link to its own page]] will appear only as bold text.
Line 757:
{{markup
|<nowiki>London has [[public transport]].</nowiki>
|London has [[Wikipedia:public transport]].
 
|<nowiki>Link to this article: "[[Help:Wikitext]]" will appear only as bold text.</nowiki>
Line 776:
<code><nowiki>New York also has [[public transport|public transportation]].</nowiki></code>
|
New York also has [[Wikipedia:public transport|public transportation]].
|}
 
Line 794:
<code><nowiki>[[kingdom (biology)|]]</nowiki></code>
|
[[Wikipedia:kingdom (biology)|kingdom]]
|-
| ''Automatically hide the comma and following text''
| <code><nowiki>[[Seattle, Washington|]]</nowiki></code>
| [[Wikipedia:Seattle, Washington|Seattle]]
|-
|
Line 805:
<code><nowiki>[[Wikipedia:Village pump|]]</nowiki></code>
|
[[Wikipedia:Wikipedia:Village pump|Village pump]]
|-
|
Line 837:
|
<code><nowiki>San Francisco also has [[public transport]]ation. Examples include [[bus]]es, [[taxicab]]s, and [[tram]]s.</nowiki></code>
| San Francisco also has [[Wikipedia:public transport]]ation. Examples include [[Wikipedia:bus]]es, [[Wikipedia:taxicab]]s, and [[Wikipedia:tram]]s.
|-
| <code><nowiki>A [[micro-]]second</nowiki></code>
| A [[Wikipedia:micro-]]second
|-
|
Line 847:
<code><nowiki>A [[micro-]]<nowiki />second.</nowiki></code>
|
A [[Wikipedia:micro-]]<nowiki />second
|}
 
====Link to a section of a page====
 
* The part after the hash sign (#) must match a [[Wikipedia: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 899:
 
===Redirects===
{{main|Wikipedia:Help:Redirect}}
 
* [[Wikipedia:Redirect|Redirect]] one article title to another by placing a directive like the one shown to the right on the ''first'' line of the article (such as at a page titled "[[Wikipedia:US|US]]").
* It is possible to redirect to a section. For example, a redirect to [[United States#History]] will redirect to the History section of the [[Wikipedia:United States|United States]] page, if it exists.
 
{| class="wikitable" border=1