Help:Editing: Difference between revisions

Jump to navigation Jump to search
1,078 bytes added ,  7 February 2013
no edit summary
No edit summary
Line 281: Line 281:
Summarizing the effect of a single newline: no effect in general, but it ends a list item or indented part; thus changing some text into a list item, or indenting it, is more cumbersome if it contains newlines, they have to be removed; see also [[w:Wikipedia:Don't use line breaks]].
Summarizing the effect of a single newline: no effect in general, but it ends a list item or indented part; thus changing some text into a list item, or indenting it, is more cumbersome if it contains newlines, they have to be removed; see also [[w:Wikipedia:Don't use line breaks]].


=== Links, URLs ===
<h3> Links, URLs </h3>
 
<table border="1" cellpadding="2" cellspacing="0">
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<tr>
Line 288: Line 287:
<th>What you type</th>
<th>What you type</th>
</tr>
</tr>
<tr valign="top"><td>Sue is reading the [[video policy]].
<tr valign="top"><td>Sue is reading the <a _fcknotitle="true" href="Video policy">Video policy</a>.
*First letter of target is automatically capitalized.
<ul><li>First letter of target is automatically capitalized.
*Internally spaces are automatically represented as underscores (typing an underscore has the same effect as typing a space, but is not recommended).
</li><li>Internally spaces are automatically represented as underscores (typing an underscore has the same effect as typing a space, but is not recommended).
Thus the [[link]] above is to <nowiki>http://meta.wikipedia.org/wiki/Video_policy</nowiki>, which is the page with the name "Video policy".
</li></ul>
<p>Thus the <a _fcknotitle="true" href="Link">Link</a> above is to <span class="fck_mw_nowiki" _fck_mw_customtag="true" _fck_mw_tagname="nowiki">http://meta.wikipedia.org/wiki/Video_policy</span>, which is the page with the name "Video policy".
</p>
</td>
</td>
<td><pre><nowiki>Sue is reading the [[video policy]].</nowiki></pre>
<td><pre>Sue is reading the [[video policy]].</pre>
</td>
</td>
</tr>
</tr>
<tr><td>
<tr><td>
Link to a section on a page, e.g.
<p>Link to a section on a page, e.g.
[[List_of_cities_by_country#Morocco]]; when section editing does not work the link is treated as link to the page, i.e. to the top; this applies for:
<a _fcknotitle="true" href="List of cities by country#Morocco">List of cities by country#Morocco</a>; when section editing does not work the link is treated as link to the page, i.e. to the top; this applies for:
*links to non-existent sections
</p>
*links in redirects
<ul><li>links to non-existent sections
*interwiki links</td><td>
</li><li>links in redirects
<pre><nowiki>[[List_of_cities_by_country#Morocco]].</nowiki></pre></td>
</li><li>interwiki links</td><td>
</li></ul>
<pre>[[List_of_cities_by_country#Morocco]].</pre></td>
</tr>
</tr>
<tr valign="top"><td>Link target and link label are different: [[User:Larry Sanger|answers]].
<tr valign="top"><td>Link target and link label are different: <a href="User:Larry Sanger">answers</a>.
 
<p>(This is called a <a _fcknotitle="true" href="Piped link">Piped link</a>).
(This is called a [[piped link]]).
</p>
</td>
</td>
<td><pre><nowiki>Same target, different name:
<td><pre>Same target, different name:
[[User:Larry Sanger|answers]]</nowiki></pre>
[[User:Larry Sanger|answers]]</pre>
</td>
</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>Endings are blended into the link: [[official position]]s, [[gene]]s</td>
<td>Endings are blended into the link: <a _fcknotitle="true" href="Official position">Official position</a>s, <a _fcknotitle="true" href="Gene">Gene</a>s</td>
<td>
<td>
<pre><nowiki>Endings are blended
<pre>Endings are blended
into the link: [[official position]]s, [[gene]]s</nowiki></pre>
into the link: [[official position]]s, [[gene]]s</pre>
</td>
</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>
<td>
Automatically hide stuff in parentheses: [[kingdom (biology)|kingdom]].
<p>Automatically hide stuff in parentheses: <a href="Kingdom (biology)">kingdom</a>.
<p>Automatically hide namespace: [[Wikipedia:Village pump|Village pump]].</p>
</p>
<p>Automatically hide namespace: <a href="Wikipedia:Village pump">Village pump</a>.</p>
<p>The server fills in the part after the | when you save the page. Next time you open the edit box you will see the expanded piped link. A preview interprets the abbreviated form correctly, but does not expand it yet in the edit box. Press Save and again Edit, and you will see the expanded version. The same applies for the following feature.</p>
<p>The server fills in the part after the | when you save the page. Next time you open the edit box you will see the expanded piped link. A preview interprets the abbreviated form correctly, but does not expand it yet in the edit box. Press Save and again Edit, and you will see the expanded version. The same applies for the following feature.</p>
</td>
</td>
<td>
<td>
<pre><nowiki>Automatically hide stuff in parentheses:
<pre>Automatically hide stuff in parentheses:
[[kingdom (biology)|]]. </nowiki></pre>
[[kingdom (biology)|]]. </pre>
<pre><nowiki>Automatically hide namespace:
<pre>Automatically hide namespace:
[[Wikipedia:Village pump|]].</nowiki></pre>
[[Wikipedia:Village pump|]].</pre>
</td></tr>
</td></tr>
<tr>
<tr>
<td>When adding a comment to a Talk page,
<td>When adding a comment to a Talk page,
you should sign it. You can do this by
<p>you should sign it. You can do this by
adding three tildes for your user name:
adding three tildes for your user name:
: [[User:Karl Wick|Karl Wick]]
</p>
or four for user name plus date/time:
<dl><dd> <a href="User:Karl Wick">Karl Wick</a>
: [[User:Karl Wick|Karl Wick]] 08:10 Oct 5, 2002 (UTC)
</dd></dl>
<p>or four for user name plus date/time:
</p>
<dl><dd> <a href="User:Karl Wick">Karl Wick</a> 08:10 Oct 5, 2002 (UTC)
</dd></dl>
</td>
</td>
<td><pre><nowiki>When adding a comment to a Talk page,
<td><pre>When adding a comment to a Talk page,
you should sign it. You can do this by
you should sign it. You can do this by
adding three tildes for your user name:
adding three tildes for your user name:
: ~~~
: ~~~
or four for user name plus date/time:
or four for user name plus date/time:
: ~~~~</nowiki></pre>
: ~~~~</pre>
</td>
</td>
</tr>
</tr>
<tr valign="top"><td>[[The weather in London]] is a page that doesn't exist yet.
<tr valign="top"><td><a _fcknotitle="true" href="The weather in London">The weather in London</a> is a page that doesn't exist yet.
*You can create it by clicking on the link.
<ul><li>You can create it by clicking on the link.
*To create a new page:
</li><li>To create a new page:
*#Create a link to it on some other page.
<ol><li>Create a link to it on some other page.
*#Save that page.
</li><li>Save that page.
*#Click on the link you just made. The new page will open for editing.
</li><li>Click on the link you just made. The new page will open for editing.
*Have a look at [[MediaWiki User's Guide: Starting a new page|how to start a page]] guide and the naming conventions page for your project.
</li></ol>
</li><li>Have a look at <a href="MediaWiki User's Guide: Starting a new page">how to start a page</a> guide and the naming conventions page for your project.
</li></ul>
</td>
</td>
<td><pre><nowiki>[[The weather in London]] is a page
<td><pre>[[The weather in London]] is a page
that doesn't exist yet.</nowiki></pre>
that doesn't exist yet.</pre>
</td>
</td>
</tr>
</tr>
<tr valign="top"><td>
<tr valign="top"><td>
[[MediaWiki User's Guide: Using redirects|Redirect]] one article title to another by putting text like this in its first line.
<p><a href="MediaWiki User's Guide: Using redirects">Redirect</a> one article title to another by putting text like this in its first line.
</p>
</td>
</td>
<td><pre><nowiki>#REDIRECT [[United States]]</nowiki></pre>
<td><pre>#REDIRECT [[United States]]</pre>
</td>
</td>
</tr>
</tr>
<tr valign="top"><td>
<tr valign="top"><td>
A link to the page on the same subject in another language or, more generally, to a page on another wiki:
<p>A link to the page on the same subject in another language or, more generally, to a page on another wiki:
[[fr:Wikip�dia:Aide]].  
[[fr:Wikip�dia:Aide]].  
For more info see [[MediaWiki User's Guide: Interwiki linking]].
For more info see <a _fcknotitle="true" href="MediaWiki User's Guide: Interwiki linking">MediaWiki User's Guide: Interwiki linking</a>.
</p>
</td>
</td>
<td><pre><nowiki>[[fr:Wikip�dia:Aide]], [[:fr:Wikip�dia:Aide]]</nowiki></pre></td>
<td><pre>[[fr:Wikip�dia:Aide]], [[:fr:Wikip�dia:Aide]]</pre></td>
</tr>
</tr>
<tr>
<tr>
<td>"What links here" and "Related changes" can be linked as:<br/>
<td>"What links here" and "Related changes" can be linked as:<br />
[[Special:Whatlinkshere/Wikipedia:How to edit a page]] and
<p><a _fcknotitle="true" href="Special:Whatlinkshere/Wikipedia:How to edit a page">Special:Whatlinkshere/Wikipedia:How to edit a page</a> and
[[Special:Recentchangeslinked/Wikipedia:How to edit a page]]
<a _fcknotitle="true" href="Special:Recentchangeslinked/Wikipedia:How to edit a page">Special:Recentchangeslinked/Wikipedia:How to edit a page</a>
</p>
</td>
</td>
<td><pre><nowiki>
<td><pre>
[[Special:Whatlinkshere/
[[Special:Whatlinkshere/
Wikipedia:How to edit a page]] and
Wikipedia:How to edit a page]] and
[[Special:Recentchangeslinked/
[[Special:Recentchangeslinked/
Wikipedia:How to edit a page]]</nowiki></pre>
Wikipedia:How to edit a page]]</pre>
</td>
</td>
</tr>
</tr>
<tr valign="top"><td>External links: [http://www.nupedia.com Nupedia], [http://www.nupedia.com]
<tr valign="top"><td>External links: <a href="http://www.nupedia.com">Nupedia</a>, <a href="http://www.nupedia.com">[n]</a>
</td>
</td>
<td><pre><nowiki>External links:
<td><pre>External links:
[http://www.nupedia.com Nupedia],
[http://www.nupedia.com Nupedia],
[http://www.nupedia.com]</nowiki></pre>
[http://www.nupedia.com]</pre>
</td>
</td>
</tr>
</tr>
<tr valign="top"><td>Or just give the URL: http://www.nupedia.com.
<tr valign="top"><td>Or just give the URL: http://www.nupedia.com.
*In the [[en:URL|URL]] all symbols must be among: A-Z a-z 0-9 ._\/~%-+&amp;#?!=()@ \x80-\xFF. If a URL contains a different character it should be converted; for example, ^ has to be written %5E (to be looked up in [[en:ASCII|ASCII]]). A blank space can also be converted into an underscore.
<ul><li>In the <a href="En:URL">URL</a> all symbols must be among: A-Z a-z 0-9 ._\/~%-+&amp;#?!=()@ \x80-\xFF. If a URL contains a different character it should be converted; for example, ^ has to be written&#160;%5E (to be looked up in <a href="En:ASCII">ASCII</a>). A blank space can also be converted into an underscore.
</li></ul>
</td>
</td>
<td><pre><nowiki>Or just give the URL:
<td><pre>Or just give the URL:
http://www.nupedia.com.</nowiki></pre>
http://www.nupedia.com.</pre>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td>
To link to a bug in Mozilla's Bugzilla, use the <tt>bug</tt> template.
<p>To link to a bug in Mozilla's Bugzilla, use the <tt>bug</tt> template.
{{bug|322603}}
<span class="fck_mw_template">{{bug|322603}}</span>
</p>
</td>
</td>
<td>
<td>
<pre><nowiki>{{bug|322603}}</nowiki></pre>
<pre>{{bug|322603}}</pre>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td>
To link to books, you can use [[en:ISBN|ISBN]] links.
<p>To link to books, you can use <a href="En:ISBN">ISBN</a> links.
ISBN 0123456789X See [[Help:ISBN links]]
ISBN 0123456789X See <a _fcknotitle="true" href="Help:ISBN links">Help:ISBN links</a>
</p>
</td>
</td>
<td>
<td>
<pre><nowiki>ISBN 0123456789X</nowiki></pre>
<pre>ISBN 0123456789X</pre>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td>
Link to [[w:Request for Comments|Request for Comments]]: RFC 123 (URL specified in [[mediawiki:Rfcurl]])
<p>Link to <a href="W:Request for Comments">Request for Comments</a>: RFC 123 (URL specified in <a _fcknotitle="true" href="MediaWiki:Rfcurl">MediaWiki:Rfcurl</a>)
</p>
</td>
</td>
<td>
<td>
<pre><nowiki>RFC 123</nowiki></pre>
<pre>RFC 123</pre>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td>
To include links to non-image uploads such as sounds, use a "media" link.
<p>To include links to non-image uploads such as sounds, use a "media" link.
<br/>[[media:Sg_mrob.ogg|Sound]]
<br /><a href="Sg_mrob.ogg" class="new"  _fck_mw_filename="Sg_mrob.ogg" _fck_mw_type="media" title="Sg mrob.ogg">Sound</a>
</p>
</td>
</td>
<td>
<td>
<pre>
<pre>
<nowiki>
 
[[media:Sg_mrob.ogg|Sound]]
[[media:Sg_mrob.ogg|Sound]]
</nowiki></pre>
</pre>
</td>
</td>
</tr>
</tr>
<tr valign=top>
<tr valign="top">
<td>Use links for dates, so everyone can set their own display order. Use [[Special:Preferences]] to change your own date display setting.
<td>Use links for dates, so everyone can set their own display order. Use <a _fcknotitle="true" href="Special:Preferences">Special:Preferences</a> to change your own date display setting.
</td>
</td>
<td><pre><nowiki>[[July 20]], [[1969]] , [[20 July]] [[1969]]
<td><pre>[[July 20]], [[1969]] , [[20 July]] [[1969]]
and [[1969]]-[[07-20]]
and [[1969]]-[[07-20]]
</nowiki></pre>will all appear as [[20 July]] [[1969]] if you set your date display preference to 1 January 2001.
</pre>will all appear as <a _fcknotitle="true" href="20 July">20 July</a> <a _fcknotitle="true" href="1969">1969</a> if you set your date display preference to 1 January 2001.
</td>
</td>
</tr>
</tr>
1

edit

Navigation menu