Help:Editing: Difference between revisions

Lemming (talk | contribs)
No edit summary
 
Galadrix (talk | contribs)
Massive cleanup of broken links. I'm not done with this one though.
Line 1: Line 1:
Hey look, like, the links here like, won't like, work, and stuff. Yah.
==General==
==General==
To edit a [[MediaWiki]] page, click on the "'''Edit this page'''" (or just "'''edit'''") link at one of its edges. This will bring you to a page with a text box containing the ''[[wikitext]]'': the editable source code from which the server produces the webpage. For the special codes, see below.
To edit a page, click on the "'''Edit this page'''" (or just "'''edit'''") link at one of its edges. This will bring you to a page with a text box containing the '''wikitext''': the editable source code from which the server produces the webpage. For the special codes, see below.


After adding to or changing the wikitext it is useful to press "Preview", which produces the corresponding webpage in your browser but does not make it publicly available yet (not until you press "Save"). Errors in formatting, links, tables, etc., are often much easier to discover from the rendered page than from the raw wikitext.  
After adding to or changing the wikitext it is useful to press "Preview", which produces the corresponding webpage in your browser but does not make it publicly available yet (not until you press "Save"). Errors in formatting, links, tables, etc., are often much easier to discover from the rendered page than from the raw wikitext.  


If you are not satisfied you can make more changes and preview the page as many times as necessary. Then write a short [[Help:Edit summary|edit summary]] in the small text field below the edit-box and when finished press "Save". Depending on your system, pressing the "Enter" key while the edit box is not active (i.e., there is no typing cursor in it) may have the same effect as pressing "Save".  
If you are not satisfied you can make more changes and preview the page as many times as necessary. Then write a short summary in the small text field below the edit-box and when finished press "Save". Depending on your system, pressing the "Enter" key while the edit box is not active (i.e., there is no typing cursor in it) may have the same effect as pressing "Save".  


You may find it more convenient to copy and paste the text first into your favorite [[en:text editor|text editor]], edit and spell check it there, and then paste it back into your [[en:web browser|web browser]] to preview. This way, you can also keep a local backup copy of the pages you have edited. It also allows you to make changes offline, but before you submit your changes, ''please make sure nobody else has edited the page'' since you saved your local copy (by checking the [[Help:page history|page history]]), otherwise you may accidently revert someone else's edits. If someone ''has'' edited it since you copied the page, you'll have to merge their edits into your new version (you can find their specific edits by using the "[[Help:diff|diff]]" feature of the page history). These issues are handled automatically by the Mediawiki software if you edit the page online, retrieving and submitting the wikicode in the same text box.
You may find it more convenient to copy and paste the text first into your favorite text editor, edit and spell check it there, and then paste it back into your web browser to preview. This way, you can also keep a local backup copy of the pages you have edited. It also allows you to make changes offline, but before you submit your changes, ''please make sure nobody else has edited the page'' since you saved your local copy (by checking the page history), otherwise you may accidently revert someone else's edits. If someone ''has'' edited it since you copied the page, you'll have to merge their edits into your new version. These issues are handled automatically by the Mediawiki software if you edit the page online, retrieving and submitting the wikicode in the same text box.
 
See also [[MediaWiki architecture]].


== Dummy edit and null edit==
== Dummy edit and null edit==
Line 15: Line 12:
If the wikitext is not changed no edit will be recorded and the edit summary is discarded.
If the wikitext is not changed no edit will be recorded and the edit summary is discarded.


A '''dummy edit''' is a change in wikitext that has no effect on the rendered page, such as changing the number of [[w:newline|newline]]s at some position from 0 to 1 or from 2 to 3 or conversely (changing from 1 to 2 makes a difference, see below). This allows an edit summary, and is useful for correcting a previous edit summary, or an accidental marking of a previous edit as "minor" (see below).
A '''dummy edit''' is a change in wikitext that has no effect on the rendered page, such as changing the number of '''newline'''s at some position from 0 to 1 or from 2 to 3 or conversely (changing from 1 to 2 makes a difference, see below). This allows an edit summary, and is useful for correcting a previous edit summary, or an accidental marking of a previous edit as "minor" (see below).


