What it looks like
|
What you type
|
London has public transport.
- A link to another Wikipedia article.
- 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 above is to the URL en.wikipedia.org/wiki/Public_transport, which is the Wikipedia article with the name "Public transport". See also Wikipedia:Canonicalization.
|
London has [[public transport]].
|
San Francisco also has
public transportation.
- Same target, different name.
- This is a piped link.
- The "piped" text must be placed first, then the text that will be displayed second.
|
San Francisco also has
[[public transport|
public transportation]].
|
San Francisco also has
public transportation.
Examples include buses, taxis
and streetcars.
- Endings are blended into the link.
- Preferred style is to use this instead of a piped link, if possible.
- Blending can be suppressed by using <nowiki></nowiki> tags, which may be desirable in some instances. Example: a microsecond.
|
San Francisco also has
[[public transport]]ation.
Examples include [[bus]]es,
[[taxi]]s, and [[streetcar]]s.
[[micro]]<nowiki>second
</nowiki>
|
See the Wikipedia:Manual of Style.
|
See the
[[Wikipedia:Manual of Style]].
|
Wikipedia:Manual of Style#Italics is a link to a section within another page.
#Links and URLs is a link to another section on the current page.
#example is a link to an anchor that was created using an id attribute
- The part after the number sign (#) must match a 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 top of the page.
- Identifiers may be created by attaching an
id="..."> attribute to almost any HTML element. This doesn't work with legacy browsers.
- Include "| Link title" to create a stylish link-title.
|
[[Wikipedia:Manual of Style#Italics]]
is a link to a section within another
page.
[[#Links and URLs]] is a link
to another section on the
current page.
[[#example]] is a link to an
anchor that was created
using
<div id="example">an id
attribute
</div>
|
Automatically hide stuff in parentheses:
kingdom.
Automatically hide namespace:
Village Pump.
Or both:
Manual of Style
But not:
[[Wikipedia:Manual of Style#Links|]]
- The server fills in the part after the pipe character (|) when you save the page. The next time you open the edit box you will see the expanded piped link. When previewing your edits, you will not see the expanded form until you press Save and Edit again. The same applies to links to sections within the same page (see previous entry).
|
Automatically hide stuff
in parentheses:
[[kingdom (biology)|]].
Automatically hide namespace:
[[Wikipedia:Village Pump|]].
Or both:
[[Wikipedia:
Manual of Style (headings)|]]
But not:
[[Wikipedia:
Manual of Style#Links|]]
See Wikipedia:Pipe trick for details.
|
Nondivisibility of labor is a page
that does not exist yet.
- You can create it by clicking on the link.
- To create a new page:
- Create a link to it on some other (related) page.
- Save that page.
- Click on the link you just made. The new page will open for editing.
- For more information, see How to start a page and check out Wikipedia's naming conventions.
- Please do not create a new article without linking to it from at least one other article.
|
[[Gunchei]]
is a page
that does not exist yet.
|
Wikipedia:How to edit a page
is this page.
- Self links appear as bold text when the article is viewed.
- Do not use this technique to make the article name bold in the first paragraph; see the Manual of Style.
|
[[Wikipedia:
How to edit a page]]
is this page.
|
When adding a comment to a Talk page,
you should sign it by adding
three tildes to add your user name:
- Ben Brockert
or four to add user name plus date/time:
- Ben Brockert 00:18, Nov 19, 2004 (UTC)
Five tildes gives the date/time alone:
- 00:18, Nov 19, 2004 (UTC)
- The first two both provide a link to your user page.
|
When adding a comment
to a Talk page,you should
sign it by adding three tildes
to add your user name:
: ~~~
or four for user name plus
date/time:
: ~~~~
Five tildes gives the date/time
alone:
: ~~~~~
|
- 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 "USA").
- Note that, while it is possible to link to a section, it is not possible to redirect to a section. For example, "#REDIRECT [[United States#History]]" will redirect to the United States page, but not to any particular section on it. This feature may be implemented in the future - see feature request 218 (it appears as a bug).
|
#REDIRECT [[United States]]
|
- Link to a page on the same subject in another language by using a link of the form: [[language code:Title]].
- It does not matter where you put these links while editing as they will always show up in the same place when you save the page, but placement at the end of the edit box is recommended.
- Please see Wikipedia:Interlanguage links and the list of languages and codes.
|
[[fr:Wikipédia:Aide]]
|
What links here and Related changes
pages can be linked as:
Special:Whatlinkshere/Wikipedia:How to edit a page
and
Special:Recentchangeslinked/Wikipedia:How to edit a page
|
'''What links here''' and
'''Related changes'''
pages can be linked as:
[[Special:Whatlinkshere/
Wikipedia:How to edit a page]]
and
[[Special:Recentchangeslinked/
Wikipedia:How to edit a page]]
|
A user's Contributions page can be linked as:
Special:Contributions/UserName
or
Special:Contributions/192.0.2.0
|
A user's '''Contributions''' page
can be linked as:
[[Special:Contributions/UserName]]
or
[[Special:Contributions/192.0.2.0]]
|
- To put an article in a Wikipedia:Category, place a link like the one to the right anywhere in the article. As with interlanguage links, it does not matter where you put these links while editing as they will always show up in the same place when you save the page, but placement at the end of the edit box is recommended.
|
[[Category:Character sets]]
|
- To link to a Wikipedia:Category page without putting the article into the category, use an initial colon (:) in the link.
|
[[:Category:Character sets]]
|
Three ways to link to external (non-wiki) sources:
- Bare URL: http://www.nupedia.com/ (bad style)
- Unnamed link: [1] (only used within article body for footnotes)
- Named link: Nupedia
- See MetaWikiPedia:Interwiki_map for the list of shortcuts.
- Square brackets indicate an external link. Note the use of a space (not a pipe) to separate the URL from the link text in the "named" version.
- In the URL, all symbols must be among:
A-Z a-z 0-9 . _ \ / ~ % - + & # ? ! = ( ) @
- If a URL contains a character not in this list, it should be encoded by using a percent sign (%) followed by the hex code of the character, which can be found in the table of ASCII printable characters. For example, the caret character (^) would be encoded in a URL as %5E.
- If the "named" version contains a closing square bracket "]", then you must use the HTML special character syntax, i.e. ] otherwise the MediaWiki software will prematurely interpret this as the end of the external link.
- There is a class that can be used to remove the arrow image from the external link. It is used in Template:Ref to stop the URL from expanding during printing. It should never be used in the main body of an article. However, there is an exception: wikilinks in Image markup. An example of the markup is as follows:
- Markup: <span
class="plainlinksneverexpand">
[http://www.sysinternals.com/
ntw2k/freeware/winobj.shtml WinObj]</span>
- Display: WinObj
- See Wikipedia:External links for style issues.
|
Three ways to link to
external (non-wiki) sources:
# Bare URL:
http://www.nupedia.com/
(bad style)
# Unnamed link:
[http://www.nupedia.com/]
(only used within article
body for footnotes)
# Named link:
[http://www.nupedia.com Nupedia]
|
Linking to other wikis:
- Interwiki link: Wiktionary:Hello
- Interwiki link without prefix: Hello
- Named interwiki link: Wiktionary definition of 'Hello'
Linking to another language's wiktionary:
- Wiktionary:fr:bonjour
- bonjour
- fr:bonjour
|
Linking to other wikis:
# [[Interwiki]] link:
[[Wiktionary:Hello]]
# Interwiki link without prefix:
[[Wiktionary:Hello|]]
# Named interwiki link:
[[Wiktionary:Hello|
Wiktionary definition
of 'Hello']]
Linking to another
language's wiktionary:
# [[Wiktionary:fr:bonjour]]
# [[Wiktionary:fr:bonjour|bonjour]]
# [[Wiktionary:fr:bonjour|]]
|
ISBN 012345678X
ISBN 0-12-345678-X
- Link to books using their ISBN. This is preferred to linking to a specific online bookstore, because it gives the reader a choice of vendors. However, if one bookstore or online service provides additional free information, such as table of contents or excerpts from the text, then a link to that source will aid the user and is recommended.
- ISBN links do not need any extra markup, provided you use one of the indicated formats.
|
ISBN 012345678X
ISBN 0-12-345678-X
|
Text mentioning RFC 4321 anywhere
|
Text mentioning RFC 4321
anywhere
|
Date formats:
- July 20, 1969
- 20 July 1969
- 1969-07-20
- 1969-07-20
- Link dates in one of the above formats, so that everyone can set their own display order. If logged in, you can use Special:Preferences to change your own date display setting.
- All of the above dates will appear as "20 July 1969" if you set your date display preference to "15 January 2001", but as "July 20, 1969" if you set it to "January 15, 2001", or as "1969-07-20" if you set it to "2001-01-15".
|
Date formats:
# [[July 20]], [[1969]]
# [[20 July]] [[1969]]
# [[1969]]-[[07-20]]
# [[1969-07-20]]
|
Special WP:AO links like this year
needing future maintenance
|
Special [[WP:AO]] links
like [[As of 2006|this year]]
needing future maintenance
|
Sound
- To include links to non-image uploads such as sounds, use a "media" link. For images, see next section.
Some uploaded sounds are listed at Wikipedia:Sound.
|
[[media:Sg_mrob.ogg|Sound]]
|