Help:Editing: Difference between revisions

Jump to navigation Jump to search
2,095 bytes removed ,  5 March 2010
No edit summary
Line 35: Line 35:
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 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.


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]].
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  ===
=== Sections, paragraphs, lists and lines  ===
Line 44: Line 45:
{| cellspacing="0" cellpadding="2" border="1"
{| cellspacing="0" cellpadding="2" border="1"
|-
|-
! What it looks like
! What it looks like  
! What you type
! What you type
|-
|-
Line 62: Line 63:
'''<font style="font-size: 100%;">Sub-subsection</font>'''  
'''<font style="font-size: 100%;">Sub-subsection</font>'''  


| <pre>
| <pre>== New section ==
== New section ==


=== Subsection ===
=== Subsection ===


==== Sub-subsection ====
==== Sub-subsection ====
</pre>  
</pre>
|-
|-
|  
|  
Line 81: Line 81:
(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)  
(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)  


| <pre>
| <pre>A single
A single
newline
newline
has no
has no
Line 89: Line 88:


But an empty line
But an empty line
starts a new paragraph.</pre>  
starts a new paragraph.</pre>
|- valign="top"
|- valign="top"
| You can break lines<br> without starting a new paragraph.
| You can break lines<br> without starting a new paragraph.  
Sufficient as wikitext code is &lt;br&gt;, the XHTML code &lt;br /&gt; is not needed, the system produces this code.
Sufficient as wikitext code is &lt;br&gt;, the XHTML code &lt;br /&gt; is not needed, the system produces this code.  


| <pre>You can break lines&lt;br&gt;
| <pre>You can break lines&lt;br&gt;
without starting a new paragraph.</pre>  
without starting a new paragraph.</pre>
|-
|-
|  
|  
Line 120: Line 119:
*start again.
*start again.


</pre>  
</pre>
|-
|-
|  
|  
Line 142: Line 141:
#New numbering starts
#New numbering starts
#with 1.
#with 1.
</pre>  
</pre>
|-
|-
|  
|  
Line 151: Line 150:
| <pre>* You can even do mixed lists
| <pre>* You can even do mixed lists
*# and nest them
*# and nest them
*#* like this&lt;br&gt;or have newlines&lt;br&gt;inside lists</pre>  
*#* like this&lt;br&gt;or have newlines&lt;br&gt;inside lists</pre>
|-
|-
|  
|  
Line 158: Line 157:


| <pre>* You can also
| <pre>* You can also
**break lines&lt;br&gt;inside lists&lt;br&gt;like this</pre>  
**break lines&lt;br&gt;inside lists&lt;br&gt;like this</pre>
|-
|-
|  
|  
;Definition list&nbsp;
;Definition list&nbsp;  
:list of definitions  
:list of definitions  
;item&nbsp;
;item&nbsp;  
:the item's definition
:the item's definition


| <pre>; Definition list&nbsp;: list
| <pre>; Definition list&nbsp;: list
of definitions
of definitions
; item&nbsp;: the item's definition</pre>  
; item&nbsp;: the item's definition</pre>
|-
|-
|  
|  
Line 179: Line 178:
| <pre>: A colon indents a line or paragraph.
| <pre>: A colon indents a line or paragraph.
A manual newline starts a new paragraph.
A manual newline starts a new paragraph.
</pre>  
</pre>
|- valign="top"
|- valign="top"
| <pre>IF a line of plain text starts with a space THEN
| <pre>IF a line of plain text starts with a space THEN
Line 209: Line 208:
|- valign="top"
|- valign="top"
| <center>Centered text.</center>  
| <center>Centered text.</center>  
| <pre>&lt;center&gt;Centered text.&lt;/center&gt;</pre>  
| <pre>&lt;center&gt;Centered text.&lt;/center&gt;</pre>
|-
|-
| A [[En:horizontal dividing line|horizontal dividing line]]: above  
| A [[En:horizontal dividing line|horizontal dividing line]]: above  
Line 220: Line 219:
| <pre>A horizontal dividing line: above
| <pre>A horizontal dividing line: above
----
----
and below. </pre>  
and below. </pre>
|}
|}