To refresh the cache of some item in the database a lesser kind of dummy edit, called a '''null edit''', may be sufficient: one that does not cause any change in the wikitext, and no entry in the history, in Recent Changes, etc.: this can be done by opening the edit window and saving; a section edit is sufficient. See also  [[Help:Category#A_category_tag_in_a_template.3B_caching_problem|A category tag in a template; caching problem]].
To refresh the cache of some item in the database a lesser kind of dummy edit, called a '''null edit''', may be sufficient: one that does not cause any change in the wikitext, and no entry in the history, in Recent Changes, etc.: this can be done by opening the edit window and saving; a section edit is sufficient.


== Minor edits ==
== Minor edits ==
When editing a page, a [[MediaWiki User's Guide: Logging-in|logged-in]] user has the option of flagging the edit as a "minor edit". This feature is important, because users can choose to ''hide'' minor edits in their view of the [[MediaWiki User's Guide: The Recent Changes page | Recent Changes page]], to keep the volume of edits down to a manageable level.
When editing a page, a logged-in user has the option of flagging the edit as a "minor edit". This feature is important, because users can choose to ''hide'' minor edits in their view of the [[Recent Changes|Special:Recentchanges]] page, to keep the volume of edits down to a manageable level.


When to use this is somewhat a matter of personal preference. The rule of thumb is that an edit of a page that consists of spelling corrections, formatting, and minor rearranging of text should be flagged as a "minor edit".  A major edit is basically something that makes the entry worth revisiting for somebody who wants to watch the article rather closely. So any "real" change, even if it is a single word, should be flagged as a "major edit".  
When to use this is somewhat a matter of personal preference. The rule of thumb is that an edit of a page that consists of spelling corrections, formatting, and minor rearranging of text should be flagged as a "minor edit".  A major edit is basically something that makes the entry worth revisiting for somebody who wants to watch the article rather closely. So any "real" change, even if it is a single word, should be flagged as a "major edit".  
Line 73: Line 70:
<tr>
<tr>
<td>
<td>
[[en:newline|Newline]]:
Newline:


A single
A single
Line 191: Line 188:
:A colon indents a line or paragraph.
:A colon indents a line or paragraph.
A manual newline starts a new paragraph.
A manual newline starts a new paragraph.
* This is primarily for displayed material, but is also used for discussion on [[Help:Talk page|Talk page]]s.
* This is primarily for displayed material, but is also used for discussion on Talk pages.
</td>
</td>
<td><pre><nowiki>: A colon indents a line or paragraph.
<td><pre><nowiki>: A colon indents a line or paragraph.
Line 214: Line 211:


WARNING If you make it wide,
WARNING If you make it wide,
you [[en:page widening|force the whole page to be wide]] and
you force the whole page to be wide and
hence less readable. Never start ordinary lines with spaces.<br>
hence less readable. Never start ordinary lines with spaces.<br>
<center>(see also below)</center>
<center>(see also below)</center>
Line 237: Line 234:
</tr>
</tr>
<tr>
<tr>
<td>A [[en:horizontal dividing line|horizontal dividing line]]: above
<td>A horizontal dividing line: above
----
----


Line 251: Line 248:
</table>
</table>


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.


=== Links, URLs ===
=== Links, URLs ===
Line 260: Line 257:
<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 [[collector_drones]] page.
*First letter of target is automatically capitalized.
*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).
*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".
Thus the link above is to <nowiki>http://www.vo-wiki.com/wiki/index.php?title=Collector_drones</nowiki>, which is the page with the name "Collector drones".
</td>
</td>
<td><pre><nowiki>Sue is reading the [[video policy]].</nowiki></pre>
<td><pre><nowiki>Sue is reading the [[collector_drones]] page.</nowiki></pre>
</td>
</td>
</tr>
</tr>
Line 276: Line 273:
<pre><nowiki>[[List_of_cities_by_country#Morocco]].</nowiki></pre></td>
<pre><nowiki>[[List_of_cities_by_country#Morocco]].</nowiki></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: [[User:Galadrix|answers]].


(This is called a [[piped link]]).
(This is called a ''piped link'').
</td>
</td>
<td><pre><nowiki>Same target, different name:
<td><pre><nowiki>Same target, different name:
[[User:Larry Sanger|answers]]</nowiki></pre>
[[User:Galadrix|answers]]</nowiki></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: [[Mechanic/Medic]]s, [[HUD]]s</td>
<td>
<td>
<pre><nowiki>Endings are blended
<pre><nowiki>Endings are blended
into the link: [[official position]]s, [[gene]]s</nowiki></pre>
into the link: [[Mechanic/Medic]]s, [[HUD]]s</nowiki></pre>
</td>
</td>
</tr>
</tr>
<tr valign="top">
<tr valign="top">
<td>
<td>
Automatically hide stuff in parentheses: [[kingdom (biology)|kingdom]].
Automatically hide stuff in parentheses: [[TPG (faction)|TPG]].
<p>Automatically hide namespace: [[Wikipedia:Village pump|Village pump]].</p>
<p>Automatically hide namespace: [[Special:Random|Random]].</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><nowiki>Automatically hide stuff in parentheses:
[[kingdom (biology)|]]. </nowiki></pre>
[[TPG (faction)|]]. </nowiki></pre>
<pre><nowiki>Automatically hide namespace:
<pre><nowiki>Automatically hide namespace:
[[Wikipedia:Village pump|]].</nowiki></pre>
[[Special:Random|]].</nowiki></pre>
</td></tr>
</td></tr>
<tr>
<tr>
Line 307: Line 304:
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:
: [[User:Karl Wick|Karl Wick]]
: [[User:Galadrix|Atan Yomane]]
or four for user name plus date/time:
or four for user name plus date/time:
: [[User:Karl Wick|Karl Wick]] 08:10 Oct 5, 2002 (UTC)
: [[User:Galadrix|Atan Yomane]] 21:43, 18 August 2006 (EDT)
</td>
</td>
<td><pre><nowiki>When adding a comment to a Talk page,
<td><pre><nowiki>When adding a comment to a Talk page,
Line 325: Line 322:
*#Save that page.
*#Save that page.
*#Click on the link you just made. The new page will open for editing.
*#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.
</td>
</td>
<td><pre><nowiki>[[The weather in London]] is a page
<td><pre><nowiki>[[The weather in London]] is a page
Line 332: Line 328:
</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.
'''Redirect''' one article title to another by putting text like this in its first line.
</td>
</td>
<td><pre><nowiki>#REDIRECT [[United States]]</nowiki></pre>
<td><pre><nowiki>#REDIRECT [[United States]]</nowiki></pre>
</td>
</td>
</tr>
<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:
[[fr:Wikipédia:Aide]].
For more info see [[MediaWiki User's Guide: Interwiki linking]].
</td>
<td><pre><nowiki>[[fr:Wikipédia:Aide]], [[:fr:Wikipédia:Aide]]</nowiki></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
[[Special:Whatlinkshere/Help:Editing]] and
[[Special:Recentchangeslinked/Wikipedia:How to edit a page]]
[[Special:Recentchangeslinked/Help:Editing]]
</td>
</td>
<td><pre><nowiki>
<td><pre><nowiki>
[[Special:Whatlinkshere/
[[Special:Whatlinkshere/Help:Editing]] and
Wikipedia:How to edit a page]] and
[[Special:Recentchangeslinked/Help:Editing]]</nowiki></pre>
[[Special:Recentchangeslinked/
Wikipedia:How to edit a page]]</nowiki></pre>
</td>
</td>
</tr>
</tr>
Line 380: Line 367:
<tr>
<tr>
<td>
<td>
Link to [[w:Request for Comments|Request for Comments]]: RFC 123 (URL specified in [[mediawiki:Rfcurl]])
Link to Request for Comments: RFC 123
</td>
</td>
<td>
<td>
<pre><nowiki>RFC 123</nowiki></pre>
<pre><nowiki>RFC 123</nowiki></pre>
</td>
</td><tr valign=top>
<tr>
<td>
To include links to non-image uploads such as sounds, use a "media" link.
<br/>[[media:Sg_mrob.ogg|Sound]]
</td>
<td>
<pre>
<nowiki>
[[media:Sg_mrob.ogg|Sound]]
</nowiki></pre>
</td>
</tr>
<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 [[Special:Preferences]] to change your own date display setting.
</td>
</td>