Difference between revisions of "Help:Editing"

From PWS Notes
Jump to: navigation, search
(Copied from wikipedia)
 
(Redo of page)
Line 1: Line 1:
<!--
+
== Don't be afraid to edit ==
Hello, New User!
+
  If you want to test out editing pages, please
+
  use the "Sandbox" for your tests.  To go to the
+
  sandbox, type "WP:SB" in the search box on the
+
  left, and hit "Go". Or click the link at the
+
  beginning of the article.
+
-->
+
{{stylehowto}}
+
{{shortcut|[[WP:HEP]]}}
+
:''See also  [[Help:Editing]], [[m:Help:Editing]]''
+
[[Wikipedia]] is a [[Wiki|WikiWiki]], which means that anyone can easily edit any '''[[Wikipedia:Protected page|unprotected]]'''  [[Wikipedia:What is an article|article]] and have those changes posted immediately to that page. 
+
  
 
Editing a Wiki page is very easy. Simply click on the "'''Edit this page'''" tab at the top (or the edit link on the right or bottom) of a Wiki page. This will bring you to a page with a text box containing the editable text of that page. '''''If you want to experiment, please do so in our [[Wikipedia:sandbox|sandbox]], not here. You could open the [[Wikipedia:sandbox|sandbox]] in a separate window or tab to be able to see both this text and your tests in the sandbox.'''''
 
Editing a Wiki page is very easy. Simply click on the "'''Edit this page'''" tab at the top (or the edit link on the right or bottom) of a Wiki page. This will bring you to a page with a text box containing the editable text of that page. '''''If you want to experiment, please do so in our [[Wikipedia:sandbox|sandbox]], not here. You could open the [[Wikipedia:sandbox|sandbox]] in a separate window or tab to be able to see both this text and your tests in the sandbox.'''''
Line 16: Line 5:
 
Type away, write a short [[Wikipedia:Edit summary|edit summary]] on the small field below the edit-box.  You may use shorthand to describe your changes, as described in the [[Wikipedia:Edit summary legend|legend]], and when you've finished, press [[Wikipedia:Show preview|preview]] to see how your changes will look. Then press "Save".  Depending on your system, pressing "Enter" while the edit box is not active (when there is no typing cursor in it) may have the same effect as pressing the "Save" button. Also, please do not vandalise the information on Wikipedia.
 
Type away, write a short [[Wikipedia:Edit summary|edit summary]] on the small field below the edit-box.  You may use shorthand to describe your changes, as described in the [[Wikipedia:Edit summary legend|legend]], and when you've finished, press [[Wikipedia:Show preview|preview]] to see how your changes will look. Then press "Save".  Depending on your system, pressing "Enter" while the edit box is not active (when there is no typing cursor in it) may have the same effect as pressing the "Save" button. Also, please do not vandalise the information on Wikipedia.
  
You can also click on the "'''Discussion'''" tab (or the "'''Discuss this page'''" link) to see the corresponding [[Wikipedia:Talk page|talk page]], which contains comments about the page from other Wikipedia users. Click on the "'''+'''" tab (or "'''Edit this page'''") to add a comment.
+
You can also click on the "'''Discussion'''" tab (or the "'''Discuss this page'''" link) to see the corresponding talk page, which contains comments about the page from other Wikipedia users. Click on the "'''+'''" tab (or "'''Edit this page'''") to add a comment.
  
==Common grammar errors==
+
==Tips on editing wiki articles==
See [[Wikipedia:Common grammar errors]].
+
  
==More information on editing wiki pages==
+
It is often more convenient to copy and paste the text first into your
 +
favorite [[text editor]], edit and spell check there, and then paste back
 +
into the browser to preview. This way, you can also keep a local backup copy of the pages you authored so that you can make changes offline.
  
This page is the reference for '''wiki markup'''. You may also want to learn about:
+
If during editing you want to see the current version again, open "Cancel" in a new window.  This does not cancel your edit.
  
* [[Help:Starting a new page|How to start a page]]
+
==Markup shortcuts==
* Informal tips on [[Wikipedia:Contributing to Wikipedia|contributing to Wikipedia]]
+
'''Links''': <nowiki>[[Link Title]]; [[Link Title | Label for Link Title]]; url; [url]; [url Label]</nowiki>.
* Editing tasks in general at the [[Wikipedia:Editing FAQ]]
+
'''Emphasis''': &apos;&apos;''italics''&apos;&apos;; &apos;&apos;&apos;'''bold'''&apos;&apos;&apos;; &apos;&apos;&apos;&apos;&apos;'''''bold italics'''''&apos;&apos;&apos;&apos;&apos;; &apos;&apos;''mixed &apos;&apos;&apos;'''bold'''&apos;&apos;&apos; and italics''&apos&apos;.
* Why not to rename pages '''boldly''', at [[Wikipedia:How to rename (move) a page]]
+
'''Headings''': = Title 1 =; == Title 2 ==; === Title 3 ===; ==== Title 4 ====; ===== Title 5 =====.
* Preferred layout of your article, at [[Wikipedia:Guide to Layout|Guide to Layout]] (see also [[Wikipedia:Boilerplate text]])
+
'''Lists''': "* " starting line is bullets; "# " is numbered list; ---- horizontal rule.
* Style conventions in the [[Wikipedia:Manual of Style]]
+
* General policies in [[Wikipedia:Policies and guidelines]]
+
* [[Wikipedia:Naming conventions]] for how to name articles themselves
+
* If you are making an article about something that belongs to a group of objects (a city, an astronomical object, a chinese character...) check out if there is a [[Wikipedia:WikiProject|WikiProject]] on the group and try to follow its directions explicitly.
+
* Finally, for a list of  articles about editing Wikipedia consult [[Wikipedia:Style and How-to Directory]] or [[Wikipedia:Utilities]]
+
  
==Tips on editing Wikipedia articles==
+
==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.
  
Please use a [[Neutral point of view|neutral point of view]], and please [[Wikipedia:Cite your sources|cite your sources]] so others can check and extend your work.
+
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.  
  
It is often more convenient to copy and paste the text first into your
+
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".  
favorite [[text editor]], edit and spell check there, and then paste back
+
into the browser to [[Wikipedia:Show preview|preview]]. This way, you can also keep a local backup copy of the pages you authored so that you can make changes offline. Some text editors can be specially adapted to edit Wikipedia articles: see [[Wikipedia:syntax highlighting]].
+
  
If during editing you want to see the current version again, open "Cancel" in a new window. This does not cancel your edit.
+
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.
  
After making a new page, it's a good idea to
+
 
*With your page displayed, use ''What links here'' to check the articles that already link to it, and make sure that they are all expecting the same meaning that you have supplied;
+
== Dummy edit ==
*Use the Search button to launch a Google search of Wikipedia for your topic title (and possibly variants), to find articles that mention it, and make links from them if appropriate;
+
 