Summarizing the effect of a single newline: no effect in general, but it ends a list item or indented part; thus changing some text into a list item, or indenting it, is more cumbersome if it contains newlines, they have to be removed; see also [[W:Wikipedia:Don't use line breaks]].
Summarizing the effect of a single newline: no effect in general, but it ends a list item or indented part; thus changing some text into a list item, or indenting it, is more cumbersome if it contains newlines, they have to be removed; see also [[W:Wikipedia:Don't use line breaks]].  


=== Links, URLs ===
=== Links, URLs ===


<table border="1" cellpadding="2" cellspacing="0">
{| cellspacing="0" cellpadding="2" border="1"
<tr>
|-
<th>What it looks like</th>
! What it looks like
<th>What you type</th>
! What you type
</tr>
|- valign="top"
<tr valign="top"><td>Sue is reading the [[video policy]].
| Sue is reading the [[Video policy]].  
*First letter of target is automatically capitalized.
*First letter of target is automatically capitalized.  
*Internally spaces are automatically represented as underscores (typing an underscore has the same effect as typing a space, but is not recommended).
*Internally spaces are automatically represented as underscores (typing an underscore has the same effect as typing a space, but is not recommended).
Thus the [[link]] above is to <nowiki>http://meta.wikipedia.org/wiki/Video_policy</nowiki>, which is the page with the name "Video policy".
</td>
<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]].


(This is called a [[piped link]]).
Thus the [[Link]] above is to <nowiki>http://meta.wikipedia.org/wiki/Video_policy</nowiki>, which is the page with the name "Video policy".
</td>
 
<td><pre><nowiki>Same target, different name:
| <pre>Sue is reading the [[video policy]].</pre>
[[User:Larry Sanger|answers]]</nowiki></pre>
|-
</td>
|
</tr>
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:
<tr valign="top">
 
<td>Endings are blended into the link: [[official position]]s, [[gene]]s</td>
*links to non-existent sections
<td>
*links in redirects
<pre><nowiki>Endings are blended
*interwiki links
into the link: [[official position]]s, [[gene]]s</nowiki></pre>
 
</td>
| <pre>[[List_of_cities_by_country#Morocco]].</pre>
</tr>
|- valign="top"
<tr valign="top">
| Link target and link label are different: [[User:Larry Sanger|answers]].
<td>
(This is called a [[Piped link]]).  
Automatically hide stuff in parentheses: [[kingdom (biology)|kingdom]].
 
<p>Automatically hide namespace: [[Wikipedia:Village pump|Village pump]].</p>
| <pre>Same target, different name:
<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>
[[User:Larry Sanger|answers]]</pre>  
</td>
|- valign="top"
<td>
| Endings are blended into the link: [[Official position]]s, [[Gene]]s
<pre><nowiki>Automatically hide stuff in parentheses:
| <pre>Endings are blended
[[kingdom (biology)|]]. </nowiki></pre>
into the link: [[official position]]s, [[gene]]s</pre>  
<pre><nowiki>Automatically hide namespace:
|- valign="top"
[[Wikipedia:Village pump|]].</nowiki></pre>
|
</td></tr>
Automatically hide stuff in parentheses: [[Kingdom (biology)|kingdom]].  
<tr>
 
<td>When adding a comment to a Talk page,
Automatically hide namespace: [[Wikipedia:Village pump|Village pump]].
you should sign it. You can do this by
 
adding three tildes for your user name:
The server fills in the part after the &#124; 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.
: [[User:Karl Wick|Karl Wick]]
 
or four for user name plus date/time:
| <pre>Automatically hide stuff in parentheses:
: [[User:Karl Wick|Karl Wick]] 08:10 Oct 5, 2002 (UTC)
[[kingdom (biology)|]]. </pre> <pre>Automatically hide namespace:
</td>
[[Wikipedia:Village pump|]].</pre>
<td><pre><nowiki>When adding a comment to a Talk page,
|-
| When adding a comment to a Talk page,  
you should sign it. You can do this by adding three tildes for your user name:  
 
:[[User:Karl Wick|Karl Wick]]
 
or four for user name plus date/time:  
 
:[[User:Karl Wick|Karl Wick]] 08:10 Oct 5, 2002 (UTC)
 
| <pre>When adding a comment to a Talk page,
you should sign it. You can do this by
you should sign it. You can do this by
adding three tildes for your user name:
adding three tildes for your user name:
: ~~~
: ~~~
or four for user name plus date/time:
or four for user name plus date/time:
: ~~~~</nowiki></pre>
: ~~~~</pre>  
</td>
|- valign="top"
</tr>
| [[The weather in London]] is a page that doesn't exist yet.  
<tr valign="top"><td>[[The weather in London]] is a page that doesn't exist yet.
*You can create it by clicking on the link.  
*You can create it by clicking on the link.
*To create a new page:  
*To create a new page:
*#Create a link to it on some other page.  
*#Create a link to it on some other page.
*#Save that page.  
*#Save that page.
*#Click on the link you just made. The new page will open for editing.  
*#Click on the link you just made. The new page will open for editing.
*Have a look at [[MediaWiki User's Guide: Starting a new page|how to start a page]] guide and the naming conventions page for your project.
*Have a look at [[MediaWiki User's Guide: Starting a new page|how to start a page]] guide and the naming conventions page for your project.
</td>
 
<td><pre><nowiki>[[The weather in London]] is a page
| <pre>[[The weather in London]] is a page
that doesn't exist yet.</nowiki></pre>
that doesn't exist yet.</pre>  
</td>
|- valign="top"
</tr>
|
<tr valign="top"><td>
[[MediaWiki User's Guide: Using redirects|Redirect]] one article title to another by putting text like this in its first line.  
[[MediaWiki User's Guide: Using redirects|Redirect]] one article title to another by putting text like this in its first line.
 
</td>
| <pre>#REDIRECT [[United States]]</pre>  
<td><pre><nowiki>#REDIRECT [[United States]]</nowiki></pre>
|- valign="top"
</td>
|
</tr>
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]].  
<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:
| <pre>[[fr:Wikip�dia:Aide]], [[:fr:Wikip�dia:Aide]]</pre>
[[fr:Wikip�dia:Aide]].  
|-
For more info see [[MediaWiki User's Guide: Interwiki linking]].
| "What links here" and "Related changes" can be linked as:<br>  
</td>
[[Special:Whatlinkshere/Wikipedia:How to edit a page]] and [[Special:Recentchangeslinked/Wikipedia:How to edit a page]]  
<td><pre><nowiki>[[fr:Wikip�dia:Aide]], [[:fr:Wikip�dia:Aide]]</nowiki></pre></td>
 
</tr>
| <pre>[[Special:Whatlinkshere/
<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]]
</td>
<td><pre><nowiki>
[[Special:Whatlinkshere/
Wikipedia:How to edit a page]] and
Wikipedia:How to edit a page]] and
[[Special:Recentchangeslinked/
[[Special:Recentchangeslinked/
Wikipedia:How to edit a page]]</nowiki></pre>
Wikipedia:How to edit a page]]</pre>  
</td>
|- valign="top"
</tr>
| External links: [http://www.nupedia.com Nupedia], [http://www.nupedia.com]  
<tr valign="top"><td>External links: [http://www.nupedia.com Nupedia], [http://www.nupedia.com]
| <pre>External links:
</td>
<td><pre><nowiki>External links:
[http://www.nupedia.com Nupedia],
[http://www.nupedia.com Nupedia],
[http://www.nupedia.com]</nowiki></pre>
[http://www.nupedia.com]</pre>  
</td>
|- valign="top"
</tr>
| Or just give the URL: http://www.nupedia.com.  
<tr valign="top"><td>Or just give the URL: http://www.nupedia.com.
*In the [[En:URL|URL]] all symbols must be among: A-Z a-z 0-9 ._\/~%-+&amp;#?!=()@ \x80-\xFF. If a URL contains a different character it should be converted; for example, ^ has to be written&nbsp;%5E (to be looked up in [[En:ASCII|ASCII]]). A blank space can also be converted into an underscore.
*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.
 
</td>
| <pre>Or just give the URL:
<td><pre><nowiki>Or just give the URL:
http://www.nupedia.com.</pre>  
http://www.nupedia.com.</nowiki></pre>
|-
</td>
|
</tr>
To link to a bug in Mozilla's Bugzilla, use the <tt>bug</tt> template. {{bug|322603}}  
<tr>
 
<td>
| <pre>{{bug&#124;322603}}</pre>  
To link to a bug in Mozilla's Bugzilla, use the <tt>bug</tt> template.
|-
{{bug|322603}}
|
</td>
To link to books, you can use [[En:ISBN|ISBN]] links. ISBN 0123456789X See [[Help:ISBN links]]  
<td>
 
<pre><nowiki>{{bug|322603}}</nowiki></pre>
| <pre>ISBN 0123456789X</pre>  
</td>
|-
</tr>
|
<tr>
Link to [[W:Request for Comments|Request for Comments]]: RFC 123 (URL specified in [[MediaWiki:Rfcurl]])  
<td>
 
To link to books, you can use [[en:ISBN|ISBN]] links.
| <pre>RFC 123</pre>  
ISBN 0123456789X See [[Help:ISBN links]]
|-
</td>
|
<td>
To include links to non-image uploads such as sounds, use a "media" link. <br>[[Media:Sg_mrob.ogg|Sound]]  
<pre><nowiki>ISBN 0123456789X</nowiki></pre>
 
</td>
| <pre>
</tr>
<tr>
<td>
Link to [[w:Request for Comments|Request for Comments]]: RFC 123 (URL specified in [[mediawiki:Rfcurl]])
</td>
<td>
<pre><nowiki>RFC 123</nowiki></pre>
</td>
</tr>
<tr>
<td>
To include links to non-image uploads such as sounds, use a "media" link.
<br/>[[media:Sg_mrob.ogg|Sound]]
</td>
<td>
<pre>
<nowiki>
[[media:Sg_mrob.ogg|Sound]]
[[media:Sg_mrob.ogg|Sound]]
</nowiki></pre>
</pre>  
</td>
|- valign="top"
</tr>
| Use links for dates, so everyone can set their own display order. Use [[Special:Preferences]] to change your own date display setting.  
<tr valign=top>
| <pre>[[July 20]], [[1969]] , [[20 July]] [[1969]]
<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]]
and [[1969]]-[[07-20]]
</nowiki></pre>will all appear as [[20 July]] [[1969]] if you set your date display preference to 1 January 2001.
</pre>will all appear as [[20 July]] [[1969]] if you set your date display preference to 1 January 2001.  
</td>
|}
</tr>
</table>


=== Images ===
=== Images ===
 
{| cellspacing="0" cellpadding="2" border="1"
|-
! What it looks like
! What you type
|- valign="top"
| A picture: [[Image:Wiki.png|Wikipedia - The Free Encyclopedia]]
*For many projects, only images that have been uploaded to the same project can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]]
 
| <pre>A picture: [[Image:Wiki.png]]</pre>
or, with alternate text (''strongly'' encouraged) <!-- actually required in HTML4 -->
<pre>[[Image:Wiki.png&#124;Wikipedia
- The Free Encyclopedia]]
</pre>
[[En:Web browser|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 [[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.
 
|-
|
Clicking on an uploaded image displays a description page, which you can also link directly to: [[:Image:Wiki.png]]


<table border="1" cellpadding="2" cellspacing="0">
| <pre>[[:Image:Wiki.png]]
<tr>
</pre>  
<th>What it looks like</th>
|-
<th>What you type</th>
|  
</tr>
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]]  
<tr valign="top"><td>A picture: [[Image:Wiki.png|Wikipedia - The Free Encyclopedia]]
* For many projects, only images that have been uploaded to the same project can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]]
</td>
<td><pre><nowiki>
A picture: [[Image:Wiki.png]]</nowiki></pre>
or, with alternate text (''strongly'' encouraged) <!-- actually required in HTML4 -->
<pre><nowiki>[[Image:Wiki.png|Wikipedia
- The Free Encyclopedia]] </nowiki>
</pre>
[[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>
</tr>
<tr>
<td>
Clicking on an uploaded image displays a description page, which you can also link directly to: [[:Image:Wiki.png]]
</td>
<td><pre><nowiki>
[[:Image:Wiki.png]]
</nowiki></pre>
</td>
</tr>


<tr>
| <pre>
<td>
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]]
</td>
<td>
<pre>
<nowiki>
[[media:Tornado.jpg|Image of a Tornado]]
[[media:Tornado.jpg|Image of a Tornado]]
</nowiki></pre>
</pre>  
</td>
|}
</tr>


</table>
=== Character formatting  ===


=== Character formatting ===
{| cellspacing="0" cellpadding="2" border="1"
|-
! What it looks like
! What you type
|- valign="top"
|
''Emphasize'', '''strongly''', '''''very strongly'''''.


<table border="1" cellpadding="2" cellspacing="0">
<tr>
<th>What it looks like</th>
<th>What you type</th>
</tr>
<tr valign="top"><td>
''Emphasize'', '''strongly''', '''''very strongly'''''.
*These are double and triple apostrophes, not double quotes.
*These are double and triple apostrophes, not double quotes.
</td>
 
<td>
| <pre>''Emphasize'', '''strongly''',
<pre><nowiki>''Emphasize'', '''strongly''',
'''''very strongly'''''.</pre>  
'''''very strongly'''''.</nowiki></pre>
|- valign="top"
</td>
|
</tr>
You can also write ''italic'' and '''bold''' if the desired effect is a specific font style rather than emphasis, as in mathematical formulae:  
<tr valign="top"><td>
 
You can also write <i>italic</i> and <b>bold</b>
:'''F''' = ''m'''''a'''
if the desired effect is a specific font style
 
rather than emphasis, as in mathematical formulae:
:<b>F</b> = <i>m</i><b>a</b>
*However, the difference between these two methods is not very important for graphical browsers, and many people choose to ignore it.
*However, the difference between these two methods is not very important for graphical browsers, and many people choose to ignore it.
</td>
 
<td>
| <pre>You can also write &lt;i&gt;italic&lt;/i&gt;
<pre><nowiki>You can also write <i>italic</i>
and &lt;b&gt;bold&lt;/b&gt; if the desired effect is a  
and <b>bold</b> if the desired effect is a  
specific font style rather than emphasis, as  
specific font style rather than emphasis, as  
in mathematical formulas:
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 -->
:&lt;b&gt;F&lt;/b&gt; = &lt;i&gt;m&lt;/i&gt;&lt;b&gt;a&lt;/b&gt;</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 -->  
</td>
|- valign="top"
</tr>
| A typewriter font for <tt>technical terms</tt>.  
<tr valign="top">
| <pre>A typewriter font for  
<td>A typewriter font for <tt>technical terms</tt>.
&lt;tt&gt;technical terms&lt;/tt&gt;.</pre>  
</td>
|- valign="top"
<td><pre><nowiki>A typewriter font for  
| You can use <small>small text</small> for captions.  
<tt>technical terms</tt>.</nowiki></pre>
| <pre>You can use &lt;small&gt;small text&lt;/small&gt;
</td><!-- tt is really 'teletype', not 'technical term' -->
for captions.</pre>  
</tr>
|- valign="top"
<tr valign="top">
| You can <strike>strike out deleted material</strike>  
<td>You can use <small>small text</small> for captions.
and <u>underline new material</u>.  
</td>
 
<td><pre><nowiki>You can use <small>small text</small>
| <pre>You can &lt;strike&gt;strike out deleted material&lt;/strike&gt;
for captions.</nowiki></pre>
and &lt;u&gt;underline new material&lt;/u&gt;.</pre>  
</td>
|- valign="top"
</tr>
|
<tr valign="top"><td>You can <strike>strike out deleted material</strike>
'''Umlauts and accents:''' (See [[MediaWiki User's Guide: Creating special characters]])<br> è é ê ë ì í<br> <br> À Á Â Ã Ä Å <br> Æ Ç È É Ê Ë <br> Ì Í Î Ï Ñ Ò <br> Ó Ô Õ Ö Ø Ù <br> Ú Û Ü ß à á <br> â ã ä å æ ç <br> è é ê ë ì í<br> î ï ñ ò ó ô <br> œ õ ö ø ù ú <br> û ü ÿ
and <u>underline new material</u>.
</td>
<td><pre><nowiki>You can <strike>strike out deleted material</strike>
and <u>underline new material</u>.</nowiki></pre>
</td>
</tr>
<tr valign="top">
<td>
'''Umlauts and accents:''' (See [[MediaWiki User's Guide: Creating special characters]])<br/>
è é ê ë ì í<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>


| <pre>
è é ê ë ì í
è é ê ë ì í


Line 520: Line 442:
&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;</nowiki></pre></td>
&amp;ucirc; &amp;uuml; &amp;yuml;</pre>
</tr>
|- valign="top"
<tr valign="top">
|
<td>
'''Punctuation:'''<br> ¿ ¡ « » § ¶<br> † ‡ • —
'''Punctuation:'''<br/>
 
&iquest; &iexcl; &laquo; &raquo; &sect; &para;<br/>
| <pre>&amp;iquest; &amp;iexcl; &amp;laquo; &amp;raquo; &amp;sect; &amp;para;
&dagger; &Dagger; &bull; &mdash;
&amp;dagger; &amp;Dagger; &amp;bull; &amp;mdash;</pre>
</td>
|- valign="top"
<td><pre><nowiki>
|
&amp;iquest; &amp;iexcl; &amp;laquo; &amp;raquo; &amp;sect; &amp;para;
'''Commercial symbols:'''<br> ™ © ® ¢ € ¥ <br>  
&amp;dagger; &amp;Dagger; &amp;bull; &amp;mdash;</nowiki></pre></td>
£ ¤
</tr>
| <pre>&amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;
<tr valign="top">
<td>
'''Commercial symbols:'''<br/>
&trade; &copy; &reg; &cent; &euro; &yen; <br/>
&pound; &curren;</td>
<td><pre><nowiki>
&amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;
&amp;pound; &amp;curren;
&amp;pound; &amp;curren;
</nowiki></pre></td>
</pre>
</tr>
|- valign="top" id="subscript"
<tr valign="top" id="subscript"><td>Subscript: x<sub>2</sub><br/>
| Subscript: x<sub>2</sub><br>  
Superscript: x<sup>2</sup> or x&sup2;
Superscript: x<sup>2</sup> or


*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.
*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> =
 
8.85 &times; 10<sup>&minus;12</sup>
ε<sub>0</sub> = 8.85 × 10<sup>−12</sup> / J m. <br> <br> 1 [[Hectare]] = [[1 E4 m²]]  
C&sup2; / J m.
 
<br/>
| <pre>Subscript: x&lt;sub&gt;2&lt;/sub&gt;
<br/>
Superscript: x&lt;sup&gt;2&lt;/sup&gt; or x&amp;sup2;
1 [[hectare]] = [[1 E4 m²]]
</td>
<td><pre><nowiki>Subscript: x<sub>2</sub>
Superscript: x<sup>2</sup> or x&amp;sup2;


or in projects with the templates sub and sup:
or in projects with the templates sub and sup:


Subscript: x{{sub|2}}
Subscript: x{{sub&#124;2}}
Superscript: x{{sup|2}}
Superscript: x{{sup&#124;2}}


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


1 [[hectare]] = [[1 E4 m²]]
1 [[hectare]] = [[1 E4 m²]]
</nowiki></pre></td>
</pre>
</tr>
|- valign="top"
<tr valign="top"><td>'''Greek characters:''' <br/>
| '''Greek characters:''' <br>  
&alpha; &beta; &gamma; &delta; &epsilon; &zeta; <br/>
α β γ δ ε ζ <br> η θ ι κ λ μ ν <br> ξ ο π ρ σ ς <br> τ υ φ χ ψ ω<br> Γ Δ Θ Λ Ξ Π <br> Σ Φ Ψ Ω
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu; <br/>
 
&xi; &omicron; &pi; &rho;  &sigma; &sigmaf; <br/>
| <pre>&amp;alpha; &amp;beta; &amp;gamma; &amp;delta; &amp;epsilon; &amp;zeta;
&tau; &upsilon; &phi; &chi; &psi; &omega;<br/>
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi; <br/>
&Sigma; &Phi; &Psi; &Omega;
</td>
<td><pre><nowiki>
&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;
Line 583: Line 488:
&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></td>
</pre>
</tr>
|- valign="top"
<tr valign="top">
|
<td>
'''Math characters:''' <br> ∫ ∑ ∏ √ − ± ∞<br> ≈ ∝ ≡ ≠ ≤ ≥ →<br> × · ÷ ∂ ′ ″<br> ∇ ‰ ° ∴ ℵ ø<br> ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇<br> ¬ ∧ ∨ ∃ ∀ ⇒ ⇔<br> → ↔<br>  
'''Math characters:''' <br/>
 
&int; &sum; &prod; &radic; &minus; &plusmn; &infin;<br/>
| valign="middle" | <pre>&amp;int; &amp;sum; &amp;prod; &amp;radic; &amp;minus; &amp;plusmn; &amp;infin;
&asymp; &prop; &equiv; &ne; &le; &ge; &rarr;<br/>
&times; &middot; &divide; &part; &prime; &Prime;<br/>
&nabla; &permil; &deg; &there4; &alefsym; &oslash;<br/>
&isin; &notin; &cap; &cup; &sub; &sup; &sube; &supe;<br/>
&not; &and; &or; &exist; &forall; &rArr; &hArr;<br/>
&rarr; &harr;<br/>
</td>
<td valign="middle"><pre><nowiki>
&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;rarr;
&amp;times; &amp;middot; &amp;divide; &amp;part; &amp;prime; &amp;Prime;
&amp;times; &amp;middot; &amp;divide; &amp;part; &amp;prime; &amp;Prime;
Line 603: Line 499:
&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;</nowiki></pre></td>
&amp;rarr; &amp;harr;</pre>
</tr>
|- valign="top"
<tr valign="top"><td><i>x</i><sup>2</sup>&nbsp;&nbsp;&nbsp;&ge;&nbsp;&nbsp;&nbsp;0 true.
| ''x''<sup>2</sup>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 true.  
*To space things out, use non-breaking spaces - <tt>&amp;nbsp;</tt>.
*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.
*<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>
</td>
</tr>
<tr>
<td>
'''For comparison for the following examples:'''


arrow      &rarr;
| <pre>&lt;i&gt;x&lt;/i&gt;&lt;sup&gt;2&lt;/sup&gt;&amp;nbsp;&amp;nbsp;&amp;ge;&amp;nbsp;&amp;nbsp;0 true.
</pre>
|-
|
'''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]]
 
| <pre>&lt;math&gt;\sum_{n=0}^\infty \frac{x^n}{n!}&lt;/math&gt;
</pre>
|-
|
'''For comparison for the following examples:'''
 
arrow →
 
''italics'' [[Link]]


''italics''
| valign="bottom" | <pre>arrow      &amp;rarr;
[[link]]
</td>
<td valign="bottom">
<pre><nowiki>arrow      &amp;rarr;


''italics''
''italics''
[[link]]</nowiki></pre>
[[link]]</pre>  
</td>
|-
</tr>
|
<tr>
'''Use &lt;nowiki&gt; to suppress interpretation of wiki markup, but interpret character references and remove newlines and multiple spaces:'''  
<td>
'''Use &lt;nowiki> to suppress interpretation of wiki markup, but interpret character references and remove newlines and multiple spaces:'''


<nowiki>arrow      &rarr;
<nowiki>arrow      &rarr;
Line 648: Line 535:
''italics''
''italics''
[[link]]
[[link]]
</nowiki>
</nowiki>  
</td>
 
<td valign="bottom">
| valign="bottom" | <pre>&lt;nowiki&gt;arrow      &amp;rarr;
<pre><nowiki><nowiki>arrow      &amp;rarr;


''italics''
''italics''
[[link]]</nowiki></nowiki></pre>
[[link]]&lt;/nowiki&gt;</pre>  
</td>
|-
</tr>
|
<tr>
'''Use &lt;pre&gt; to suppress interpretation of wiki markup and keep newlines and multiple spaces, and get typewriter font, but interpret character references:'''  
<td>
<pre>arrow     
'''Use &lt;pre> to suppress interpretation of wiki markup and keep newlines and multiple spaces, and get typewriter font, but interpret character references:'''
 
<pre>arrow      &rarr;


''italics''
''italics''
[[link]]
[[link]]
</pre>
</pre>  
</td>
| valign="bottom" | <!-- <pre> or <nowiki> inside <pre> breaks the renderer --> <pre>&lt;pre&gt;arrow      &amp;rarr;
<td valign="bottom">
<!-- <pre> or <nowiki> inside <pre> breaks the renderer -->
<pre>&lt;pre>arrow      &amp;rarr;


''italics''
''italics''
[[link]]&lt;/pre></pre>
[[link]]&lt;/pre&gt;</pre>  
</td>
|-
</tr>
|
<tr>
'''Use leading space on each line to keep newlines and multiple spaces, and get typewriter font:'''
<td>
 
'''Use leading space on each line to keep newlines and multiple spaces, and get typewriter font:
  arrow     
  arrow      &rarr;
   
   
  ''italics''
  ''italics''
  [[link]]
  [[Link]]
</td>
 
<td valign="bottom">
| valign="bottom" | <pre> arrow      &amp;rarr;
<pre> arrow      &amp;rarr;


  ''italics''
  ''italics''
  [[link]]</pre>
  [[link]]</pre>  
</td>
|-
</tr>
|
<tr>
'''Use typewriter font:'''  
<td>
'''Use typewriter font:'''


<tt>arrow     &rarr;</tt>
<tt>arrow </tt>  


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


</td>
| valign="bottom" | <pre>&lt;tt&gt;arrow      &amp;rarr;&lt;/tt&gt;
<td valign="bottom">
<pre><tt>arrow      &amp;rarr;</tt>


<tt>''italics''</tt>
&lt;tt&gt;''italics''&lt;/tt&gt;
<tt>[[link]]</tt></pre>
&lt;tt&gt;[[link]]&lt;/tt&gt;</pre>  
</td>
|-
</tr>
|
<tr>
'''Show character references:'''  
<td>
'''Show character references:'''


&amp;rarr;
&amp;rarr;  
</td>
 
<td valign="bottom">
| valign="bottom" | <pre>&amp;amp;rarr;</pre>  
<pre>&amp;amp;rarr;</pre>
|-
</td>
|
</tr>
'''Commenting page source:'''<br> ''not shown in page''  
<tr>
 
<td>
*Used to leave comments in a page for future editors.
'''Commenting page source:'''<br/>
 
''not shown in page''
| <pre>&lt;!-- comment here --&gt;</pre>  
* Used to leave comments in a page for future editors.
|}
</td>
<td>
<pre>&lt;!-- comment here --&gt;</pre>
</td>
</tr>
</table>


=== HTML Tables ===
=== 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 [[Help:Table]].
HTML tables can be quite useful as well. For details on how to use them and discussion about when they are appropriate, see [[Help:Table]].
18

edits

Navigation menu