*Check for corresponding articles in the Wikipedias of other languages that you can read.
+
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). Also it is sometimes needed to refresh the cache of some item in the database, see e.g. [[Help:Category#A_category_tag_in_a_template.3B_caching_problem|A category tag in a template; caching problem]].
  
 
== Minor edits ==
 
== Minor edits ==
''See also [[Wikipedia:Minor edit]]''
+
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 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 editing a page, a [[Wikipedia:How to log in|logged-in]] user can mark that edit as "minor". Minor edits generally mean spelling corrections, formatting, and minor rearranging of text. It is possible to ''hide'' minor edits when viewing [[Wikipedia:Recent Changes]]. Marking a significant change as a minor edit is considered bad behavior, and even more so if it involves the deletion of some text. If one has accidentally marked an edit as minor, the person should edit the source once more, mark it major (or, rather, ensure that the check-box for "This is a minor edit" is not checked), and, in the summary, state that the previous change was a major one.
+
The reason for not allowing a user who is not logged in to mark an edit as minor is that vandalism could then be marked as a minor edit, in which case it would stay unnoticed longer. This limitation is another reason to log in.
  
 
== The wiki markup ==
 
== The wiki markup ==
 
In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column.
 
In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column.
  
You may want to keep this page open in a separate browser window for reference. If you want to try out things without danger of doing any harm, you can do so '''in the [[Wikipedia:Sandbox|Sandbox]]'''.
+
You may want to keep this page open in a separate browser window for reference. If you want to try out things without danger of doing any harm, you can do so in the [[Sandbox]].
  
----
 
<!--
 
:'''The rest of this page is deprecated but will be updated periodically.'''
 
:'''Please direct edits to the [[meta:MediaWiki User's Guide: Editing overview|Meta-Wikimedia version of this page]]'''
 
 
-->
 
 
=== Sections, paragraphs, lists and lines ===
 
=== Sections, paragraphs, lists and lines ===
{| border="1" cellpadding="2" cellspacing="0"
+
<table border="1" cellpadding="2" cellspacing="0">
|-
+
<tr>
! What it looks like
+
<th>What it looks like</th>
! What you type
+
<th>What you type</th>
|- valign="top"
+
</tr>
|
+
<tr>
Start your [[Wikipedia:Manual of Style (headings)|sections]] as follows:
+
<td>
 +
Start your sections with header lines:
  
<!-- The following code messes up the table of contents
+
<!-- This is the original
    and makes the section edit links much less useful,
+
== New section ==
    so please do not use it.
+
=== Subsection ===
==New section==
+
==== Sub-subsection ====
===Subsection===
+
  -->
====Sub-subsection====
+
-->
+
<!-- The following should look almost the same, using
+
    HTML headings markup instead of wiki headings.
+
    However, it messes up the section edit links,
+
    so please do not use it.
+
<h2>New section</h2>
+
<h3>Subsection</h3>
+
<h4>Sub-subsection</h4>
+
-->
+
<!-- The following just uses bolding and font changes,
+
    so it should be safe. However, it might not
+
    look exactly right, especially when people
+
    use non-standard CSS stylesheets.
+
-->
+
'''<font style="font-size:120%">New section</font>'''
+
  
'''<font style="font-size:110%">Subsection</font>'''
+
<!-- next set
 +
<h2> New section </h2>
 +
<h3> Subsection </h3>
 +
<h4> Sub-subsection </h4>
 +
-->
  
'''<font style="font-size:100%">Sub-subsection</font>'''
+
<!-- This code prevents confusion in the section editing feature-->
 +
<b><font style="font-size:120%"> New section </font></b>
  
* Start with a second-level heading (<tt><nowiki>==</nowiki></tt>); do not use first-level headings (=).
+
<b><font style="font-size:110%"> Subsection</font></b>
* Do not skip levels (e.g., second-level followed by fourth-level).
+
* A [[#Placement_of_the_Table_of_Contents_.28TOC.29|Table of Contents]] will automatically be added to an article that has four or more sections.
+
|
+
<pre><nowiki>
+
==New section==
+
  
===Subsection===
+
<b><font style="font-size:100%"> Sub-subsection</font></b>
  
====Sub-subsection====
+
</td>
 +
<td><pre><nowiki>
 +
 
 +
== New section ==
 +
 
 +
=== Subsection ===
 +
 
 +
==== Sub-subsection ====
 
</nowiki></pre>
 
</nowiki></pre>
|- valign="top"
+
</td>
|
+
</tr>
A single [[newline]]
+
<tr>
generally has no effect on the layout.
+
<td>
These can be used to separate
+
[[en:newline|Newline]]:
sentences within a paragraph.
+
 
Some editors find that this aids editing
+
A single
and improves the function ''diff''
+
newline
(used internally to compare
+
has no
different versions of a page).
+
effect on the
 +
layout.
  
 
But an empty line
 
But an empty line
 
starts a new paragraph.
 
starts a new paragraph.
  
* When used in a list, a newline ''does'' affect the layout ([[#lists|see below]]).
+
(<nowiki><p></nowiki> disables this paragraphing until <nowiki></p></nowiki> or the end  of the section)
|
+
<pre><nowiki>
+
A single [[newline]]
+
generally has no effect on the layout.
+
These can be used to separate
+
sentences within a paragraph.
+
Some editors find that this aids editing
+
and improves the function ''diff''
+
(used internally to compare
+
different versions of a page).
+
  
But an empty line
+
(in Cologne Blue two newlines and a div tag give just one newline; in the order newline, div tag, newline, the result is two newlines)
starts a new paragraph.
+
</nowiki></pre>
+
|- valign="top"
+
|
+
You can break lines<br>
+
without starting a new paragraph.
+
  
* Please use this sparingly.
+
</td>
* Close markup between lines, don't start a [[link]] or ''italics'' or '''bold''' on one line and close it on the next.
+
<td>
|
+
 
<pre><nowiki>
 
<pre><nowiki>
You can break lines<br>
 
without starting a new paragraph.
 
</nowiki></pre>
 
|- id="lists" valign="top"
 
|
 
* Lists are easy to do:
 
** Start every line with a star.
 
*** More stars means deeper levels.
 
**** A newline in a list
 
marks the end of a list item.
 
  
* An empty line starts a new list.
+
A single
|
+
newline
<pre><nowiki>
+
has no
 +
effect on the
 +
layout.
 +
 
 +
But an empty line
 +
starts a new paragraph.</nowiki></pre>
 +
</td>
 +
</tr>
 +
<tr valign="top"><td>You can break lines<br>
 +
without starting a new paragraph.<p>
 +
Sufficient as wikitext code is &lt;br&gt;, the XHTML code &lt;br /&gt; is not needed, the system produces this code.</p></td>
 +
<td><pre><nowiki>You can break lines<br>
 +
without starting a new paragraph.</nowiki></pre>
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 
* Lists are easy to do:
 
* Lists are easy to do:
** Start every line with a star.
+
** start every line with a star
*** More stars means deeper levels.
+
*** more stars means deeper levels
**** A newline in a list
+
*A newline
marks the end of a list item.
+
*in a list 
 +
marks the end of the list.
 +
*Of course
 +
*you can
 +
*start again.
 +
 
 +
</td>
 +
<td><pre><nowiki>* Lists are easy to do:
 +
** start every line with a star
 +
*** more stars means deeper levels
 +
*A newline
 +
*in a list
 +
marks the end of the list.
 +
*Of course
 +
*you can
 +
*start again.
  
* An empty line starts a new list.
 
 
</nowiki></pre>
 
</nowiki></pre>
|- valign="top"
+
</td>
|
+
</tr>
 +
<tr>
 +
<td>
 
# Numbered lists are also good
 
# Numbered lists are also good
 
## very organized
 
## very organized
 
## easy to follow
 
## easy to follow
### easier still
+
#A newline
|
+
#in a list 
<pre><nowiki>
+
marks the end of the list.
# Numbered lists are also good
+
#New numbering starts
 +
#with 1.
 +
 
 +
</td>
 +
<td><pre><nowiki># Numbered lists are also good
 
## very organized
 
## very organized
 
## easy to follow
 
## easy to follow
### easier still
+
#A newline
 +
#in a list 
 +
marks the end of the list.
 +
#New numbering starts
 +
#with 1.
 
</nowiki></pre>
 
</nowiki></pre>
|- valign="top"
+
</td>
|
+
</tr>
 +
<tr>
 +
<td>
 
* You can even do mixed lists
 
* You can even do mixed lists
 
*# and nest them
 
*# and nest them
*#* like this
+
*#* like this<br>or have newlines<br>inside lists
|
+
</td>
<pre><nowiki>
+
<td><pre><nowiki>* You can even do mixed lists
* You can even do mixed lists
+
 
*# and nest them
 
*# and nest them
*#* like this
+
*#* like this<br>or have newlines<br>inside lists</nowiki></pre>
</nowiki></pre>
+
</td>
|- valign="top"
+
</tr>
|
+
<tr>
 +
<td>
 +
* You can also
 +
**break lines<br>inside lists<br>like this
 +
</td>
 +
<td><pre><nowiki>* You can also
 +
**break lines<br>inside lists<br>like this</nowiki></pre>
 +
</td>
 +
<tr>
 +
<td>
 
; Definition list : list of definitions
 
; Definition list : list of definitions
 
; item : the item's definition
 
; item : the item's definition
; another item
+
</td>
: the other item's definition
+
<td><pre><nowiki>; Definition list : list
 
+
of definitions
* One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.
+
; item : the item's definition</nowiki></pre>
|
+
</td>
<pre><nowiki>
+
</tr>
; Definition list : list of definitions
+
<tr>
; item : the item's definition
+
<td>
; another item
+
:A colon indents a line or paragraph.
: the other item's definition
+
</nowiki></pre>
+
|- valign="top"
+
|
+
: 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 [[Wikipedia:Talk page|Talk page]]s.
+
</td>
|
+
<td><pre><nowiki>: A colon indents a line or paragraph.
<pre><nowiki>
+
: A colon indents a line or paragraph.
+
 
A manual newline starts a new paragraph.
 
A manual newline starts a new paragraph.
 
</nowiki></pre>
 
</nowiki></pre>
|- valign=top
+
</td>
|
+
</tr>
IF a line starts with a space THEN
+
<tr valign=top>
it will be formatted exactly
+
<td>
as typed;
+
<pre><nowiki>IF a line of plain text starts with a space THEN
in a fixed-width font;
+
  it will be formatted exactly
lines won't wrap;
+
    as typed;
ENDIF
+
  in a fixed-width font;
 +
  lines won't wrap;
 +
ENDIF
 +
this is useful for:
 +
  * pasting preformatted text;
 +
  * algorithm descriptions;
 +
  * program source code
 +
  * ASCII art;
 +
  * chemical structures;</nowiki></pre>
  
*This is useful for:
+
WARNING If you make it wide,
** pasting preformatted text;
+
you [[en:page widening|force the whole page to be wide]] and
** algorithm descriptions;
+
hence less readable. Never start ordinary lines with spaces.<br>
** program source code;
+
<center>(see also below)</center>
** [[ASCII art]];
+
</td>
** chemical structures;
+
<td><pre><nowiki> IF a line of plain text starts with a space THEN
* '''WARNING''': If you make it wide, you [[page widening|force the whole page to be wide]] and hence less readable, especially for people who use lower resolutions. Never start ordinary lines with spaces.
+
  it will be formatted exactly
|
+
    as typed;
<pre><nowiki>
+
  in a fixed-width font;
IF a line starts with a space THEN
+
  lines won't wrap;
it will be formatted exactly
+
as typed;
+
in a fixed-width font;
+
lines won't wrap;
+
 
  ENDIF
 
  ENDIF
</nowiki></pre>
+
this is useful for:
|- valign="top"
+
  * pasting preformatted text;
|
+
  * algorithm descriptions;
<center>Centered text.</center>
+
  * program source code
 
+
  * ASCII art;
* Note the American spelling of "center" (not "centre").
+
  * chemical structures;</nowiki></pre></td>
|
+
</tr>
<pre><nowiki>
+
<tr valign="top"><td><center>Centered text.</center>
<center>Centered text.</center>
+
</td>
</nowiki></pre>
+
<td><pre><nowiki><center>Centered text.</center></nowiki></pre>
|- valign="top"
+
</td>
|
+
</tr>
A [[horizontal dividing line]]:
+
<tr>
this is above it
+
<td>A [[en:horizontal dividing line|horizontal dividing line]]: above
 
----
 
----
and this is below it.
 
  
* Mainly useful for separating threads on Talk pages.
+
and below.
* Also used to [[Wikipedia:Disambiguation|disambiguate]] within an article without creating a separate page.
+
 
|
+
Mainly useful for separating threads on Talk pages.
<pre><nowiki>
+
</td>
A [[horizontal dividing line]]:
+
<td><pre><nowiki>A horizontal dividing line: above
this is above it
+
 
----
 
----
and this is below it.
+
and below. </nowiki></pre>
</nowiki></pre>
+
</td>
|}
+
</tr>
 +
</table>
  
=== Links and URLs ===
+
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]].
{| border="1" cellpadding="2" cellspacing="0"
+
|-
+
! What it looks like
+
! What you type
+
|- valign="top"
+
|
+
London has [[public transport]].
+
  
* A link to another Wikipedia article.
+
=== Links, URLs ===
* 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]] http://www.wikipedia.org/wiki/Public_transport, which is the Wikipedia article with the name "Public transport". See also [[Wikipedia:Canonicalization]].
+
|
+
<pre><nowiki>
+
London has [[public transport]].
+
</nowiki></pre>
+
|- valign="top"
+
|
+
San Francisco also has
+
[[public transport|public transportation]].
+
  
* Same target, different name.
+
<table border="1" cellpadding="2" cellspacing="0">
* This is a [[piped link]].
+
<tr>
|
+
<th>What it looks like</th>
<pre><nowiki>
+
<th>What you type</th>
San Francisco also has
+
</tr>
[[public transport|public transportation]].
+
<tr valign="top"><td>Sue is reading the [[video policy]].
</nowiki></pre>
+
*First letter of target is automatically capitalized.
|- valign="top"
+
*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".
San Francisco also has
+
</td>
[[public transport]]ation.
+
<td><pre><nowiki>Sue is reading the [[video policy]].</nowiki></pre>
 +
</td>
 +
</tr>
 +
<tr><td>
 +
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:
 +
*links to non-existent sections
 +
*links in redirects
 +
*interwiki links</td><td>
 +
<pre><nowiki>[[List_of_cities_by_country#Morocco]].</nowiki></pre></td>
 +
</tr>
 +
<tr valign="top"><td>Link target and link label are different: [[User:Larry Sanger|answers]].
  
Examples include [[bus]]es, [[taxi]]s
+
(This is called a [[piped link]]).
and [[streetcar]]s.
+
</td>
 
+
<td><pre><nowiki>Same target, different name:
* Endings are blended into the link.
+
[[User:Larry Sanger|answers]]</nowiki></pre>
* Preferred style is to use this instead of a piped link, if possible.
+
</td>
|
+
</tr>
<pre><nowiki>
+
<tr valign="top">
San Francisco also has
+
<td>Endings are blended into the link: [[official position]]s, [[gene]]s</td>
[[public transport]]ation.
+
<td>
 
+
<pre><nowiki>Endings are blended
Examples include [[bus]]es, [[taxi]]s
+
into the link: [[official position]]s, [[gene]]s</nowiki></pre>
and [[streetcar]]s.
+
</td>
</nowiki></pre>
+
</tr>
|- valign="top"
+
<tr valign="top">
|
+
<td>
See the [[Wikipedia:Manual of Style]].
+
Automatically hide stuff in parentheses: [[kingdom (biology)|kingdom]].
 
+
<p>Automatically hide namespace: [[Wikipedia:Village pump|Village pump]].</p>
* A link to another [[Wikipedia:namespace|namespace]].
+
<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>
<pre><nowiki>
+
<td>
See the [[Wikipedia:Manual of Style]].
+
<pre><nowiki>Automatically hide stuff in parentheses:
</nowiki></pre>
+
[[kingdom (biology)|]]. </nowiki></pre>
|- id="link-to-section" valign="top"
+
<pre><nowiki>Automatically hide namespace:
|
+
[[Wikipedia:Village pump|]].</nowiki></pre>
[[Economics#See also]] is a link
+
</td></tr>
to a section within another page.
+
<tr>
 
+
<td>When adding a comment to a Talk page,
[[#Links and URLs]] is a link
+
you should sign it. You can do this by
to a section on the current page.
+
adding three tildes for your user name:
 
+
: [[User:Karl Wick|Karl Wick]]
[[#example]] is a link to an
+
or four for user name plus date/time:
anchor that was created using
+
: [[User:Karl Wick|Karl Wick]] 08:10 Oct 5, 2002 (UTC)
<div id="example">an id attribute</div>
+
</td>
 
+
<td><pre><nowiki>When adding a comment to a Talk page,
* The part after the number sign (#) must match a section heading on the page, or an identifier created in some other way.  Matches must be exact in terms of spelling, case and punctuation.  Links to non-existent sections aren't broken; they are treated as links to the top of the page.
+
you should sign it. You can do this by
* Identifiers may be created by attaching an <code>id="..."></code> attribute to almost any HTML element.
+
adding three tildes for your user name:
|
+
<pre><nowiki>
+
[[Economics#See also]] is a link
+
to a section within another page.
+
 
+
[[#Links and URLs]] is a link
+
to a section on the current page.
+
 
+
[[#example]] is a link to an
+
anchor that was created using
+
<div id="example">an id attribute</div>
+
</nowiki></pre>
+
|- valign="top"
+
|
+
Automatically hide stuff in parentheses:
+
[[kingdom (biology)|kingdom]].
+
 
+
Automatically hide namespace:
+
[[Wikipedia:Village Pump|Village Pump]].  
+
 
+
Or both:
+
[[Wikipedia:Manual of Style (headings)|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 [[Wikipedia:Show preview|preview]]ing 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 ([[#link-to-section|see previous entry]]).
+
|
+
<pre><nowiki>
+
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|]]
+
</nowiki></pre>
+
|- valign="top"
+
|
+
[[The weather in London]] is a page
+
that doesn't exist yet.
+
 
+
* You can create it by clicking on the link (but please don't do so with this particular 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 [[Wikipedia:How to start a page|How to start a page]] and check out Wikipedia's [[Wikipedia:Naming conventions|naming conventions]].
+
* Please do not create a new article without linking to it from at least one other article.
+
|
+
<pre><nowiki>
+
[[The weather in London]] is a page
+
that doesn't exist yet.
+
</nowiki></pre>
+
|- valign="top"
+
|
+
[[Wikipedia:How to edit a page]] is this page.
+
 
+
* [[Self link]]s 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 [[Wikipedia:Manual of Style#Article names|Manual of Style]].
+
|
+
<pre><nowiki>
+
[[Wikipedia:How to edit a page]] is this page.
+
</nowiki></pre>
+
|- valign="top"
+
|
+
When adding a comment to a Talk page,
+
you should sign it by adding
+
three tildes to add your user name:
+
: [[User:Brockert|Ben Brockert]]
+
or four to add user name plus date/time:
+
: [[User:Brockert|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 [[Wikipedia:user page|user page]].
+
|
+
<pre><nowiki>
+
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:
 
or four for user name plus date/time:
: ~~~~
+
: ~~~~</nowiki></pre>
Five tildes gives the date/time alone:
+
</td>
: ~~~~~
+
</tr>
</nowiki></pre>
+
<tr valign="top"><td>[[The weather in London]] is a page that doesn't exist yet.
|- valign="top"
+
*You can create it by clicking on the link.
|
+
*To create a new page:
* [[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 "[[USA]]").
+
*#Create a link to it on some other page.
* Note that, while it is possible to link to a section, it is not possible to redirect to a section. For example, "<nowiki>#REDIRECT [[United States#History]]</nowiki>" will redirect to the [[United States]] page, but not to any particular section on it. This feature '''will not''' be implemented in the future, so such redirects should not be used.
+
*#Save that page.
|
+
*#Click on the link you just made. The new page will open for editing.
<pre><nowiki>
+
*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.
#REDIRECT [[United States]]
+
</td>
</nowiki></pre>
+
<td><pre><nowiki>[[The weather in London]] is a page
|- valign="top"
+
that doesn't exist yet.</nowiki></pre>
|
+
</td>
* Link to a page on the same subject in another language by using a link of the form: <nowiki>[[language code:Title]]</nowiki>.
+
</tr>
* 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.
+
<tr valign="top"><td>
* Please see [[Wikipedia:Interlanguage links]] and the [[Wikipedia:Complete list of language wikis available|list of languages and codes]].
+
[[MediaWiki User's Guide: Using redirects|Redirect]] one article title to another by putting text like this in its first line.
|
+
</td>
<pre><nowiki>
+
<td><pre><nowiki>#REDIRECT [[United States]]</nowiki></pre>
[[fr:Wikipédia:Aide]]
+
</td>
</nowiki></pre>
+
</tr>
|- valign="top"
+
<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:
'''What links here''' and '''Related changes'''
+
[[fr:Wikipédia:Aide]].  
pages can be linked as:
+
For more info see [[MediaWiki User's Guide: Interwiki linking]].
[[Special:Whatlinkshere/Wikipedia:How to edit a page]]
+
</td>
and
+
<td><pre><nowiki>[[fr:Wikipédia:Aide]], [[:fr:Wikipédia:Aide]]</nowiki></pre></td>
 +
</tr>
 +
<tr>
 +
<td>"What links here" and "Related changes" can be linked as:<br/>
 +
[[Special:Whatlinkshere/Wikipedia:How to edit a page]] and
 
[[Special:Recentchangeslinked/Wikipedia:How to edit a page]]
 
[[Special:Recentchangeslinked/Wikipedia:How to edit a page]]
 
+
</td>
|
+
<td><pre><nowiki>
<pre><nowiki>
+
[[Special:Whatlinkshere/
'''What links here''' and '''Related changes'''
+
Wikipedia:How to edit a page]] and
pages can be linked as:
+
[[Special:Recentchangeslinked/
[[Special:Whatlinkshere/Wikipedia:How to edit a page]]
+
Wikipedia:How to edit a page]]</nowiki></pre>
and
+
</td>
[[Special:Recentchangeslinked/Wikipedia:How to edit a page]]
+
</tr>
</nowiki></pre>
+
<tr valign="top"><td>External links: [http://www.nupedia.com Nupedia], [http://www.nupedia.com]
|- valign="top"
+
</td>
|
+
<td><pre><nowiki>External links:
A user's '''Contributions''' page can be linked as:
+
[http://www.nupedia.com Nupedia],
[[Special:Contributions/UserName]]
+
[http://www.nupedia.com]</nowiki></pre>
or
+
</td>
[[Special:Contributions/192.0.2.0]]
+
</tr>
|
+
<tr valign="top"><td>Or just give the URL: http://www.nupedia.com.
<pre><nowiki>
+
*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.
A user's '''Contributions''' page can be linked as:
+
</td>
[[Special:Contributions/UserName]]
+
<td><pre><nowiki>Or just give the URL:
or
+
http://www.nupedia.com.</nowiki></pre>
[[Special:Contributions/192.0.2.0]]
+
</td>
</nowiki></pre>
+
</tr>
|- valign="top"
+
<tr>
|
+
<td>
* 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.
+
To link to books, you can use [[en:ISBN|ISBN]] links.
|
+
ISBN 0123456789X See [[Help:ISBN links]]
<pre><nowiki>
+
</td>
[[Category:Character sets]]
+
<td>
</nowiki></pre>
+
<pre><nowiki>ISBN 0123456789X</nowiki></pre>
|- valign="top"
+
</td>
|
+
<tr>
* To ''link'' to a [[Wikipedia:Category]] page without putting the article into the category, use an initial colon (:) in the link.
+
<td>
|
+
Link to [[w:Request for Comments|Request for Comments]]: RFC 123 (URL specified in [[mediawiki:Rfcurl]])
<pre><nowiki>
+
</td>
[[:Category:Character sets]]
+
<td>
</nowiki></pre>
+
<pre><nowiki>RFC 123</nowiki></pre>
|- id="link-external" valign="top"
+
</td>
|
+
<tr>
Three ways to link to external (non-wiki) sources:
+
<td>
# Bare URL: http://www.nupedia.com/ (bad style)
+
To include links to non-image uploads such as sounds, use a "media" link.
# Unnamed link: [http://www.nupedia.com/] (bad style)
+
<br/>[[media:Sg_mrob.ogg|Sound]]
# Named link: [http://www.nupedia.com Nupedia]
+
</td>
 
+
<td>
:See [[MetaWikiPedia:Interwiki_map]] for the list of shortcuts.
+
<pre>
 
+
<nowiki>
* 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:<br/>'''A-Z a-z 0-9 . _ \ / ~ % - + &amp; # ? ! = ( ) @ \x80-\xFF'''
+
* If a URL contains a character not in this list, it should be encoded by using a percent sign (%) followed by the [[hexadecimal|hex]] code of the character, which can be found in the table of [[ASCII#ASCII printable characters|ASCII printable characters]]. For example, the caret character (^) would be encoded in a URL as '''%5E'''.
+
* See [[Wikipedia:External links]] for style issues.
+
|
+
<pre><nowiki>
+
Three ways to link to external (non-wiki) sources:
+
# Bare URL: http://www.nupedia.com/
+
# Unnamed link: [http://www.nupedia.com/]
+
# Named link: [http://www.nupedia.com Nupedia]
+
</nowiki></pre>
+
|- valign="top"
+
|
+
Linking to other wikis:
+
# [[Interwiki]] link: [[Wiktionary:Hello]]
+
# Named interwiki link: [[Wiktionary:Hello|Hello]]
+
# Interwiki link without prefix: [[Wiktionary:Hello|Hello]]
+
 
+
* All of these forms lead to the URL http://en.wiktionary.org/wiki/Hello
+
* Note that interwiki links use the ''internal'' link style.
+
* See [[MetaWikiPedia:Interwiki_map]] for the list of shortcuts; if the site you want to link to isn't on the list, use an external link ([[#link-external|see above]]).
+
* See also [[Wikipedia:How to link to Wikimedia projects]].
+
 
+
Linking to another language's wiktionary:
+
# [[Wiktionary:fr:Bonjour]]
+
# [[Wiktionary:fr:Bonjour|Bonjour]]
+
# [[Wiktionary:fr:Bonjour|fr:Bonjour]]
+
 
+
* All of these forms lead to the URL http://fr.wiktionary.org/wiki/Bonjour
+
|
+
<pre><nowiki>
+
Linking to other wikis:
+
# [[Interwiki]] link: [[Wiktionary:Hello]]
+
# Named interwiki link: [[Wiktionary:Hello|Hello]]
+
# Interwiki link without prefix: [[Wiktionary:Hello|]]
+
 
+
Linking to another language's wiktionary:
+
# [[Wiktionary:fr:Bonjour]]
+
# [[Wiktionary:fr:Bonjour|Bonjour]]
+
# [[Wiktionary:fr:Bonjour|]]
+
</nowiki></pre>
+
|- valign="top"
+
|
+
ISBN 012345678X
+
 
+
ISBN 0-123-45678-X
+
 
+
* Link to books using their [[Wikipedia:ISBN|ISBN]] numbers. This is preferred to linking to a specific online bookstore, because it gives the reader a choice of vendors.
+
* ISBN links do not need any extra markup, provided you use one of the indicated formats.
+
|
+
<pre><nowiki>
+
ISBN 012345678X
+
 
+
ISBN 0-123-45678-X
+
</nowiki></pre>
+
|- valign=top
+
|
+
Date formats:
+
# [[July 20]], [[1969]]
+
# [[20 July]] [[1969]]
+
# [[1969]]-[[07-20]]
+
 
+
* Link dates in one of the above formats, so that everyone can set their own display order. If [[Special:Userlogin|logged in]], you can use [[Special:Preferences]] to change your own date display setting.
+
* All of the above dates will appear as "[[20 July|20 July]] [[1969|1969]]" if you set your date display preference to "15 January 2001", but as "[[20 July|July 20]], [[1969|1969]]" if you set it to "January 15, 2001".
+
|
+
<pre><nowiki>
+
Date formats:
+
# [[July 20]], [[1969]]
+
# [[20 July]] [[1969]]
+
# [[1969]]-[[07-20]]
+
</nowiki></pre>
+
|- valign="top"
+
|
+
[[media:Sg_mrob.ogg|Sound]]
+
 
+
*To include links to non-image uploads such as sounds, use a "media" link. For images, [[#Images|see next section]].
+
 
+
Some uploaded sounds are listed at [[Wikipedia:Sound]].
+
|
+
<pre><nowiki>
+
 
[[media:Sg_mrob.ogg|Sound]]
 
[[media:Sg_mrob.ogg|Sound]]
 
</nowiki></pre>
 
</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>
 +
<td><pre><nowiki>[[July 20]], [[1969]] , [[20 July]] [[1969]]
 +
and [[1969]]-[[07-20]]
 +
</nowiki></pre>will all appear as [[20 July]] [[1969]] if you set your date display preference to 1 January 2001.
 +
</td>
 +
</tr>
 +
</table>
  
 
=== Images ===
 
=== Images ===
{| border="1" cellpadding="2" cellspacing="0"
 
|-
 
! What it looks like
 
! What you type
 
|- valign="top"
 
| A picture: [[Image:Wiki.png]]
 
  
or, with alternative text:
+
<table border="1" cellpadding="2" cellspacing="0">
[[Image:Wiki.png|jigsaw globe]]
+
<tr>
 
+
<th>What it looks like</th>
or, floating to the right side of the page and with a caption:
+
<th>What you type</th>
[[Image:Wiki.png|frame|Wikipedia Encyclopedia]]<br clear=all>
+
</tr>
 
+
<tr valign="top"><td>A picture: [[Image:Wiki.png|Wikipedia - The Free Encyclopedia]]
or, floating to the right side of the page ''without'' a caption:
+
* For many projects, only images that have been uploaded to the same project or [[commons:|the Commons]] can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]]
[[Image:Wiki.png|right|Wikipedia Encyclopedia]]<br clear=all>
+
</td>
 
+
<td><pre><nowiki>
* Only images that have been uploaded to Wikipedia can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]].
+
A picture: [[Image:Wiki.png]]</nowiki></pre>
* See the [[Wikipedia:Image use policy|image use policy]], [[Wikipedia:Image markup|extended image markup/syntax]] (also possibly [[Wikipedia:Image markup with HTML|image HTML markup]]) for more hints.
+
or, with alternate text (''strongly'' encouraged) <!-- actually required in HTML4 -->
* Alternative text, used when the image isn't loaded, in a text-only browser, or when spoken aloud, is '''strongly''' encouraged. See [[Wikipedia:Alternate text for images|Alternate text for images]] for help on choosing it.
+
<pre><nowiki>[[Image:Wiki.png|Wikipedia
* The frame tag automatically floats the image right.
+
- The Free Encyclopedia]] </nowiki>
| <pre><nowiki>
+
</pre>
A picture: [[Image:Wiki.png]]</nowiki>
+
[[en:Web browser|Web browser]]s render alternate text when not displaying an image -- for example, when the image isn't loaded, or in a text-only browser, or when spoken aloud. See [[en:Wikipedia:Alternate text for images|Alternate text for images]] for help on choosing alternate text. See [[en:Wikipedia:Extended_image_syntax|Extended image syntax]] for more options.
 
+
</td>
or, with alternative text:
+
</tr>
<nowiki>[[Image:Wiki.png|jigsaw globe]]</nowiki>
+
<tr>
 
+
<td>
or, floating to the right side of the page and with a caption:
+
<nowiki>[[Image:Wiki.png|frame|Wikipedia Encyclopedia]]</nowiki>
+
 
+
or, floating to the right side of the page ''without'' a caption:
+
<nowiki>[[Image:Wiki.png|right|Wikipedia Encyclopedia]]</nowiki></pre>
+
|-
+
|
+
 
Clicking on an uploaded image displays a description page, which you can also link directly to: [[:Image:Wiki.png]]
 
Clicking on an uploaded image displays a description page, which you can also link directly to: [[:Image:Wiki.png]]
| <pre><nowiki>
+
</td>
 
+
<td><pre><nowiki>
 
[[:Image:Wiki.png]]
 
[[:Image:Wiki.png]]
 
</nowiki></pre>
 
</nowiki></pre>
|-
+
</td>
|
+
</tr>
 +
 
 +
<tr>
 +
<td>
 
To include links to images shown as links instead of drawn on the page, use a "media" link.
 
To include links to images shown as links instead of drawn on the page, use a "media" link.
 
 
<br/>[[media:Tornado.jpg|Image of a Tornado]]
 
<br/>[[media:Tornado.jpg|Image of a Tornado]]
|
+
</td>
 +
<td>
 
<pre>
 
<pre>
 
<nowiki>
 
<nowiki>
 
 
[[media:Tornado.jpg|Image of a Tornado]]
 
[[media:Tornado.jpg|Image of a Tornado]]
 
 
</nowiki></pre>
 
</nowiki></pre>
|}
+
</td>
 +
</tr>
 +
 
 +
</table>
  
 
=== Character formatting ===
 
=== Character formatting ===
{| border="1" cellpadding="2" cellspacing="0"
+
 
|- valign="top"
+
<table border="1" cellpadding="2" cellspacing="0">
! What it looks like
+
<tr>
! What you type
+
<th>What it looks like</th>
|- id="emph" valign="top"
+
<th>What you type</th>
|
+
</tr>
 +
<tr valign="top"><td>
 
''Emphasize'', '''strongly''', '''''very strongly'''''.
 
''Emphasize'', '''strongly''', '''''very strongly'''''.
* These are double and triple apostrophes (single-quote marks), not double-quote marks.
+
*These are double and triple apostrophes, not double quotes.
|
+
</td>
<pre><nowiki>
+
<td>
''Emphasize'', '''strongly''', '''''very strongly'''''.
+
<pre><nowiki>''Emphasize'', '''strongly''',
</nowiki></pre>
+
'''''very strongly'''''.</nowiki></pre>
|- valign="top"
+
</td>
|
+
</tr>
<math>\sin x + \ln y</math><br>
+
<tr valign="top"><td>
sin''x'' + ln''y''
+
You can also write <i>italic</i> and <b>bold</b>
<!-- no space between roman "sin" and italic "x" -->
+
if the desired effect is a specific font style
 
+
rather than emphasis, as in mathematical formulae:
<math>\mathbf{x} = 0</math><br>
+
:<b>F</b> = <i>m</i><b>a</b>
'''x''' = 0
+
*However, the difference between these two methods is not very important for graphical browsers, and many people choose to ignore it.
 
+
</td>
Ordinary text should use [[#emph|wiki markup for emphasis]], and should not use <code>&lt;i&gt;</code> or <code>&lt;b&gt;</code>.  However, mathematical formulas often use italics, and sometimes use bold, for reasons unrelated to emphasis.  Complex formulas should use [[m:Help:Formula|<code>&lt;math&gt;</code> markup]], and simple formulas may use <code>&lt;math&gt;</code>; or <code>&lt;i&gt;</code> and <code>&lt;b&gt;</code>; or <code><nowiki>''</nowiki></code> and <code><nowiki>'''</nowiki></code>.  According to [[Wikipedia:WikiProject Mathematics#Italicization and bolding|WikiProject Mathematics]], wiki markup is preferred over HTML markup like <code>&lt;i&gt;</code> and <code>&lt;b&gt;</code>.
+
<td>
|
+
<pre><nowiki>You can also write <i>italic</i>
<pre><nowiki>
+
and <b>bold</b> if the desired effect is a
<math>\sin x + \ln y</math>
+
specific font style rather than emphasis, as
sin''x'' + ln''y''
+
in mathematical formulas:
 
+
:<b>F</b> = <i>m</i><b>a</b></nowiki></pre><!-- that's not a mathematical formula, though -- sure it is, just because it's being applied to physics doesn't make it stop being mathematics -->
<math>\mathbf{x} = 0</math>
+
</td>
'''x''' = 0
+
</tr>
</nowiki></pre>
+
<tr valign=top>
|- valign="top"
+
<td>A typewriter font for <tt>technical terms</tt>.
|
+
</td>
A typewriter font for <tt>monospace text</tt>
+
<td><pre><nowiki>A typewriter font for  
or for computer code: <code>int main()</code>
+
<tt>technical terms</tt>.</nowiki></pre>
 
+
</td><!-- tt is really 'teletype', not 'technical term' -->
* For semantic reasons, using <code>&lt;code&gt;</code> where applicable is preferable to using <code>&lt;tt&gt;</code>.
+
</tr>
|
+
<tr valign=top>
<pre><nowiki>
+
<td>You can use <small>small text</small> for captions.
A typewriter font for <tt>monospace text</tt>
+
</td>
or for computer code: <code>int main()</code>
+
<td><pre><nowiki>You can use <small>small text</small>  
</nowiki></pre>
+
for captions.</nowiki></pre>
|- valign="top"
+
</td>
|
+
</tr>
You can use <small>small text</small> for captions.
+
<tr valign="top"><td>You can <strike>strike out deleted material</strike>
|
+
<pre><nowiki>
+
You can use <small>small text</small> for captions.
+
</nowiki></pre>
+
|- valign="top"
+
|
+
You can <s>strike out deleted material</s>
+
 
and <u>underline new material</u>.
 
and <u>underline new material</u>.
 
+
</td>
You can also mark <del>deleted material</del> and
+
<td><pre><nowiki>You can <strike>strike out deleted material</strike>
<ins>inserted material</ins> using logical markup
+
and <u>underline new material</u>.</nowiki></pre>
rather than visual markup.
+
</td>
 
+
</tr>
* When editing regular Wikipedia articles, just make your changes and don't mark them up in any special way.
+
<tr valign="top">
* When editing your own previous remarks in talk pages, it is sometimes appropriate to mark up deleted or inserted material.
+
<td>
|
+
'''Umlauts and accents:''' (See [[MediaWiki User's Guide: Creating special characters]])<br/>
<pre><nowiki>
+
è é ê ë ì í<br/>
You can <s>strike out deleted material</s>
+
and <u>underline new material</u>.
+
 
+
You can also mark <del>deleted material</del> and
+
<ins>inserted material</ins> using logical markup
+
rather than visual markup.
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Diacritical marks:'''
+
 
<br/>
 
<br/>
è é ê ë ì í
+
&Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; <br/>
 +
&AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; <br/>
 +
&Igrave; &Iacute;
 +
&Icirc; &Iuml; &Ntilde; &Ograve; <br/>
 +
&Oacute; &Ocirc; &Otilde;
 +
&Ouml; &Oslash; &Ugrave; <br/>
 +
&Uacute; &Ucirc; &Uuml; &szlig;
 +
&agrave; &aacute; <br/>
 +
&acirc; &atilde; &auml; &aring; &aelig;
 +
&ccedil; <br/>
 +
&egrave; &eacute; &ecirc; &euml; &igrave; &iacute;<br/>
 +
&icirc; &iuml; &ntilde; &ograve; &oacute; &ocirc; <br/>
 +
&oelig; &otilde;
 +
&ouml; &oslash; &ugrave; &uacute; <br/>
 +
&ucirc; &uuml; &yuml;
 +
</td>
 +
<td><pre><nowiki>
  
À Á Â Ã Ä Å <br/>
 
Æ Ç È É Ê Ë <br/>
 
Ì Í
 
Î Ï Ñ Ò <br/>
 
Ó Ô Õ
 
Ö Ø Ù <br/>
 
Ú Û Ü ß
 
à á <br/>
 
â ã ä å æ
 
ç <br/>
 
è é ê ë ì í<br/>
 
î ï ñ ò ó ô <br/>
 
&oelig; õ
 
ö ø ù ú <br/>
 
û ü ÿ
 
 
* See [[Wikipedia:Special characters]].
 
|
 
<br/>
 
<pre><nowiki>
 
 
è é ê ë ì í
 
è é ê ë ì í
  
&amp;Agrave; &amp;Aacute; &amp;Acirc; &amp;Atilde; &amp;Auml; &amp;Aring;  
+
&amp;Agrave; &amp;Aacute; &amp;Acirc; &amp;Atilde; &amp;Auml; &amp;Aring;
&amp;AElig; &amp;Ccedil; &amp;Egrave; &amp;Eacute; &amp;Ecirc; &amp;Euml;  
+
&amp;AElig; &amp;Ccedil; &amp;Egrave; &amp;Eacute; &amp;Ecirc; &amp;Euml;
&amp;Igrave; &amp;Iacute; &amp;Icirc; &amp;Iuml; &amp;Ntilde; &amp;Ograve;  
+
&amp;Igrave; &amp;Iacute; &amp;Icirc; &amp;Iuml; &amp;Ntilde; &amp;Ograve;
&amp;Oacute; &amp;Ocirc; &amp;Otilde; &amp;Ouml; &amp;Oslash; &amp;Ugrave;  
+
&amp;Oacute; &amp;Ocirc; &amp;Otilde; &amp;Ouml; &amp;Oslash; &amp;Ugrave;
&amp;Uacute; &amp;Ucirc; &amp;Uuml; &amp;szlig; &amp;agrave; &amp;aacute;  
+
&amp;Uacute; &amp;Ucirc; &amp;Uuml; &amp;szlig; &amp;agrave; &amp;aacute;
&amp;acirc; &amp;atilde; &amp;auml; &amp;aring; &amp;aelig; &amp;ccedil;  
+
&amp;acirc; &amp;atilde; &amp;auml; &amp;aring; &amp;aelig; &amp;ccedil;
 
&amp;egrave; &amp;eacute; &amp;ecirc; &amp;euml; &amp;igrave; &amp;iacute;
 
&amp;egrave; &amp;eacute; &amp;ecirc; &amp;euml; &amp;igrave; &amp;iacute;
&amp;icirc; &amp;iuml; &amp;ntilde; &amp;ograve; &amp;oacute; &amp;ocirc;  
+
&amp;icirc; &amp;iuml; &amp;ntilde; &amp;ograve; &amp;oacute; &amp;ocirc;
&amp;oelig; &amp;otilde; &amp;ouml; &amp;oslash; &amp;ugrave; &amp;uacute;  
+
&amp;oelig; &amp;otilde; &amp;ouml; &amp;oslash; &amp;ugrave; &amp;uacute;
&amp;ucirc; &amp;uuml; &amp;yuml;
+
&amp;ucirc; &amp;uuml; &amp;yuml;</nowiki></pre></td>
</nowiki></pre>
+
</tr>
|- valign="top"
+
<tr valign=top>
|
+
<td>
'''Punctuation:'''
+
'''Punctuation:'''<br/>
<br/>
+
&iquest; &iexcl; &laquo; &raquo; &sect; &para;<br/>
¿ ¡ § ¶<br/>
+
&dagger; &Dagger; &bull; &mdash;
&dagger; &Dagger; &bull; &ndash; &mdash;<br/>
+
</td>
&lsaquo; &rsaquo; « »<br/>
+
<td><pre><nowiki>
&lsquo; &rsquo; &ldquo; &rdquo;
+
&amp;iquest; &amp;iexcl; &amp;laquo; &amp;raquo; &amp;sect; &amp;para;
|
+
&amp;dagger; &amp;Dagger; &amp;bull; &amp;mdash;</nowiki></pre></td>
<br/>
+
</tr>
<pre><nowiki>
+
<tr valign="top">
&amp;iquest; &amp;iexcl; &amp;sect; &amp;para;
+
<td>
&amp;dagger; &amp;Dagger; &amp;bull; &amp;ndash; &amp;mdash;
+
'''Commercial symbols:'''<br/>
&amp;lsaquo; &amp;rsaquo; &amp;laquo; &amp;raquo;
+
&trade; &copy; &reg; &cent; &euro; &yen; <br/>
&amp;lsquo; &amp;rsquo; &amp;ldquo; &amp;rdquo;
+
&pound; &curren;</td>
</nowiki></pre>
+
<td><pre><nowiki>
|- valign="top"
+
&amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;
|
+
'''Commercial symbols:'''
+
<br/>
+
&trade; © ® ¢ &euro; ¥<br/>
+
£ ¤
+
|
+
<br/>
+
<pre><nowiki>
+
&amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;  
+
 
&amp;pound; &amp;curren;
 
&amp;pound; &amp;curren;
</nowiki></pre>
+
</nowiki></pre></td>
|- valign="top"
+
</tr>
|
+
<tr valign="top" id="subscript"><td>Subscript: x<sub>2</sub><br/>
'''Subscripts:'''
+
Superscript: x<sup>2</sup> or x&sup2;
<br/>
+
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub>
+
 
+
'''Superscripts:'''
+
<br/>
+
x<sup>1</sup> x<sup>2</sup> x<sup>3</sup>
+
or x&sup1; x&sup2; x&sup3;
+
*The latter method of superscripting can't be used in the most general context, but is preferred when possible (as with units of measurement) because most browsers have an easier time formatting lines with it.
+
  
 +
*The latter method of superscript can't be used in the most general context, but is preferred when possible (as with units of measurement) because most browsers have an easier time formatting lines with it.
 
&epsilon;<sub>0</sub> =
 
&epsilon;<sub>0</sub> =
 
8.85 &times; 10<sup>&minus;12</sup>
 
8.85 &times; 10<sup>&minus;12</sup>
 
C&sup2; / J m.
 
C&sup2; / J m.
 
1 [[hectare]] = [[1 E4 m&sup2;]]
 
|
 
 
<br/>
 
<br/>
<pre><nowiki>
+
<br/>
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub>
+
1 [[hectare]] = [[1 E4 m²]]
</nowiki></pre>
+
</td>
 +
<td><pre><nowiki>Subscript: x<sub>2</sub>
 +
Superscript: x<sup>2</sup> or x&amp;sup2;
  
<pre><nowiki>
+
or in projects with the templates sub and sup:
x<sup>1</sup> x<sup>2</sup> x<sup>3</sup>
+
 
or x&amp;sup1; x&amp;sup2; x&amp;sup3;
+
Subscript: x{{sub|2}}
 +
Superscript: x{{sup|2}}
  
 
&amp;epsilon;<sub>0</sub> =
 
&amp;epsilon;<sub>0</sub> =
Line 808: Line 600:
 
C&amp;sup2; / J m.
 
C&amp;sup2; / J m.
  
1 [[hectare]] = [[1 E4 m&amp;sup2;]]
+
1 [[hectare]] = [[1 E4 ]]
</nowiki></pre>
+
</nowiki></pre></td>
|- valign="top"
+
</tr>
|
+
<tr valign="top"><td>'''Greek characters:''' <br/>
'''Greek characters:'''
+
&alpha; &beta; &gamma; &delta; &epsilon; &zeta; <br/>
<br/>
+
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu; <br/>
&alpha; &beta; &gamma; &delta; &epsilon; &zeta;<br/>
+
&xi; &omicron; &pi; &rho; &sigma; &sigmaf; <br/>
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu;<br/>
+
&xi; &omicron; &pi; &rho; &sigma; &sigmaf;<br/>
+
 
&tau; &upsilon; &phi; &chi; &psi; &omega;<br/>
 
&tau; &upsilon; &phi; &chi; &psi; &omega;<br/>
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi;<br/>
+
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi; <br/>
 
&Sigma; &Phi; &Psi; &Omega;
 
&Sigma; &Phi; &Psi; &Omega;
|
+
</td>
<br/>
+
<td><pre><nowiki>
<pre><nowiki>
+
&amp;alpha; &amp;beta; &amp;gamma; &amp;delta; &amp;epsilon; &amp;zeta;
&amp;alpha; &amp;beta; &amp;gamma; &amp;delta; &amp;epsilon; &amp;zeta;  
+
&amp;eta; &amp;theta; &amp;iota; &amp;kappa; &amp;lambda; &amp;mu; &amp;nu;
&amp;eta; &amp;theta; &amp;iota; &amp;kappa; &amp;lambda; &amp;mu; &amp;nu;  
+
&amp;xi; &amp;omicron; &amp;pi; &amp;rho; &amp;sigma; &amp;sigmaf;
&amp;xi; &amp;omicron; &amp;pi; &amp;rho; &amp;sigma; &amp;sigmaf;
+
 
&amp;tau; &amp;upsilon; &amp;phi; &amp;chi; &amp;psi; &amp;omega;
 
&amp;tau; &amp;upsilon; &amp;phi; &amp;chi; &amp;psi; &amp;omega;
&amp;Gamma; &amp;Delta; &amp;Theta; &amp;Lambda; &amp;Xi; &amp;Pi;  
+
&amp;Gamma; &amp;Delta; &amp;Theta; &amp;Lambda; &amp;Xi; &amp;Pi;
 
&amp;Sigma; &amp;Phi; &amp;Psi; &amp;Omega;
 
&amp;Sigma; &amp;Phi; &amp;Psi; &amp;Omega;
</nowiki></pre>
+
</nowiki></pre></td>
|- valign="top"
+
</tr>
|
+
<tr valign="top">
'''Math characters:'''
+
<td>
<br/>
+
'''Math characters:''' <br/>
 
&int; &sum; &prod; &radic; &minus; &plusmn; &infin;<br/>
 
&int; &sum; &prod; &radic; &minus; &plusmn; &infin;<br/>
&asymp; &prop; &equiv; &ne; &le; &ge; &rarr;<br/>
+
&asymp; &prop; &equiv; &ne; &le; &ge;<br/>
 
&times; &middot; &divide; &part; &prime; &Prime;<br/>
 
&times; &middot; &divide; &part; &prime; &Prime;<br/>
 
&nabla; &permil; &deg; &there4; &alefsym; &oslash;<br/>
 
&nabla; &permil; &deg; &there4; &alefsym; &oslash;<br/>
 
&isin; &notin; &cap; &cup; &sub; &sup; &sube; &supe;<br/>
 
&isin; &notin; &cap; &cup; &sub; &sup; &sube; &supe;<br/>
 
&not; &and; &or; &exist; &forall; &rArr; &hArr;<br/>
 
&not; &and; &or; &exist; &forall; &rArr; &hArr;<br/>
&rarr; &harr;<br/>
+
&rarr; &harr; &uarr;<br/>
* See also [[Wikipedia:WikiProject Mathematics|WikiProject Mathematics]].
+
</td>
|
+
<td valign="middle"><pre><nowiki>
<br/>
+
<pre><nowiki>
+
 
&amp;int; &amp;sum; &amp;prod; &amp;radic; &amp;minus; &amp;plusmn; &amp;infin;
 
&amp;int; &amp;sum; &amp;prod; &amp;radic; &amp;minus; &amp;plusmn; &amp;infin;
&amp;asymp; &amp;prop; &amp;equiv; &amp;ne; &amp;le; &amp;ge; &amp;rarr;
+
&amp;asymp; &amp;prop; &amp;equiv; &amp;ne; &amp;le; &amp;ge; &amp;times; &amp;middot; &amp;divide; &amp;part; &amp;prime; &amp;Prime;
&amp;times; &amp;middot; &amp;divide; &amp;part; &amp;prime; &amp;Prime;
+
 
&amp;nabla; &amp;permil; &amp;deg; &amp;there4; &amp;alefsym; &amp;oslash;
 
&amp;nabla; &amp;permil; &amp;deg; &amp;there4; &amp;alefsym; &amp;oslash;
 
&amp;isin; &amp;notin; &amp;cap; &amp;cup; &amp;sub; &amp;sup; &amp;sube; &amp;supe;
 
&amp;isin; &amp;notin; &amp;cap; &amp;cup; &amp;sub; &amp;sup; &amp;sube; &amp;supe;
 
&amp;not; &amp;and; &amp;or; &amp;exist; &amp;forall; &amp;rArr; &amp;hArr;
 
&amp;not; &amp;and; &amp;or; &amp;exist; &amp;forall; &amp;rArr; &amp;hArr;
&amp;rarr; &amp;harr;
+
&amp;rarr; &amp;harr; &amp;uarr;
 +
</nowiki></pre></td>
 +
</tr>
 +
<tr valign="top"><td><i>x</i><sup>2</sup>&nbsp;&nbsp;&nbsp;&ge;&nbsp;&nbsp;&nbsp;0 true.
 +
*To space things out, use non-breaking spaces - <tt>&amp;nbsp;</tt>.
 +
*<tt>&amp;nbsp;</tt> also prevents line breaks in the middle of text, this is useful in formulas.
 +
</td>
 +
<td><pre><nowiki>
 +
<i>x</i><sup>2</sup>&amp;nbsp;&amp;nbsp;&amp;ge;&amp;nbsp;&amp;nbsp;0 true.
 +
</nowiki></pre></td>
 +
</tr>
 +
<tr>
 +
<td>
 +
'''Complicated formulae:'''<br/>
 +
&nbsp;&nbsp;<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
 +
* See [[MediaWiki User's Guide: Editing mathematical formulae:TeX markup|TeX markup]]
 +
</td>
 +
<td><pre><nowiki>
 +
<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
 
</nowiki></pre>
 
</nowiki></pre>
|- valign="top"
+
</td>
|
+
</tr>
'''Spacing in simple math formulas:'''
+
<tr>
<br/>
+
<td>
Obviously, ''x''&sup2;&nbsp;&ge;&nbsp;0 is true.
+
'''For comparison for the following examples:'''
*To space things out without allowing line breaks to interrupt the formula, use non-breaking spaces: <tt>&amp;nbsp;</tt>.
+
|
+
<br/>
+
<pre><nowiki>
+
Obviously, ''x''&amp;sup2;&amp;nbsp;&amp;ge;&amp;nbsp;0 is true.
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Complicated formulas:'''
+
<br/>
+
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
+
* See [[m:Help:Formula]] for how to use <tt>&lt;math></tt>.
+
* A formula displayed on a line by itself should probably be indented by using the colon (:) character.
+
|
+
<br/>
+
<pre><nowiki>
+
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Suppressing interpretation of markup:'''
+
<br/>
+
<nowiki>Link &rarr; (''to'') the [[Wikipedia FAQ]]</nowiki>
+
* Used to show literal data that would otherwise have special meaning.
+
* Escape all wiki markup, including that which looks like HTML tags.
+
* Does not escape HTML character references.
+
* To escape HTML character references such as <tt>&amp;rarr;</tt> use <tt>&amp;amp;rarr;</tt>
+
|
+
<br/>
+
<pre><nowiki>
+
&lt;nowiki>Link &amp;rarr; (''to'')
+
the [[Wikipedia FAQ]]&lt;/nowiki>
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Commenting page source:'''
+
<br/>
+
''not shown when viewing page''
+
* Used to leave comments in a page for future editors.
+
* Note that most comments should go on the appropriate [[Wikipedia:Talk page|Talk page]].
+
|
+
<br/>
+
<pre><nowiki>
+
&lt;!-- comment here -->
+
</nowiki></pre>
+
|}
+
''(see also: [[Chess symbols in Unicode]])''
+
  
=== Tables ===
+
arrow      &rarr;
  
==== Placement of the Table of Contents (TOC) ====
+
''italics''
At the current status of the wiki markup language, having at least four headers on a page triggers the TOC to appear in front of the first header (or after introductory sections).  Putting <nowiki>__TOC__</nowiki> anywhere forces the TOC to appear at that point (instead of just before the first header).  Putting <nowiki>__NOTOC__</nowiki> anywhere forces the TOC to disappear.  See also [[Wikipedia:Section#Compact_TOC|compact TOC]] for alphabet and year headings.
+
[[link]]
 +
</td>
 +
<td valign="bottom">
 +
<pre><nowiki>arrow      &amp;rarr;
  
==== Keeping headings out of the Table of Contents ====
+
''italics''
 +
[[link]]</nowiki></pre>
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
'''Use &lt;nowiki> to suppress interpretation of wiki markup, but interpret character references and remove newlines and multiple spaces:'''
  
If you want some subheadings to not appear in the Table of Contents, then make the following replacements.
+
<nowiki>arrow      &rarr;
  
Replace  <nowiki> == Header 2 == with <h2> Header 2 </h2> </nowiki>
+
''italics''
 +
[[link]]
 +
</nowiki>
 +
</td>
 +
<td valign="bottom">
 +
<pre><nowiki><nowiki>arrow      &amp;rarr;
  
Replace  <nowiki> === Header 3 === with <h3> Header 3 </h3> </nowiki>
+
''italics''
 +
[[link]]</nowiki></nowiki></pre>
  
And so forth.
+
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
'''Use &lt;pre> to suppress interpretation of wiki markup and keep newlines and multiple spaces, and get typewriter font, but interpret character references:'''
  
For example, notice that the following header has the same font as the other subheaders to this "Tables" section, but the following header does not appear in the Table of Contents for this page.
+
<pre>arrow      &rarr;
  
<h4> This header has the h4 font, but is NOT in the Table of Contents </h4>
+
''italics''
 +
[[link]]
 +
</pre>
 +
</td>
 +
<td valign="bottom">
 +
<pre><nowiki><pre>arrow      &amp;rarr;
  
This effect is obtained by the following line of code.
+
''italics''
 +
[[link]]</pre></nowiki></pre>
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
'''Use leading space on each line to keep newlines and multiple spaces, and get typewriter font:
 +
arrow      &rarr;
  
<nowiki><h4> This header has the h4 font, but is NOT in the Table of Contents </h4></nowiki>
+
''italics''
 +
[[link]]
 +
</pre>
 +
</td>
 +
<td valign="bottom">
 +
<pre> <nowiki>arrow      &amp;rarr;
 +
 
 +
''italics''
 +
[[link]]</nowiki></pre>
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
'''Use typewriter font:'''
 +
 
 +
<tt>arrow      &rarr;</tt>
 +
 
 +
<tt>''italics''</tt>
 +
<tt>[[link]]</tt>
 +
 
 +
</td>
 +
<td valign="bottom">
 +
<pre><nowiki><tt>arrow      &amp;rarr;</tt>
 +
 
 +
<tt>''italics''</tt>
 +
<tt>[[link]]</nowiki></tt></pre>
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
'''Show character references:'''
 +
 
 +
&amp;rarr;
 +
</td>
 +
<td valign="bottom">
 +
&amp;amp;rarr;</pre>
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
'''Commenting page source:'''<br/>
 +
''not shown in page''
 +
* Used to leave comments in a page for future editors.
 +
</td>
 +
<td>
 +
<pre><nowiki><!-- comment here --></nowiki></pre>
 +
</td>
 +
</tr>
 +
</table>
  
 +
=== HTML Tables ===
  
==== Tables ====
+
[[en:HTML|HTML]] tables can be quite useful as well. For details on how to use them and discussion about when they are appropriate, see [[m:Help:Table]].
There are two ways to build tables:  
+
*in special Wiki-markup (see [[m:Help:Table]])
+
*with the usual HTML elements: &lt;table&gt;, &lt;tr&gt;, &lt;td&gt; or &lt;th&gt;.
+
  
For the latter, and a discussion on when tables are appropriate, see [[Wikipedia:How to use tables]].
+
==Templates==
  
===Variables===
+
Some part of a page may correspond in the edit box to just a reference to another page, in the form <nowiki>{{</nowiki>''name''<nowiki>}}</nowiki>, referring to the page "Template:''name''" (or if the name starts with a namespace prefix, it refers to the page with that name; if it starts with a colon it refers to the page in the main namespace with that name without the colon). This is called a [[help:template|template]]. For changing that part of the page, edit that other page. Sometimes a separate edit link is provided for this purpose. A convenient way to put such a link in a template is with a template like [[m:Template:ed]]. Note that the change also affects other pages which use the same template.
  
''(See also [[m:Help:Variable]])''
+
==Page protection==
{|
+
|-
+
! Code
+
! Effect
+
|-
+
| <nowiki>{{CURRENTMONTH}}</nowiki> || {{CURRENTMONTH}}
+
|-
+
| <nowiki>{{CURRENTMONTHNAME}}</nowiki>
+
| {{CURRENTMONTHNAME}}
+
|-
+
| <nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki>
+
| {{CURRENTMONTHNAMEGEN}}
+
|-
+
| <nowiki>{{CURRENTDAY}}</nowiki> || {{CURRENTDAY}}
+
|-
+
| <nowiki>{{CURRENTDAYNAME}}</nowiki> || {{CURRENTDAYNAME}}
+
|-
+
| <nowiki>{{CURRENTYEAR}}</nowiki> || {{CURRENTYEAR}}
+
|-
+
| <nowiki>{{CURRENTTIME}}</nowiki> || {{CURRENTTIME}}
+
|-
+
| <nowiki>{{NUMBEROFARTICLES}}</nowiki>
+
| {{NUMBEROFARTICLES}}
+
|-
+
| <nowiki>{{PAGENAME}}</nowiki> || {{PAGENAME}}
+
|-
+
| <nowiki>{{NAMESPACE}}</nowiki> || {{NAMESPACE}}
+
|-
+
| <nowiki>{{localurl:pagename}}</nowiki>
+
| {{localurl:pagename}}
+
|-
+
| <nowiki>{{localurl:</nowiki>''Wikipedia:Sandbox''<nowiki>|action=edit}}</nowiki>
+
| {{localurl:Wikipedia:Sandbox|action=edit}}
+
|-
+
| <nowiki>{{SERVER}}</nowiki> || {{SERVER}}
+
|-
+
| <nowiki>{{ns:1}}</nowiki> || {{ns:1}}
+
|-
+
| <nowiki>{{ns:2}}</nowiki> || {{ns:2}}
+
|-
+
| <nowiki>{{ns:3}}</nowiki> || {{ns:3}}
+
|-
+
| <nowiki>{{ns:4}}</nowiki> || {{ns:4}}
+
|-
+
| <nowiki>{{ns:5}}</nowiki> || {{ns:5}}
+
|-
+
| <nowiki>{{ns:6}}</nowiki> || {{ns:6}}
+
|-
+
| <nowiki>{{ns:7}}</nowiki> || {{ns:7}}
+
|-
+
| <nowiki>{{ns:8}}</nowiki> || {{ns:8}}
+
|-
+
| <nowiki>{{ns:9}}</nowiki> || {{ns:9}}
+
|-
+
| <nowiki>{{ns:10}}</nowiki> || {{ns:10}}
+
|-
+
| <nowiki>{{ns:11}}</nowiki> || {{ns:11}}
+
|-
+
| <nowiki>{{ns:12}}</nowiki> || {{ns:12}}
+
|-
+
| <nowiki>{{ns:13}}</nowiki> || {{ns:13}}
+
|-
+
| <nowiki>{{ns:14}}</nowiki> || {{ns:14}}
+
|-
+
| <nowiki>{{ns:15}}</nowiki> || {{ns:15}}
+
|-
+
| <nowiki>{{SITENAME}}</nowiki> || {{SITENAME}}
+
|}
+
  
'''NUMBEROFARTICLES''' is the number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages.
+
In a few cases the link labeled "{{MediaWiki:Editthispage}}" is replaced by the text "{{MediaWiki:Protectedpage}}" (or equivalents in the language of the project). In that case the page can not be edited.
  
===Templates===
+
==Position-independent wikitext==
  
The [[Wikipedia:MediaWiki|MediaWiki]] software used by Wikipedia has limited support for template inclusion. This means standardized text chunks (such as boilerplate text) can be inserted into articles. For example, typing <nowiki>{{stub}}</nowiki> will appear as ''This article is a [[Wikipedia:The perfect stub article|stub]]. You can help Wikipedia by [[Wikipedia:Find or fix a stub|expanding it]].'' when the page is saved. See [[Wikipedia:Template messages]] for the complete list. Other commonly used ones are: <nowiki>{{disambig}}</nowiki> for disambiguation pages, <nowiki>{{spoiler}}</nowiki> for spoiler warnings and <nowiki>{{sectstub}}</nowiki> like an article stub but for a section. The are many subject-specific stubs e.g.: <nowiki> {{Geo-stub}}, {{Hist-stub}} and {{Linux-stub}}</nowiki>. For a complete list of stubs see [[Wikipedia:Template messages#Stubs]].
+
Wikitext for which the result does not depend on the position in the wikitext page:
  
===Hiding the edit links===
+
*[[interlanguage link]]s (see also above) - the mutual order is preserved, but otherwise the positions within the page are immaterial
 +
*[[category]] specification - ditto
 +
*<nowiki>__NOTOC__, __FORCETOC__</nowiki>, see [[Help:Section]]
  
Insert '''<nowiki>__NOEDITSECTION__</nowiki>''' into the document to suppress the edit links that appear next to every section header.
+
==Separating edits==
  
==See also==
+
When moving or copying a piece of text within a page or from another page, and also making other edits, it is useful to separate these edits. This way the [[Help:Diff|diff function]] can be usefully applied for checking these other edits.
*[[m:Help:Editing|Mediawiki user's guide to editing]]
+
*[[Wikipedia:MediaWiki]].
+
*[[HTML element]].
+
*[[Wikipedia:Protection policy]]
+
  
<!-- Interlanguage links -->
+
==External links==
[[ar:&#1608;&#1610;&#1603;&#1610;&#1576;&#1610;&#1583;&#1610;&#1575;:&#1605;&#1587;&#1575;&#1593;&#1583;&#1577; &#1575;&#1604;&#1578;&#1581;&#1585;&#1610;&#1585;]]
+
*[http://home.earthlink.net/~awinkelried/keyboard_shortcuts.html Special characters in HTML]
[[be:&#1042;&#1110;&#1082;&#1110;&#1087;&#1101;&#1076;&#1099;&#1103;:&#1071;&#1082; &#1088;&#1101;&#1076;&#1072;&#1075;&#1072;&#1074;&#1072;&#1094;&#1100; &#1110;&#1089;&#1085;&#1091;&#1102;&#1095;&#1099; &#1072;&#1088;&#1090;&#1099;&#1082;&#1091;&#1083;]][[bg:&#1059;&#1080;&#1082;&#1080;&#1087;&#1077;&#1076;&#1080;&#1103;:&#1050;&#1072;&#1082; &#1089;&#1077; &#1088;&#1077;&#1076;&#1072;&#1082;&#1090;&#1080;&#1088;&#1072;&#1090; &#1089;&#1090;&#1088;&#1072;&#1085;&#1080;&#1094;&#1080;]]
+
[[ca:Viquipèdia:Com s'edita una pàgina]]
+
[[cs:Wikipedie:Jak editovat stránku]]
+
[[da:Wikipedia:Hvordan redigerer jeg en side]]
+
[[de:Wikipedia:Handbuch - Artikel bearbeiten]]
+
[[el:Wikipedia:&#928;&#974;&#962; &#957;&#945; &#949;&#960;&#949;&#958;&#949;&#961;&#947;&#945;&#963;&#964;&#949;&#943;&#964;&#949; &#956;&#953;&#945; &#963;&#949;&#955;&#943;&#948;&#945;]]
+
[[eo:Vikipedio:Kiel redakti pagxon]]
+
[[es:Wikipedia:Cómo se edita una página]]
+
[[fi:Wikipedia:Kuinka_sivuja_muokataan]]
+
[[fr:Wikipédia:Syntaxe wikipédia]]
+
[[ga:Vicipéid:Conas a cuirtear leathanach in eagar]]
+
[[he:&#1493;&#1497;&#1511;&#1497;&#1508;&#1491;&#1497;&#1492;:&#1488;&#1497;&#1498; &#1500;&#1506;&#1512;&#1493;&#1498; &#1491;&#1507;]]
+
[[hi:&#2354;&#2375;&#2326; &#2325;&#2379; &#2325;&#2376;&#2360;&#2375; &#2348;&#2342;&#2354;&#2375;&#2306;]]
+
[[hu:Wikipédia:Hogyan szerkessz egy lapot]]
+
[[id:Wikipedia:Menyunting_sebuah_halaman]]
+
[[it:Wikipedia:Guida_essenziale]]
+
[[lt:Wikipedia:Kaip_Redaguoti_Puslap%C4%AF]]
+
[[ja:Wikipedia:&#32232;&#38598;&#12398;&#20181;&#26041;]]
+
[[no:Wikipedia:Hvordan man redigerer en side]]
+
[[nn:Hjelp:Redigering]]
+
[[pt:Wikipedia:Como_editar_uma_p%C3%A1gina]]
+
[[ro:Wikipedia:Cum s&#259; editezi o pagin&#259;]]
+
[[ru:&#1050;&#1072;&#1082; &#1088;&#1077;&#1076;&#1072;&#1082;&#1090;&#1080;&#1088;&#1086;&#1074;&#1072;&#1090;&#1100; &#1089;&#1090;&#1088;&#1072;&#1085;&#1080;&#1094;&#1091;]]
+
[[simple:Wikipedia:How to edit]]
+
[[sl:Wikipedija:Urejevanje slovenskih strani]]
+
[[sr:%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%9A%D0%B0%D0%BA%D0%BE_%D1%81%D0%B5_%D0%BC%D0%B5%D1%9A%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B0]]
+
[[sv:Wikipedia:Hur man redigerar en sida]]
+
[[th:Wikipedia:&#3585;&#3634;&#3619;&#3649;&#3585;&#3657;&#3652;&#3586;&#3627;&#3609;&#3657;&#3634;]]
+
[[tr:Wikipedia:Sayfa_nas%C4%B1l_de%C4%9Fi%C5%9Ftirilir]]
+
[[ur:%D8%B5%D9%81%D8%AD%DB%81_%DA%A9%D8%B3_%D8%B7%D8%B1%D8%AD_%D8%AA%D8%B1%D9%85%D9%8A%D9%85_%DA%A9%D8%B1%D9%8A%DA%BA]]
+
[[vi:Wikipedia:C%C3%A1ch_ch%E1%BB%8Dn_l%E1%BB%8Dc_trang]]
+
[[zh-cn:Wikipedia:%E5%A6%82%E4%BD%95%E7%BC%96%E8%BE%91%E9%A1%B5%E9%9D%A2]]
+
[[zh-tw:Wikipedia:&#22914;&#20309;&#32232;&#36655;&#38913;&#38754;]]
+

Revision as of 01:55, 26 November 2004

Contents

Don't be afraid to edit

Editing a Wiki page is very easy. Simply click on the "Edit this page" tab at the top (or the edit link on the right or bottom) of a Wiki page. This will bring you to a page with a text box containing the editable text of that page. If you want to experiment, please do so in our sandbox, not here. You could open the sandbox in a separate window or tab to be able to see both this text and your tests in the sandbox.

Type away, write a short edit summary on the small field below the edit-box. You may use shorthand to describe your changes, as described in the legend, and when you've finished, press preview to see how your changes will look. Then press "Save". Depending on your system, pressing "Enter" while the edit box is not active (when there is no typing cursor in it) may have the same effect as pressing the "Save" button. Also, please do not vandalise the information on Wikipedia.

You can also click on the "Discussion" tab (or the "Discuss this page" link) to see the corresponding talk page, which contains comments about the page from other Wikipedia users. Click on the "+" tab (or "Edit this page") to add a comment.

Tips on editing wiki articles

It is often more convenient to copy and paste the text first into your favorite text editor, edit and spell check there, and then paste back into the browser to preview. This way, you can also keep a local backup copy of the pages you authored so that you can make changes offline.

If during editing you want to see the current version again, open "Cancel" in a new window. This does not cancel your edit.

Markup shortcuts

Links: [[Link Title]]; [[Link Title | Label for Link Title]]; url; [url]; [url Label].
Emphasis: ''italics''; '''bold'''; '''''bold italics'''''; ''mixed '''bold''' and italics&apos'.
Headings: = Title 1 =; == Title 2 ==; === Title 3 ===; ==== Title 4 ====; ===== Title 5 =====.
Lists: "* " starting line is bullets; "# " is numbered list; ---- horizontal rule.

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.

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 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".

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 (you can find their specific edits by using the "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.


Dummy edit

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 newlines 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). Also it is sometimes needed to refresh the cache of some item in the database, see e.g. A category tag in a template; caching problem.

Minor edits

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 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".

The reason for not allowing a user who is not logged in to mark an edit as minor is that vandalism could then be marked as a minor edit, in which case it would stay unnoticed longer. This limitation is another reason to log in.

The wiki markup

In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column.

You may want to keep this page open in a separate browser window for reference. If you want to try out things without danger of doing any harm, you can do so in the Sandbox.

Sections, paragraphs, lists and lines

What it looks like What you type

Start your sections with header lines:


New section

Subsection

Sub-subsection


== New section ==

=== Subsection ===

==== Sub-subsection ====

Newline:

A single newline has no effect on the layout.

But an empty line starts a new paragraph.

(<p> disables this paragraphing until </p> or the end of the section)

(in Cologne Blue two newlines and a div tag give just one newline; in the order newline, div tag, newline, the result is two newlines)


A single
newline
has no
effect on the
layout.

But an empty line
starts a new paragraph.
You can break lines
without starting a new paragraph.

Sufficient as wikitext code is <br>, the XHTML code <br /> is not needed, the system produces this code.

You can break lines<br>
without starting a new paragraph.
  • Lists are easy to do:
    • start every line with a star
      • more stars means deeper levels
  • A newline
  • in a list

marks the end of the list.

  • Of course
  • you can
  • start again.
* Lists are easy to do:
** start every line with a star
*** more stars means deeper levels
*A newline
*in a list  
marks the end of the list.
*Of course
*you can
*start again.

  1. Numbered lists are also good
    1. very organized
    2. easy to follow
  2. A newline
  3. in a list

marks the end of the list.

  1. New numbering starts
  2. with 1.
# Numbered lists are also good
## very organized
## easy to follow
#A newline
#in a list  
marks the end of the list.
#New numbering starts
#with 1.
  • You can even do mixed lists
    1. and nest them
      • like this
        or have newlines
        inside lists
* You can even do mixed lists
*# and nest them
*#* like this<br>or have newlines<br>inside lists
  • You can also
    • break lines
      inside lists
      like this
* You can also
**break lines<br>inside lists<br>like this
Definition list 
list of definitions
item 
the item's definition
; Definition list : list
of definitions
; item : the item's definition
A colon indents a line or paragraph.

A manual newline starts a new paragraph.

  • This is primarily for displayed material, but is also used for discussion on Talk pages.
: A colon indents a line or paragraph.
A manual newline starts a new paragraph.
IF a line of plain text starts with a space THEN
  it will be formatted exactly
    as typed;
  in a fixed-width font;
  lines won't wrap;
ENDIF
this is useful for:
  * pasting preformatted text;
  * algorithm descriptions;
  * program source code
  * ASCII art;
  * chemical structures;

WARNING If you make it wide, you force the whole page to be wide and hence less readable. Never start ordinary lines with spaces.

(see also below)
 IF a line of plain text starts with a space THEN
   it will be formatted exactly
     as typed;
   in a fixed-width font;
   lines won't wrap;
 ENDIF
 this is useful for:
   * pasting preformatted text;
   * algorithm descriptions;
   * program source code
   * ASCII art;
   * chemical structures;
Centered text.
<center>Centered text.</center>
A horizontal dividing line: above

and below.

Mainly useful for separating threads on Talk pages.

A horizontal dividing line: above
----
and below. 

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

What it looks like What you type
Sue is reading the video policy.
  • 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).

Thus the link above is to http://meta.wikipedia.org/wiki/Video_policy, which is the page with the name "Video policy".

Sue is reading the [[video policy]].

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:

  • links to non-existent sections
  • links in redirects
  • interwiki links
[[List_of_cities_by_country#Morocco]].
Link target and link label are different: answers.

(This is called a piped link).

Same target, different name:
[[User:Larry Sanger|answers]]
Endings are blended into the link: official positions, genes
Endings are blended
into the link: [[official position]]s, [[gene]]s

Automatically hide stuff in parentheses: kingdom.

Automatically hide namespace: Village pump.

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.

Automatically hide stuff in parentheses:
[[kingdom (biology)|]]. 
Automatically hide namespace:
[[Wikipedia:Village pump|]].
When adding a comment to a Talk page,

you should sign it. You can do this by adding three tildes for your user name:

Karl Wick

or four for user name plus date/time:

Karl Wick 08:10 Oct 5, 2002 (UTC)
When adding a comment to a Talk page,
you should sign it. You can do this by
adding three tildes for your user name:
: ~~~
or four for user name plus date/time:
: ~~~~
The weather in London is a page that doesn't exist yet.
  • You can create it by clicking on the link.
  • To create a new page:
    1. Create a link to it on some other page.
    2. Save that page.
    3. Click on the link you just made. The new page will open for editing.
  • Have a look at how to start a page guide and the naming conventions page for your project.
[[The weather in London]] is a page
that doesn't exist yet.

Redirect one article title to another by putting text like this in its first line.

#REDIRECT [[United States]]

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.

[[fr:Wikipédia:Aide]], [[:fr:Wikipédia:Aide]]
"What links here" and "Related changes" can be linked as:

Special:Whatlinkshere/Wikipedia:How to edit a page and Special:Recentchangeslinked/Wikipedia:How to edit a page

[[Special:Whatlinkshere/
Wikipedia:How to edit a page]] and
[[Special:Recentchangeslinked/
Wikipedia:How to edit a page]]
External links: Nupedia, [1]
External links:
[http://www.nupedia.com Nupedia],
[http://www.nupedia.com]
Or just give the URL: http://www.nupedia.com.
  • In the URL all symbols must be among: A-Z a-z 0-9 ._\/~%-+&#?!=()@ \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 ASCII). A blank space can also be converted into an underscore.
Or just give the URL:
http://www.nupedia.com.

To link to books, you can use ISBN links. ISBN 0123456789X See Help:ISBN links

ISBN 0123456789X

Link to Request for Comments: RFC 123 (URL specified in mediawiki:Rfcurl)

RFC 123

To include links to non-image uploads such as sounds, use a "media" link.
Sound


[[media:Sg_mrob.ogg|Sound]]
Use links for dates, so everyone can set their own display order. Use Special:Preferences to change your own date display setting.
[[July 20]], [[1969]] , [[20 July]] [[1969]]
and [[1969]]-[[07-20]]
will all appear as 20 July 1969 if you set your date display preference to 1 January 2001.

Images

What it looks like What you type
A picture: Wikipedia - The Free Encyclopedia
  • For many projects, only images that have been uploaded to the same project or the Commons can be used. To upload images, use the upload page. You can find the uploaded image on the image list
A picture: [[Image:Wiki.png]]

or, with alternate text (strongly encouraged)

[[Image:Wiki.png|Wikipedia 
- The Free Encyclopedia]] 

Web browsers render alternate text when not displaying an image -- for example, when the image isn't loaded, or in a text-only browser, or when spoken aloud. See Alternate text for images for help on choosing alternate text. See Extended image syntax for more options.

Clicking on an uploaded image displays a description page, which you can also link directly to: Image:Wiki.png

[[:Image:Wiki.png]]

To include links to images shown as links instead of drawn on the page, use a "media" link.
Image of a Tornado


[[media:Tornado.jpg|Image of a Tornado]]

Character formatting

<tr> <td> Use leading space on each line to keep newlines and multiple spaces, and get typewriter font: arrow → italicslink </pre> </td> <td valign="bottom">
 arrow      &rarr;

 ''italics''
 [[link]]

</td> </tr> <tr> <td> Use typewriter font:

arrow →

italics link

</td> <td valign="bottom">

<tt>arrow      &rarr;</tt>

<tt>''italics''</tt>
<tt>[[link]]</tt>

</td> </tr> <tr> <td> Show character references:

&rarr; </td> <td valign="bottom"> &amp;rarr;</pre> </td> </tr> <tr> <td> Commenting page source:
not shown in page

  • Used to leave comments in a page for future editors.

</td> <td>

<!-- comment here -->

</td> </tr> </table>

HTML Tables

HTML tables can be quite useful as well. For details on how to use them and discussion about when they are appropriate, see m:Help:Table.

Templates

Some part of a page may correspond in the edit box to just a reference to another page, in the form {{name}}, referring to the page "Template:name" (or if the name starts with a namespace prefix, it refers to the page with that name; if it starts with a colon it refers to the page in the main namespace with that name without the colon). This is called a template. For changing that part of the page, edit that other page. Sometimes a separate edit link is provided for this purpose. A convenient way to put such a link in a template is with a template like m:Template:ed. Note that the change also affects other pages which use the same template.

Page protection

In a few cases the link labeled "Edit this page" is replaced by the text "Protected page" (or equivalents in the language of the project). In that case the page can not be edited.

Position-independent wikitext

Wikitext for which the result does not depend on the position in the wikitext page:

  • interlanguage links (see also above) - the mutual order is preserved, but otherwise the positions within the page are immaterial
  • category specification - ditto
  • __NOTOC__, __FORCETOC__, see Help:Section

Separating edits

When moving or copying a piece of text within a page or from another page, and also making other edits, it is useful to separate these edits. This way the diff function can be usefully applied for checking these other edits.

External links

What it looks like What you type

Emphasize, strongly, very strongly.

  • These are double and triple apostrophes, not double quotes.
''Emphasize'', '''strongly''',
'''''very strongly'''''.

You can also write italic and bold if the desired effect is a specific font style rather than emphasis, as in mathematical formulae:

F = ma
  • However, the difference between these two methods is not very important for graphical browsers, and many people choose to ignore it.
You can also write <i>italic</i>
and <b>bold</b> if the desired effect is a 
specific font style rather than emphasis, as 
in mathematical formulas:
:<b>F</b> = <i>m</i><b>a</b>
A typewriter font for technical terms.
A typewriter font for 
<tt>technical terms</tt>.
You can use small text for captions.
You can use <small>small text</small> 
for captions.
You can strike out deleted material

and underline new material.

You can <strike>strike out deleted material</strike>
and <u>underline new material</u>.

Umlauts and accents: (See MediaWiki User's Guide: Creating special characters)
è é ê ë ì í

À Á Â Ã Ä Å
Æ Ç È É Ê Ë
Ì Í Î Ï Ñ Ò
Ó Ô Õ Ö Ø Ù
Ú Û Ü ß à á
â ã ä å æ ç
è é ê ë ì í
î ï ñ ò ó ô
œ õ ö ø ù ú
û ü ÿ


è é ê ë ì í

&Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring;
&AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml;
&Igrave; &Iacute; &Icirc; &Iuml; &Ntilde; &Ograve;
&Oacute; &Ocirc; &Otilde; &Ouml; &Oslash; &Ugrave;
&Uacute; &Ucirc; &Uuml; &szlig; &agrave; &aacute;
&acirc; &atilde; &auml; &aring; &aelig; &ccedil;
&egrave; &eacute; &ecirc; &euml; &igrave; &iacute;
&icirc; &iuml; &ntilde; &ograve; &oacute; &ocirc;
&oelig; &otilde; &ouml; &oslash; &ugrave; &uacute;
&ucirc; &uuml; &yuml;

Punctuation:
¿ ¡ « » § ¶
† ‡ • —

&iquest; &iexcl; &laquo; &raquo; &sect; &para;
&dagger; &Dagger; &bull; &mdash;

Commercial symbols:
™ © ® ¢ € ¥

£ ¤
&trade; &copy; &reg; &cent; &euro; &yen;
&pound; &curren;
Subscript: x2

Superscript: x2 or x²

  • The latter method of superscript can't be used in the most general context, but is preferred when possible (as with units of measurement) because most browsers have an easier time formatting lines with it.

ε0 = 8.85 × 10−12 C² / J m.

1 hectare = 1 E4 m²

Subscript: x<sub>2</sub>
Superscript: x<sup>2</sup> or x&sup2;

or in projects with the templates sub and sup:

Subscript: x{{sub|2}}
Superscript: x{{sup|2}}

&epsilon;<sub>0</sub> =
8.85 &times; 10<sup>&minus;12</sup>
C&sup2; / J m.

1 [[hectare]] = [[1 E4 m²]]
Greek characters:

α β γ δ ε ζ
η θ ι κ λ μ ν
ξ ο π ρ σ ς
τ υ φ χ ψ ω
Γ Δ Θ Λ Ξ Π
Σ Φ Ψ Ω

&alpha; &beta; &gamma; &delta; &epsilon; &zeta;
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu;
&xi; &omicron; &pi; &rho;  &sigma; &sigmaf;
&tau; &upsilon; &phi; &chi; &psi; &omega;
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi;
&Sigma; &Phi; &Psi; &Omega;

Math characters:
∫ ∑ ∏ √ − ± ∞
≈ ∝ ≡ ≠ ≤ ≥
× · ÷ ∂ ′ ″
∇ ‰ ° ∴ ℵ ø
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀ ⇒ ⇔
→ ↔ ↑

&int; &sum; &prod; &radic; &minus; &plusmn; &infin;
&asymp; &prop; &equiv; &ne; &le; &ge; &times; &middot; &divide; &part; &prime; &Prime;
&nabla; &permil; &deg; &there4; &alefsym; &oslash;
&isin; &notin; &cap; &cup; &sub; &sup; &sube; &supe;
&not; &and; &or; &exist; &forall; &rArr; &hArr;
&rarr; &harr; &uarr;
x2   ≥   0 true.
  • To space things out, use non-breaking spaces - &nbsp;.
  • &nbsp; also prevents line breaks in the middle of text, this is useful in formulas.
<i>x</i><sup>2</sup>&nbsp;&nbsp;&ge;&nbsp;&nbsp;0 true.

Complicated formulae:
  <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>

<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>

For comparison for the following examples:

arrow →

italics link

arrow      &rarr;

''italics''
[[link]]

Use <nowiki> to suppress interpretation of wiki markup, but interpret character references and remove newlines and multiple spaces:

arrow → ''italics'' [[link]]

<nowiki>arrow      &rarr;

''italics''
[[link]]</nowiki>

Use <pre> to suppress interpretation of wiki markup and keep newlines and multiple spaces, and get typewriter font, but interpret character references:

arrow      →

''italics''
[[link]]
<nowiki><pre>arrow      &rarr;

''italics''
[[link]]
</nowiki></pre>