Jump to content

Help:Editing: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Chuck Marean (talk | contribs)
Character formatting: Added intro & contents. Replaced “pre” with “code” for wrapping. Nested for right-left alignment. Blue with dotted vertical. Numbered entities. LaTeX e.g., chess & amp use.
Line 516: Line 516:


===Character formatting===
===Character formatting===
Symbols not on the keyboard can be rendered if the browser supports them. Copy and paste can be utilized with many of the symbols themselves, including in text editors.
{| border="1" cellpadding="2" cellspacing="0"
{|
|- valign="top"
! What it looks like
! What you type
|- id="emph" valign="top"
|
|
*[[#italicandbold|Italic and bold]]
''Italicized text''<br />'''Bold text'''<br />'''''Italicized & Bold text'''''
*[[#highlightedsourcecode|Highlighted source code]]
*[[#smalltag|Small tag]]
*[[#bigtag|Big tag]]
*[[#deleteandinsert|Delete and insert]]
*[[#showingwikimarkup|Showing wiki markup]]
*[[#sourcecomment|Source comment]]
*[[#extraspacing|Extra spacing]]
*[[#diacritics|Diacritical marks]]
*[[#punctuation|Punctuation]]
|
|
*[[#commercialsymbols|Commercial symbols]]
<pre><nowiki>
*[[#subscriptandsuperscript|Subscript and Superscript]]
''Italicized text''
*[[#greekcharacters|Greek characters]]
'''Bold text'''
*[[#mathematicalcharacters|Mathematical Characters]]
'''''Italicized & Bold text'''''
*[[#lamporttex|Allow LaTeX code]]
</nowiki></pre>
*[[#mathematicalformulae|Mathematical formulae]]
|- valign="top"
*[[#spacinginsimplemathformulae|Spacing in simple math formulae]]
|
*[[#complicatedformulae|Complicated formulae]]
[http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi Syntax highlighting] for source code.
*[[#Chesssymbols|Chess symbols]]
*[[#showingcharacterentities|Showing character entities]]
|}


{| border="0" style="background:#abd5f5" align="center" width="100%"
Computer code has a colored background
|-
and more stringent formatting. Suppose we
|
want to define <code>int main()</code>:
{| cellpadding="4" style="background:#abd5f5; text-align:center; color:#FFFFFF" width="100%"
<source lang=cpp>#include <iostream>
|- valign="top"
| width="50%" style="border-right:1px dashed #f1f5fc;"|
What it looks like
|
What you type
|}
{| width="100%" cellpadding="4"
|- id="italicandbold" valign="top"
| width="50%" style="border-right:1px dashed #abd5f5;"|
(Italic and bold)<br />
''Italicized text''<br />'''Bold text'''<br />'''''Italicized & Bold text'''''
|
<br />
<code><nowiki>''Italicized text''</nowiki></code>&nbsp;[[Image:button italic.png]]<br />
<code><nowiki>'''Bold text'''</nowiki></code>&nbsp;[[Image:button bold.png]]<br />
<code><nowiki>'''''Italicized & Bold text'''''</nowiki></code>&nbsp;[[Image:button italic.png]][[Image:button bold.png]]<br />
|- id="highlightedsourcecode" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Highlighted source code)<br />
It can have lines numbered and wrapped.


<source lang="cpp" line="50%">
#include <iostream>
int main ( int argc, char **argv ) {
int main ( int argc, char **argv ) {
std::cout << "Hello World!";
std::cout << "Hello World!";
return 0;
return 0;
}
}</source>
</source>
|
<br />
Computer code has a colored background
<br />
and more stringent formatting. Suppose we
More on showing source code highlighted ([http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi here]).
want to define <code>int main()</code>:
|
<pre><nowiki>
<br />
<source lang=cpp>#include <iostream>
<br />
int main ( int argc, char **argv ) {
<code>
std::cout << "Hello World!";
<nowiki><source lang="cpp" line="50%"></nowiki><br />
return 0;
<nowiki>#include <iostream></nowiki><br />
}</source>
<nowiki>int main ( int argc, char **argv ) {</nowiki><br />
</nowiki></pre>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>std::cout << "Hello World!";</nowiki><br />
|- valign=top
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>return 0;</nowiki><br />
|
<nowiki>}</nowiki><br />
<nowiki></source></nowiki><br />
</code>
|- id="smalltag" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Small tag)<br />
You can use <small>small text</small> for captions.
You can use <small>small text</small> for captions.
|
|
<br />
<pre><nowiki>
You can use <small>small text</small> for captions.
You can use <small>small text</small> for captions.
|- id="bigtag" valign="top"
</nowiki></pre>
| style="border-right:1px dashed #abd5f5;"|
(Big tag)<br />
Better stay away from <big>big text</big>, unless <small>it's <big>within</big> small</small> text.
|
<br />
<code><nowiki>Better stay away from <big>big text</big>, unless <small>it's <big>within</big> small</small> text.</nowiki></code>
|- id="deleteandinsert" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Delete and insert)<br />
You can <s>strike out deleted material</s> and <u>underline new material</u>.
|
<code><nowiki>You can <s>strike out deleted material</s> and <u>underline new material</u>.</nowiki></code>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
You can also mark <del>deleted material</del> and <ins>inserted material</ins> using logical markup. For backwards compatibility better combine this potentially ignored new <del>logical</del> with the old <s><del> physical </del></s> markup.
Better stay away from <big>big text</big>, unless
|
<small> it's <big>within</big> small</small> text.
<code><nowiki>You can also mark <del>deleted material</del> and <ins>inserted material</ins> using logical markup. For backwards compatibility better combine this potentially ignored new <del>logical</del> with the old <s><del> physical </del></s> markup.</nowiki></code>
|
<pre><nowiki>
Better stay away from <big>big text</big>, unless
<small> it's <big>within</big> small</small> text.
</nowiki></pre>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
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.
For backwards compatibility better combine this
potentially ignored new <del>logical</del> with
the old <s><del>physical</del></s> markup.

* When editing regular Wikipedia articles, just make your changes and do not mark them up in any special way.
* When editing regular Wikipedia articles, just make your changes and do not mark them up in any special way.
* When editing your own previous remarks in talk pages, it is sometimes appropriate to mark up deleted or inserted material.
* When editing your own previous remarks in talk pages, it is sometimes appropriate to mark up deleted or inserted material.
|
|
&nbsp;
<pre><nowiki>
|- id="showingwikimarkup" valign="top"
You can <s>strike out deleted material</s>
| style="border-right:1px dashed #abd5f5;"|
and <u>underline new material</u>.
(Showing wiki markup)

You can also mark <del>deleted material</del> and
<ins>inserted material</ins> using logical markup.
For backwards compatibility better combine this
potentially ignored new <del>logical</del> with
the old <s><del>physical</del></s> markup.
</nowiki></pre>
|- valign="top"
|
'''Suppressing interpretation of markup:'''
<br/>
<br/>
<br />
<nowiki>Link &rarr; (''to'') the [[Wikipedia FAQ]]</nowiki>
<br />
* Used to show literal data that would otherwise have special meaning.
Link &rarr; (''to'') the [[Wikipedia:FAQ]]
* Escape all wiki markup, including that which looks like HTML tags.
|
* Does not escape HTML character references.
[[Image:button nowiki.png]] &nbsp; &lt;code&gt;&lt;/code&gt;<br />
* To escape HTML character references such as <tt>&amp;rarr;</tt> use <tt>&amp;amp;rarr;</tt>
<br />
|
<br/>
<>
<pre><nowiki>
<><nowiki>
&lt;nowiki>Link &amp;rarr; (''to'')
nowiki>Link &amp;rarr; (''to'')
</code><br />
the [[Wikipedia FAQ]]&lt;/nowiki>
<code><nowiki> </nowiki> </nowiki></code><!-- both --><code><nowiki></code></nowiki></code>
</nowiki></pre>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
* To show HTML character references such as &rarr; (<tt>&amp;rarr;</tt>) use <tt>&amp;amp;rarr;</tt>
'''Commenting page source:'''
|
<br/>
&nbsp;
|- id="sourcecomment" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Source comment)<br/>
''not shown when viewing page''
''not shown when viewing page''
* Used to leave comments in a page for future editors.
* Used to leave comments in a page for future editors.
* Note that most comments should go on the appropriate [[Wikipedia:Talk page|Talk page]].
* Note that most comments should go on the appropriate [[Wikipedia:Talk page|Talk page]].
|
|
<br/>
<br/>
<code><nowiki>&lt;!-- comment here --></nowiki></code>[[Image:Button hide comment.png]]
<pre><nowiki>
|- id="extraspacing" valign="top"
&lt;!-- comment here -->
| style="border-right:1px dashed #abd5f5;"|
</nowiki></pre>
(Extra spacing)<br />
|-
Mary {{pad|4em}} had a little lamb.<br />
|
'''Extra spacing''' within text can best be achieved using the [[Template:Pad|pad]] template:
the [[Template:Pad|pad]] template
|
<br />
<code><nowiki>Mary {{pad|4em}} had a little lamb.</nowiki></code>


|- id="diacritics" valign="top"
Mary {{pad|4em}} had a little lamb.
| style="border-right:1px dashed #abd5f5;"|
|
(Diacritical marks)<br />
1. À Á Â<br />
2. Ã Ä Å<br />
3. Æ Ç È<br />
<br />
<br />
4. É Ê Ë<br />
<pre><nowiki>Mary {{pad|4em}} had a little lamb.</nowiki></pre>
5. Ì Í Î<br />
6. Ï Ñ Ò<br />
<br />
7. Ó Ô Õ<br />
8. Ö Ø Ù<br />
9. Ú Û Ü<br />
<br />
10. ß à á<br />
|
<br />
<code>
1. &amp;Agrave; &amp;Aacute; &amp;Acirc;<br />
2. &amp;Atilde; &amp;Auml; &amp;Aring;<br />
3. &amp;AElig; &amp;Ccedil; &amp;Egrave;<br />
<br />
4. &amp;Eacute; &amp;Ecirc; &amp;Euml;<br />
5. &amp;Igrave; &amp;Iacute; &amp;Icirc;<br />
6. &amp;Iuml; &amp;Ntilde; &amp;Ograve;<br />
<br />
7. &amp;Oacute; &amp;Ocirc; &amp;Otilde;<br />
8. &amp;Ouml; &amp;Oslash; &amp;Ugrave;<br />
9. &amp;Uacute; &amp;Ucirc; &amp;Uuml;<br />
<br />
10. &amp;szlig; &amp;agrave; &amp;aacute;<br />
</code>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
11. â ã ä<br />
'''<span id="diacritics">Diacritical marks:</span>'''
<br/>
<br/>
À Á Â Ã Ä Å <br/>
<br/>
|
Æ Ç È É Ê Ë <br/>
<code>
Ì Í
11. &amp;acirc; &amp;atilde; &amp;auml;<br />
Î Ï Ñ Ò <br/>
12. &amp;aring; &amp;aelig; &amp;ccedil;<br />
Ó Ô Õ
13. &amp;egrave; &amp;eacute; &amp;ecirc;<br />
Ö Ø Ù <br/>
</code>
Ú Û Ü ß
à á <br/>
â ã ä å æ
ç <br/>
è é ê ë ì í<br/>
î ï ñ ò ó ô <br/>
œ õ
ö ø ù ú <br/>
û ü ÿ

* See [[meta:Help:Special characters|special characters]].
|
<br/>
<pre><nowiki>
&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;Igrave; &amp;Iacute; &amp;Icirc; &amp;Iuml; &amp;Ntilde; &amp;Ograve;
&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;acirc; &amp;atilde; &amp;auml; &amp;aring; &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;oacute; &amp;ocirc;
&amp;oelig; &amp;otilde; &amp;ouml; &amp;oslash; &amp;ugrave; &amp;uacute;
&amp;ucirc; &amp;uuml; &amp;yuml;
</nowiki></pre>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
14. ë ì í<br />
'''Punctuation:'''
<br/>
<br/>
¿ ¡ § <br/>
<br/>
|
† ‡ • &ndash; &mdash;<br/>
<code>
‹ › « »<br/>
14. &amp;euml; &amp;igrave; &amp;iacute;<br />
‘ ’ “ ”
15. &amp;icirc; &amp;iuml; &amp;ntilde;<br />
|
16. &amp;ograve; &amp;oacute; &amp;ocirc;<br />
<br/>
</code>
<pre><nowiki>
&amp;iquest; &amp;iexcl; &amp;sect; &amp;para;
&amp;dagger; &amp;Dagger; &amp;bull; &amp;ndash; &amp;mdash;
&amp;lsaquo; &amp;rsaquo; &amp;laquo; &amp;raquo;
&amp;lsquo; &amp;rsquo; &amp;ldquo; &amp;rdquo;
</nowiki></pre>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
17. œ õ ö<br />
'''Commercial symbols:'''
<br/>
<br/>
© ® ¢ € ¥<br/>
<br/>
|
£ ¤
<code>
|
17. &amp;oelig; &amp;otilde; &amp;ouml;<br />
<br/>
18. &amp;oslash; &amp;ugrave; &amp;uacute;<br />
<pre><nowiki>
&amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;
&amp;; &amp;; &amp;;
</code>
&amp;pound; &amp;curren;
</nowiki></pre>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
*Copy & paste or use the entities (to the right).
'''Subscripts:'''
|
<br/>
&nbsp;
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or
|- id="punctuation" valign="top"
<br/>
| style="border-right:1px dashed #abd5f5;"|
x₀ x₁ x₂ x₃ x₄
<br/>
<br/>
1. ¿ ¡<br />
x₅ x₆ x₇ x₈ x₉
2. § <br />

3. † ‡<br />
'''Superscripts:'''
<br/>
<br/>
5. ‹ ›<br />
x<sup>1</sup> x<sup >2</sup > x<sup >3</sup > or
<br/>
<br/>
7. ‘ ’<br />
x⁰ x¹ x² x³ x⁴
<br/>
<br/>
9. <big>“ ”</big><br />
x⁵ x⁶ x⁷ x⁸ x⁹
10. •<br />

|
*The [[Wikipedia:Manual of Style (mathematics)#Superscripts and subscripts|Manual of Style]] prefers the <nowiki>x<sub>1</sub></nowiki> format.
<br />
*The latter methods of sub/superscripting cannot be used in the most general context, as they rely on Unicode support which may not be present on all users' machines. For the 1-2-3 superscripts, it is nevertheless preferred when possible (as with units of measurement) because most browsers have an easier time formatting lines with it.
<code>

1. &amp;iquest; &amp;iexcl;<br />
ε<sub>0</sub> =
8.85 &times; 10<sup>&minus;12</sup>
. &; &;</>
3. &amp;dagger; &amp;Dagger;<br />
C² / J m.
4. &amp;ndash; &amp;mdash;<br />

5. &amp;lsaquo; &amp;rsaquo;<br />
6. &amp;laquo; &amp;raquo;<br />
7. &amp;lsquo; &amp;rsquo;<br />
8. &amp;ldquo; &amp;rdquo;<br />
9. <nowiki><big></nowiki>&amp;ldquo; &amp;rdquo;<nowiki></big></nowiki><br />
10. &amp;bull;
</code>
|- id="commercialsymbols" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Commercial symbols)<br />
1. ™ © ®<br />
2. ¢ € ¥<br />
3. £ ¤<br />
4. <big style="font-size:23px">¤</big><br />
|
<br />
<code>
1. &amp;trade; &amp;copy; &amp;reg;<br />
2. &amp;cent; &amp;euro; &amp;yen;<br />
3. &amp;pound; &amp;curren;<br />
4. <nowiki><big style="font-size:23px"></nowiki>&amp;curren;<nowiki></big></nowiki><br />
</code>
|- id="subscriptandsuperscript" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Subscript and Superscript)<br />
'''Subscripts:'''<br />
1. x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or<br />
|
<br />
[[Image:Button lower letter.png]]<br />
1. <code><nowiki>x<sub>1</sub> x<sub>2</sub> x<sub>3</sub></nowiki></code> or<br />
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
2. x₀ x₁ x₂<br />
|
<code>
2. x&amp;#8320; x&amp;#8321; x&amp;#8322;<br />
</code>
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
3. x₃ x₄ x₅<br />
|
<code>
3. x&amp;#8323; x&amp;#8324; x&amp;#8325;<br />
</code>
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
4. x₆ x₇ x₈<br />
|
<code>
4. x&amp;#8326; x&amp;#8327; x&amp;#8328;<br />
</code>
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
5. x₉<br />
or<br />
<math>x_0</math>
|
<code>
5. x&amp;#8329;<br />
</code>
or<br />
<code><nowiki><math>x_0</math></nowiki></code>[[Image:button math.png]]
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
<br />
<br />
'''Superscripts:'''<br />
1. x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or<br />
|
<br />
<br />
[[Image:Button upper letter.png]]<br />
1. <code><nowiki>x<sup>1</sup> x<sup>2</sup> x<sup>3</sup></nowiki></code> or<br />
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
2. x⁰ x¹ x²<br />
3. x³ x⁴ x⁵<br />
4. x⁶ x⁷ x⁸<br />
|
<code>
2. x&amp;#8304; x&amp;sup1; x&amp;sup2;<br />
3. x&amp;sup3; x&amp;#8308; x&amp;#8309;<br />
4. x&amp;#8310; x&amp;#8311; x&amp;#8312;<br />
</code>
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
5. x⁹<br />
or<br />
<math>x^0</math>
|
<code>
5. x&amp;#8313;<br />
</code>
or<br />
<code><nowiki><math>x^0</math></nowiki></code>[[Image:button math.png]]
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
<br />
<br />
<br />
&epsilon;<sub>0</sub> = 8.85 &times; 10<sup>&minus;12</sup> C&sup2; / J m.
|
<br />
<br />
<code><nowiki>&amp;epsilon;<sub>0</sub> = 8.85 &amp;times; 10<sup>&amp;minus;12</sup> C&amp;sup2; / J m.</nowiki></code>
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
<br />
<br />
<br />
1 [[hectare]] = [[1 E4 m&sup2;]]
1 [[hectare]] = [[1 E4 m&sup2;]]
|
|
<br/>
<br/>
<br />
<pre><nowiki>
<code><nowiki>1 [[hectare]] = [[1 E4 m&amp;sup2;]]</nowiki></code>
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or
<br/>
x&amp;#8320; x&amp;#8321; x&amp;#8322; x&amp;#8323; x&amp;#8324;
<br/>
x&amp;#8325; x&amp;#8326; x&amp;#8327; x&amp;#8328; x&amp;#8329;
</nowiki></pre>

<pre><nowiki>
x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or
<br/>
x&amp;#8304; x&amp;sup1; x&amp;sup2; x&amp;sup3; x&amp;#8308;
<br/>
x&amp;#8309; x&amp;#8310; x&amp;#8311; x&amp;#8312; x&amp;#8313;

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

1 [[hectare]] = [[1 E4 m&amp;sup2;]]
</nowiki></pre>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
<br />
'''Greek characters:'''
<br/>
<br/>
*The "x&# . . ." method is not used, as they rely on Unicode support which may not be present on all users' machines. The [[Wikipedia:Manual of Style (mathematics)#Superscripts and subscripts|Manual of Style]] prefers the <nowiki>x<sub>1</sub></nowiki> format because most browsers have an easier time formatting lines with it.
α β γ δ ε ζ<br/>
*Copy and paste does not work for subscript and superscript characters, although it does for others such as β.
η θ ι κ λ μ ν<br/>
|
ξ ο π ρ σ ς<br/>
&nbsp;
τ υ φ χ ψ ω<br/>
|- id="greekcharacters" valign="top"
Γ Δ Θ Λ Ξ Π<br/>
| style="border-right:1px dashed #abd5f5;"|
Σ Φ Ψ Ω
(Greek characters)<br />
|
<br/>
<br/>
2. δ ε ζ<br />
<pre><nowiki>
3. η θ ι<br />
&amp;alpha; &amp;beta; &amp;gamma; &amp;delta; &amp;epsilon; &amp;zeta;
4. κ λ μ<br />
&amp;eta; &amp;theta; &amp;iota; &amp;kappa; &amp;lambda; &amp;mu; &amp;nu;
5. ν ξ ο<br />
&amp;xi; &amp;omicron; &amp;pi; &amp;rho; &amp;sigma; &amp;sigmaf;
6. π ρ σ<br />
&amp;tau; &amp;upsilon; &amp;phi; &amp;chi; &amp;psi; &amp;omega;
7. ς τ υ<br />
&amp;Gamma; &amp;Delta; &amp;Theta; &amp;Lambda; &amp;Xi; &amp;Pi;
8. φ χ ψ<br />
&amp;Sigma; &amp;Phi; &amp;Psi; &amp;Omega;
9. ω Γ Δ<br />
</nowiki></pre>
10. Θ Λ Ξ<br />
11. Π Σ Φ<br />
12. Ψ Ω<br />
|
<br />
<code>
1. &amp;alpha; &amp;beta; &amp;gamma;<br />
2. &amp;delta; &amp;epsilon; &amp;zeta;<br />
3. &amp;eta; &amp;theta; &amp;iota;<br />
4. &amp;kappa; &amp;lambda; &amp;mu;<br />
5. &amp;nu; &amp;xi; &amp;omicron;<br />
6. &amp;pi; &amp;rho; &amp;sigma;<br />
7. &amp;sigmaf; &amp;tau; &amp;upsilon;<br />
8. &amp;phi; &amp;chi; &amp;psi;<br />
9. &amp;omega; &amp;Gamma; &amp;Delta;<br />
10. &amp;Theta; &amp;Lambda; &amp;Xi;<br />
11. &amp;Pi; &amp;Sigma; &amp;Phi;<br />
12. &amp;Psi; &amp;Omega;<br />
</code>
|- id="mathematicalcharacters" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Mathematical Characters)<br />
1. ∫ ∑ ∏<br />
2. √ − ±<br />
3. ∞ ≈ ∝<br />
4. ≡ ≠ ≤<br />
5. ≥ × •<br />
6. ÷ ∂ ′<br />
7. ″ ∇ ‰<br />
8. ° ∴ ℵ<br />
9. ø ∈ ∉<br />
10. ∩ ∪ ⊂<br />
11. ⊃ ⊆ ⊇<br />
12. ∧ ∨<br />
13. ∃ ∀ ⇒<br />
14. ⇐ ⇓ ⇑<br />
15. ⇔ → ↓<br />
16. ↑ ← ↔<br />
<br />
|
<br />
<code>
1. &amp;int; &amp;sum; &amp;prod;<br />
2. &amp;radic; &amp;minus; &amp;plusmn;<br />
3. &amp;infin; &amp;asymp; &amp;prop;<br />
4. &amp;equiv; &amp;ne; &amp;le;<br />
5. &amp;ge; &amp;times; &amp;middot;<br />
6. &amp;divide; &amp;part; &amp;prime;<br />
7. &amp;Prime; &amp;nabla; &amp;permil;<br />
8. &amp;deg; &amp;there4; &amp;alefsym;<br />
9. &amp;oslash; &amp;isin; &amp;notin;<br />
10. &amp;cap; &amp;cup; &amp;sub;<br />
11. &amp;sup; &amp;sube; &amp;supe;<br />
12. &amp;not; &amp;and; &amp;or;<br />
13. &amp;exist; &amp;forall; &amp;rArr;<br />
14. &amp;lArr; &amp;dArr; &amp;uArr;<br />
15. &amp;hArr; &amp;rarr; &amp;darr;<br />
16. &amp;uarr; &amp;larr; &amp;harr;<br />
</code>
<br />
|- id="lamporttex" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Allow LaTeX code)<br />
<br />
<math>\begin{align} E &= mc^2 \end{align}</math>
|
[[Image:button math.png]]<br />
<br />
<code><nowiki><math>\begin{align} E &= mc^2 \end{align}</math></nowiki></code>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
<math>\begin{align} m_0 \end{align}</math>
'''Mathematical characters:'''
|
<br/>
<code><nowiki><math>\begin{align} m_0 \end{align}</math></nowiki></code>
∫ ∑ ∏ √ &minus; ± ∞<br/>
≈ ∝ ≡ ≠ ≤ ≥<br/>
&times; · ÷ ∂ &prime; &Prime;<br/>
∇ ‰ ° ∴ ℵ ø<br/>
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇<br/>
¬ ∧ ∨ ∃ ∀<br/>
⇒ ⇐ ⇓ ⇑ ⇔<br/>
→ ↓ ↑ ← ↔<br/>
* See also [[Wikipedia:WikiProject Mathematics|WikiProject Mathematics]] and [[TeX]].
|
<br/>
<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;times; &amp;middot; &amp;divide; &amp;part; &amp;prime; &amp;Prime;
&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;not; &amp;and; &amp;or; &amp;exist; &amp;forall;
&amp;rArr; &amp;lArr; &amp;dArr; &amp;uArr; &amp;hArr;
&amp;rarr; &amp;darr; &amp;uarr; &amp;larr; &amp;harr;
</nowiki></pre>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
<math>\,\! \sin x + \ln y</math><br>
<math>\\\</math>
|
<code><nowiki><math>m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}</math></nowiki></code>
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
<math>{\color{Blue}x^2}+{\color{YellowOrange}2x}-{\color{OliveGreen}1}</math>
|
<code><nowiki><math>{\color{Blue}x^2}+{\color{YellowOrange}2x}-{\color{OliveGreen}1}</math></nowiki></code>
|- id="mathematicalformulae" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Mathematical formulae)<br />
<br />
<math>\,\! \sin x + \ln y</math>
|
<br />
<br />
<code><nowiki>
<math>\,\! \sin x + \ln y</math>
</nowiki></code>
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
{{math|sin <VAR >x</VAR > + ln <VAR >y</VAR >}}
{{math|sin <VAR >x</VAR > + ln <VAR >y</VAR >}}
|

<code><nowiki>
<math>\mathbf{x} = \mathbf{0}</math><br>
{{math|<B >x</B > {{=}} <B >0</B >}}

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 formulae often use italics, and sometimes use bold, for reasons unrelated to emphasis. Complex formulae should use [[Help:Displaying a formula|<code>&lt;math&gt;</code> markup]], and simple formulae may use <code>&lt;math&gt;</code> or <code >{{tl|math}}</code > with <code>&lt;i&gt;</code> and <code>&lt;b&gt;</code> or <code><nowiki>''</nowiki></code> and <code><nowiki>'''</nowiki></code>. Make sure to replace <CODE >=</CODE > with <CODE >{{tl|{{=}}}}</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>. -->
|
<pre><nowiki>
<math>\,\! \sin x + \ln y</math><br>
{{math|sin <VAR >x</VAR > + ln <VAR >y</VAR >}}
{{math|sin <VAR >x</VAR > + ln <VAR >y</VAR >}}
</nowiki></code>

|- valign="top"
<math>\mathbf{x} = \mathbf{0}</math><br>
| style="border-right:1px dashed #abd5f5;"|
<math>\mathbf{x} = \mathbf{0}</math>
|
<code><nowiki>
<math>\mathbf{x} = \mathbf{0}</math>
</nowiki></code>
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
{{math|<B >x</B > {{=}} <B >0</B >}}
|
<code><nowiki>
{{math|<B >x</B > {{=}} <B >0</B >}}
{{math|<B >x</B > {{=}} <B >0</B >}}
</nowiki></pre>
</nowiki></>
|- valign="top"
|- valign="top"
| style="border-right:1px dashed #abd5f5;"|
|
Ordinary text should use for emphasis wiki markup like ( <code><nowiki>''Italic text''</nowiki></code> ), and should not use HTML markup like <code>&lt;i&gt;</code>. However, mathematical formulae use HTML italics and sometimes bold (for reasons unrelated to emphasis). Formulae with LaTeX markup use [[Help:Displaying a formula|<code>&lt;math&gt;</code>]], and simple formulae may use <code>&lt;math&gt;</code> or the template <code >{{tl|math}}</code > with either HTML's <code>&lt;i&gt;</code> and <code>&lt;b&gt;</code> or wiki markup's <code><nowiki>''Italic text''</nowiki></code> and <code><nowiki>'''Bold text'''</nowiki></code>. Be sure to replace <CODE >=</CODE > with <CODE >{{tl|{{=}}}}</CODE >.
'''Spacing in simple math formulae:'''
|
&nbsp;
|- id="spacinginsimplemathformulae" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Spacing in simple math formulae)<br />
<br/>
<br/>
Obviously, {{math|<VAR >x</VAR ><sup>2</sup>&nbsp;≥&nbsp;0}} is true when {{math|<VAR >x</VAR >}} is a real number.
{{math|<VAR >x</VAR ><sup>2</sup>&nbsp;≥&nbsp;0}}< />
<br />
* To space things out without allowing line breaks to interrupt the formula, you can use non-breaking spaces: <code>&amp;nbsp;</code>.
{{math|<VAR >x</VAR ><sup>2</sup><br />≥&nbsp;0}}
* However, even if you do not use non-breaking spaces, the <code >{{tl|math}}</code > template will prevent line breaks anyway; you can use <code >&lt;BR ></code > if you need an explicit line break inside a formula.
<br />
|
<br/>
<br/>
* To space things out, you can use non-breaking space: <code>&amp;nbsp;</code>.
<pre><nowiki>
* You can use line break (<code><nowiki><br /></nowiki></code>) if you need a line break inside a formula.
Obviously, {{math|<VAR >x</VAR ><sup>2</sup>&nbsp;≥&nbsp;0}} is true when {{math|<VAR >x</VAR >}} is a real number.
|
</nowiki></pre>
<br />
|- valign="top"
<br />
|
<code><nowiki>{{math|<VAR >x</VAR ><sup>2</sup></nowiki></code><font color="#FFD800"><code>&amp;nbsp;</code></font><code><nowiki>≥</nowiki></code><font color="#FFD800"><code>&amp;nbsp;</code></font><code><nowiki>0}}</nowiki></code><br />
'''Complicated formulae:'''
<br />
<code><nowiki>{{math|<VAR >x</VAR ><sup>2</sup></nowiki></code><font color="#FFD800"><code><nowiki><br /></nowiki></code></font><code><nowiki>≥&amp;nbsp;0}}</nowiki></code>
|- id="complicatedformulae" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Complicated formulae)
<br/>
<br/>
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
* See [[Help:Displaying a formula]] for how to use <tt>&lt;math></tt>.
* See [[Help:Displaying a 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.
* A formula displayed on a line by itself be indented by using the colon (:) character.
|
|
<br/>
<br/>
<pre><nowiki>
<><nowiki>
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
</nowiki></pre>
</nowiki></>
|- id="chesssymbols" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Chess symbols)<br />
<br />
<font size=5>

♔ ♕ ♖

♗ ♘ ♙


♚ ♛ ♜

♝ ♞ ♟

</font>
|
<br />
<code><nowiki><font size=5></nowiki></code>

<code>
&amp;#9812; &amp;#9813; &amp;#9814;

&amp;#9815; &amp;#9816; &amp;#9817;


&amp;#9818; &amp;#9819; &amp;#9820;

&amp;#9821; &amp;#9822; &amp;#9823;
</code>

<code><nowiki></font></nowiki></code>
|- id="showingcharacterentities" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Showing character entities)<br />
<br />
<tt><font color="#FFD800">&amp;</font>rarr;</tt>
*To show a character entity, replace its ampersand (&) with the entity for ampersand (&amp;amp;).
|
<br />
<br />
<tt><font color="#FFD800">&amp;amp;</font>rarr;</tt>
|}
|}
|}
''(see also: [[Chess symbols in Unicode]])''


===No or limited formatting—showing exactly what is being typed===
===No or limited formatting—showing exactly what is being typed===

Revision as of 16:44, 7 May 2009

Wikipedia is a wiki, meaning that anyone can easily edit any unprotected page, and save those changes immediately to that page, making the alterations visible to every other reader. You do not even need to register to do this. After your first edit, you will be a Wikipedia editor!

Note: You can use the sandbox to experiment with page editing.

Introduction

Editing most Wikipedia pages is easy. Simply click on the "edit this page" tab at the top of a Wikipedia page (or on a section-edit link). This will bring you to a new page with a text box containing the editable text of the original page. If you add information to a page, please provide references, as unreferenced facts are subject to removal. When you are finished with an edit, you should write a short edit summary in the small field below the edit-box. You may use shorthand to describe your changes, as described in the legend. To see how the page looks with your edits, press the "Show preview" button. To see the differences between the page with your edits and the previous version of the page, press the "Show changes" button. If you're satisfied with what you see, be bold and press the "Save page" button. Your changes will immediately be visible to all Wikipedia users.

Edit commands


You can also click on the "Discussion" tab to see the corresponding talk page, which contains comments about the page from other Wikipedia users. Click on the "new section" tab to start a new section, or edit the page in the same way as an article page.

You should also remember to sign your messages on talk pages and some special-purpose project pages with four tildes (~~~~), but you should not sign edits you make to regular articles. In page history, the MediaWiki software automatically keeps track of which user makes each change.

Minor edits

A check to the "minor edit" box signifies that only superficial differences exist between the version with your edit and the previous version: typo corrections, formatting and presentational changes, rearranging of text without modifying content, etc. A minor edit is a version that the editor believes requires no review and could never be the subject of a dispute. The "minor edit" option is one of several options available only to registered users.

Major edits

All editors are encouraged to be bold, but there are several things that a user can do to ensure that major edits are performed smoothly. Before engaging in a major edit, a user should consider discussing proposed changes on the article discussion/talk page. During the edit, if doing so over an extended period, the {{Inuse}} tag can reduce the likelihood of an edit conflict. Once the edit has been completed, the inclusion of an edit summary will assist in documenting the changes. These steps will all help to ensure that major edits are well received by the Wikipedia community.

A major edit should be reviewed to confirm that it is consensual to all concerned editors. Therefore, any change that affects the meaning of an article is major (not minor), even if the edit is a single word.

There are no necessary terms to which you have to agree when doing major edits, but the recommendations above have become best practice. If you do it your own way, the likelihood of your edits being reedited may be higher.

Occasionally your browser will crash. When doing a large edit it is suggested you copy the code of the article you are working on and placing it in a text editor (perferabbly one without formatting, such as MS Notepad) periodically. This ensures that in the case of a browser crash you will not lose your work. It may also be a good idea to save the page after performing a substantiall amount of work before adding additional content to the article.

Wiki markup

The wiki markup is the syntax system you can use to format a Wikipedia page; please see Editing for details on it, and Wikitext examples for a longer list of the possibilities of Wikitext.

The anchor element, <a>, is not allowed. The following is used instead: [[ ]], [ ], ~~~~, ~~~, http, ISBN, RFC & {{ }}. See the table below.

What it looks like What you type

London has public transport. (Article link)

  • A link to another Wiki article.
  • Internally, the first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link has the same effect as typing a space, but is not recommended).
  • Thus the link above is to the URL en.wikipedia.org/wiki/Public_transport, which is the Wikipedia article with the name "Public transport". See also Canonicalization.

London has [[public transport]].

(Signing comments)

The character tilde (~) is used when adding a comment to a Talk page. You should sign your comment by appending four tildes (~~~~) to the comment so as to add your user name plus date/time:

Patricia Zhang 13:40, Jan 14, 2007 (UTC)

Adding three tildes (~~~) will add just your user name:

Patricia Zhang

and adding five tildes (~~~~~) gives the date/time alone:

13:40, Jan 14, 2007 (UTC)
  • The first two both provide a link to your user page.

The character '''tilde''' (~) is used when adding a comment to a Talk page. You should sign your comment by appending four tildes (~~~~) to the comment so as to add your user name plus date/time:
:~~~~
Adding three tildes (~~~) will add just your user name:
: ~~~
and adding five tildes (~~~~~) gives the date/time alone:
: ~~~~~

(Redirects)

  • 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").
  • It is possible to redirect to a section. For example, a redirect to United States#History will redirect to the History section of the United States page, if it exists.

#REDIRECT [[United States]]


#REDIRECT [[United States#History]] will redirect to the [[United States]] page, to the History section, if it exists

(Linked and why)

What links here and Related changes pages can be linked as:
Special: Whatlinkshere/Wikipedia: How to edit a page and Special: Recentchangeslinked/Wikipedia: How to edit a page

'''What links here''' and '''Related changes''' pages can be linked as:
[[Special: WhatLinkshere/Wikipedia: How to edit a page]] and
[[Special: RecentChangeslinked/ Wikipedia: How to edit a page]]

(User edits)

A user's Contributions page can be linked as: Special:Contributions/UserName or Special:Contributions/192.0.2.0

A user's '''Contributions''' page can be linked as: [[Special:Contributions/UserName]] or [[Special:Contributions/192.0.2.0]]

(Categorize)

  • To put an article in a category, place a link like the one to the right anywhere in the article. As with interlanguage links, it does not matter where you put these links while editing as they will always show up in the same place when you save the page, but placement at the end of the edit box is recommended.

[[Category:Character sets]]

(Book sources)

ISBN 012345678X

ISBN 0-12-345678-X

  • Link to books using their ISBN. This is preferred to linking to a specific online bookstore, because it gives the reader a choice of vendors. However, if one bookstore or online service provides additional free information, such as table of contents or excerpts from the text, then a link to that source will aid the user and is recommended.
  • ISBN links do not need any extra markup, provided you use one of the indicated formats.

ISBN 012345678X

ISBN 0-12-345678-X

(RFC number)

Text mentioning an RFC number anywhere, e.g. RFC 4321.

Text mentioning an RFC number anywhere, e.g. RFC 4321.

(“As of” tag)

As of” tags like "As of April 2009" and "as of April 2009" categorize info that will need updating.

“[[WP:As of|As of]]” tags like "{{As of|2009|4|df=us}}" and "{{As of|2009|4|df=us|lc=on}}" categorize info that will need updating.

Images

Only images that have been uploaded to Wikipedia can be used. To upload images, use the upload page. You can find the uploaded image on the image list.

What it looks like What you type
A picture:

A picture: 
[[Image:wiki.png]]
With alternative text:

Wikipedia, The Free Encyclopedia.

With alternative text:
[[Image:wiki.png|Wikipedia, The Free Encyclopedia.]]
  • Alternative text, used when the image is unavailable or when the image is loaded in a text-only browser, or when spoken aloud, is strongly encouraged. See Alternative text for images for help on choosing it.
Floating to the right side of the page using the frame attribute and a caption:
Wikipedia Encyclopedia

Floating to the right side of the page 
using the ''frame'' attribute and a caption:
[[Image:wiki.png|frame|Wikipedia Encyclopedia]]
  • The frame tag automatically floats the image right.
  • The caption is also used as alternate text.
Floating to the right side of the page using the thumb attribute and a caption:
Wikipedia Encyclopedia

Floating to the right side of the page 
using the ''thumb'' attribute and a caption:
[[Image:wiki.png|thumb|Wikipedia Encyclopedia]]
  • The thumb tag automatically floats the image right.
  • The caption is also used as alternate text.
  • An enlarge icon is placed in the lower right corner.
Floating to the right side of the page without a caption:
Wikipedia Encyclopedia
Wikipedia Encyclopedia
Floating to the right side of the page
''without'' a caption:
[[Image:wiki.png|right|Wikipedia Encyclopedia]]
A picture resized to 30 pixels...

A picture resized to 30 pixels...
[[Image:wiki.png|30 px]]
Linking directly to the description page of an image:

Image:wiki.png

Linking directly to the description page
of an image:
[[:Image:wiki.png]]
  • Clicking on an image displayed on a page

(such as any of the ones above) also leads to the description page

Linking directly to an image without displaying it:

Image of the jigsaw globe logo

Linking directly to an image
without displaying it:
[[:media:wiki.png|Image of the jigsaw globe logo]]
  • To include links to images shown as links instead of drawn on the page, use a "media" link.
Using the span and div tag to separate images from text (note that this may allow images to cover text):
Example:
<div style="display:inline;
width:220px; float:right;">
Place images here </div>
Using wiki markup to make a table in which to place a vertical column of images (this helps edit links match headers, especially in Firefox browsers):
Example: {| align=right
|-
| 
Place images here
|}

See the Wikipedia's image use policy as a guideline used on Wikipedia.

For further help on images, including some more versatile abilities, see the topic on Extended image syntax.

Headings

For a top-level heading, put it on a separate line surrounded by '=='. For example:

  == Introduction ==

Subheadings use '===', '====', and so on.

Character formatting

Symbols not on the keyboard can be rendered if the browser supports them. Copy and paste can be utilized with many of the symbols themselves, including in text editors.

What it looks like

What you type

(Italic and bold)
Italicized text
Bold text
Italicized & Bold text


''Italicized text'' 
'''Bold text''' 
'''''Italicized & Bold text''''' 

(Highlighted source code)
It can have lines numbered and wrapped.


#include <iostream>
int main ( int argc,  char **argv ) {
    std::cout << "Hello World!";
    return 0;
}



More on showing source code highlighted (here).



<source lang="cpp" line="50%">
#include <iostream>
int main ( int argc, char **argv ) {
    std::cout << "Hello World!";
    return 0;
}
</source>

(Small tag)
You can use small text for captions.


You can use <small>small text</small> for captions.

(Big tag)
Better stay away from big text, unless it's within small text.


Better stay away from <big>big text</big>, unless <small>it's <big>within</big> small</small> text.

(Delete and insert)
You can strike out deleted material and underline new material.

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

You can also mark deleted material and using logical markup. For backwards compatibility better combine this potentially ignored new logical with the old physical markup.

You can also mark <del>deleted material</del> and <ins>inserted material</ins> using logical markup. For backwards compatibility better combine this potentially ignored new <del>logical</del> with the old <s><del> physical </del></s> markup.

  • When editing regular Wikipedia articles, just make your changes and do not mark them up in any special way.
  • When editing your own previous remarks in talk pages, it is sometimes appropriate to mark up deleted or inserted material.

 

(Showing wiki markup)


Link → (to) the Wikipedia:FAQ

  <code></code>

<code><nowiki>
Link &rarr; (''to'') the [[Wikipedia:FAQ]]

</nowiki></code>

  • To show HTML character references such as → (&rarr;) use &amp;rarr;

 

(Source comment)
not shown when viewing page

  • Used to leave comments in a page for future editors.
  • Note that most comments should go on the appropriate Talk page.


<!-- comment here -->

(Extra spacing)
Mary   had a little lamb.

  • This uses the pad template.


Mary {{pad|4em}} had a little lamb.

(Diacritical marks)
1. À Á Â
2. Ã Ä Å
3. Æ Ç È

4. É Ê Ë
5. Ì Í Î
6. Ï Ñ Ò

7. Ó Ô Õ
8. Ö Ø Ù
9. Ú Û Ü

10. ß à á


1. &Agrave; &Aacute; &Acirc;
2. &Atilde; &Auml; &Aring;
3. &AElig; &Ccedil; &Egrave;

4. &Eacute; &Ecirc; &Euml;
5. &Igrave; &Iacute; &Icirc;
6. &Iuml; &Ntilde; &Ograve;

7. &Oacute; &Ocirc; &Otilde;
8. &Ouml; &Oslash; &Ugrave;
9. &Uacute; &Ucirc; &Uuml;

10. &szlig; &agrave; &aacute;

11. â ã ä
12. å æ ç
13. è é ê

11. &acirc; &atilde; &auml;
12. &aring; &aelig; &ccedil;
13. &egrave; &eacute; &ecirc;

14. ë ì í
15. î ï ñ
16. ò ó ô

14. &euml; &igrave; &iacute;
15. &icirc; &iuml; &ntilde;
16. &ograve; &oacute; &ocirc;

17. œ õ ö
18. ø ù ú
19. û ü ÿ

17. &oelig; &otilde; &ouml;
18. &oslash; &ugrave; &uacute;
19. &ucirc; &uuml; &yuml;

  • Copy & paste or use the entities (to the right).

 

(Punctuation)
1. ¿ ¡
2. §
3. † ‡
4. – —
5. ‹ ›
6. « »
7. ‘ ’
8. “ ”
9. “ ”
10. •


1. &iquest; &iexcl;
2. &sect; &para;
3. &dagger; &Dagger;
4. &ndash; &mdash;
5. &lsaquo; &rsaquo;
6. &laquo; &raquo;
7. &lsquo; &rsquo;
8. &ldquo; &rdquo;
9. <big>&ldquo; &rdquo;</big>
10. &bull;

(Commercial symbols)
1. ™ © ®
2. ¢ € ¥
3. £ ¤
4. ¤


1. &trade; &copy; &reg;
2. &cent; &euro; &yen;
3. &pound; &curren;
4. <big style="font-size:23px">&curren;</big>

(Subscript and Superscript)
Subscripts:
1. x1 x2 x3 or



1. x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or

2. x₀ x₁ x₂

2. x&#8320; x&#8321; x&#8322;

3. x₃ x₄ x₅

3. x&#8323; x&#8324; x&#8325;

4. x₆ x₇ x₈

4. x&#8326; x&#8327; x&#8328;

5. x₉
or

5. x&#8329;
or
<math>x_0</math>



Superscripts:
1. x1 x2 x3 or




1. x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or

2. x⁰ x¹ x²
3. x³ x⁴ x⁵
4. x⁶ x⁷ x⁸

2. x&#8304; x&sup1; x&sup2;
3. x&sup3; x&#8308; x&#8309;
4. x&#8310; x&#8311; x&#8312;

5. x⁹
or

5. x&#8313;
or
<math>x^0</math>




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



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




1 hectare = 1 E4 m²



1 [[hectare]] = [[1 E4 m&sup2;]]



  • The "x&# . . ." method is not used, as they rely on Unicode support which may not be present on all users' machines. The Manual of Style prefers the x<sub>1</sub> format because most browsers have an easier time formatting lines with it.
  • Copy and paste does not work for subscript and superscript characters, although it does for others such as β.

 

(Greek characters)
1. α β γ
2. δ ε ζ
3. η θ ι
4. κ λ μ
5. ν ξ ο
6. π ρ σ
7. ς τ υ
8. φ χ ψ
9. ω Γ Δ
10. Θ Λ Ξ
11. Π Σ Φ
12. Ψ Ω


1. &alpha; &beta; &gamma;
2. &delta; &epsilon; &zeta;
3. &eta; &theta; &iota;
4. &kappa; &lambda; &mu;
5. &nu; &xi; &omicron;
6. &pi; &rho; &sigma;
7. &sigmaf; &tau; &upsilon;
8. &phi; &chi; &psi;
9. &omega; &Gamma; &Delta;
10. &Theta; &Lambda; &Xi;
11. &Pi; &Sigma; &Phi;
12. &Psi; &Omega;

(Mathematical Characters)
1. ∫ ∑ ∏
2. √ − ±
3. ∞ ≈ ∝
4. ≡ ≠ ≤
5. ≥ × •
6. ÷ ∂ ′
7. ″ ∇ ‰
8. ° ∴ ℵ
9. ø ∈ ∉
10. ∩ ∪ ⊂
11. ⊃ ⊆ ⊇
12. ∧ ∨
13. ∃ ∀ ⇒
14. ⇐ ⇓ ⇑
15. ⇔ → ↓
16. ↑ ← ↔


1. &int; &sum; &prod;
2. &radic; &minus; &plusmn;
3. &infin; &asymp; &prop;
4. &equiv; &ne; &le;
5. &ge; &times; &middot;
6. &divide; &part; &prime;
7. &Prime; &nabla; &permil;
8. &deg; &there4; &alefsym;
9. &oslash; &isin; &notin;
10. &cap; &cup; &sub;
11. &sup; &sube; &supe;
12. &not; &and; &or;
13. &exist; &forall; &rArr;
14. &lArr; &dArr; &uArr;
15. &hArr; &rarr; &darr;
16. &uarr; &larr; &harr;

(Allow LaTeX code)



<math>\begin{align} E &= mc^2 \end{align}</math>

<math>\begin{align} m_0 \end{align}</math>

<math>m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}</math>

<math>{\color{Blue}x^2}+{\color{YellowOrange}2x}-{\color{OliveGreen}1}</math>

(Mathematical formulae)



<math>\,\! \sin x + \ln y</math>

sin x + ln y

{{math|sin <VAR >x</VAR > + ln <VAR >y</VAR >}}

<math>\mathbf{x} = \mathbf{0}</math>

x = 0

{{math|<B >x</B > {{=}} <B >0</B >}}

Ordinary text should use for emphasis wiki markup like ( ''Italic text'' ), and should not use HTML markup like <i>. However, mathematical formulae use HTML italics and sometimes bold (for reasons unrelated to emphasis). Formulae with LaTeX markup use <math>, and simple formulae may use <math> or the template {{math}} with either HTML's <i> and <b> or wiki markup's ''Italic text'' and '''Bold text'''. Be sure to replace = with {{=}}.

 

(Spacing in simple math formulae)

x2 ≥ 0

x2
≥ 0


  • To space things out, you can use non-breaking space: &nbsp;.
  • You can use line break (<br />) if you need a line break inside a formula.



{{math|<VAR >x</VAR ><sup>2</sup>&nbsp;&nbsp;0}}

{{math|<VAR >x</VAR ><sup>2</sup><br />≥&nbsp;0}}

(Complicated formulae)

  • See Help:Displaying a formula for how to use <math>.
  • A formula displayed on a line by itself can be indented by using the colon (:) character.


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

(Chess symbols)

♔ ♕ ♖

♗ ♘ ♙


♚ ♛ ♜

♝ ♞ ♟


<font size=5>

&#9812; &#9813; &#9814;

&#9815; &#9816; &#9817;


&#9818; &#9819; &#9820;

&#9821; &#9822; &#9823;

</font>

(Showing character entities)

&rarr;

  • To show a character entity, replace its ampersand (&) with the entity for ampersand (&amp;).



&amp;rarr;

No or limited formatting—showing exactly what is being typed

A few different kinds of formatting will tell the Wiki to display things as you typed them—what you see, is what you get!

What it looks like What you type
<nowiki> tag:

The nowiki tag ignores [[Wiki]] ''markup''. It reformats text by removing newlines and multiple spaces. It still interprets special characters: →

<nowiki>
The nowiki tag ignores [[Wiki]] ''markup''.
It reformats text by removing newlines 
and multiple spaces.
It still interprets special
characters: &rarr;
</nowiki>
<pre> tag:
The pre tag ignores [[Wiki]] ''markup''.
It also doesn't     reformat text.
It still interprets special characters: →
<pre>
The pre tag ignores [[Wiki]] ''markup''.
It also doesn't     reformat text.
It still interprets special characters:
 &rarr;
</pre>
Leading space:

Leading spaces are another way to preserve formatting.


Putting a space at the beginning of each line
stops the text   from being reformatted. 
It still interprets Wiki markup and
special characters: →
Leading spaces are another way 
to preserve formatting.
 Putting a space at the beginning of each line
 stops the text   from being reformatted. 
 It still interprets [[Wiki]] ''markup'' and
 special characters: &rarr;

Invisible text (comments)

It's uncommon, but on occasion acceptable, to add a hidden comment within the text of an article. The format is this:

<!-- This is an example of text that won't normally be visible except in "edit" mode. -->

Table of contents

At the current status of the wiki markup language, having at least four headers on a page triggers the table of contents (TOC) to appear in front of the first header (or after introductory sections). Putting __TOC__ anywhere forces the TOC to appear at that point (instead of just before the first header). Putting __NOTOC__ anywhere forces the TOC to disappear. See also Compact TOC for alphabet and year headings.

Tables

There are two ways to build tables:

  • in special Wiki-markup (see Table)
  • with the usual HTML elements: <table>, <tr>, <td> or <th>.

For the latter, and a discussion on when tables are appropriate, see When to use tables.

Variables

(See also Variable)

Code Effect
{{CURRENTWEEK}} 43
{{CURRENTDOW}} 1
{{CURRENTMONTH}} 10
{{CURRENTMONTHNAME}} October
{{CURRENTMONTHNAMEGEN}} October
{{CURRENTDAY}} 21
{{CURRENTDAYNAME}} Monday
{{CURRENTYEAR}} 2024
{{CURRENTTIME}} 20:47
{{NUMBEROFARTICLES}} 6,899,216
{{NUMBEROFUSERS}} 48,144,888
{{PAGENAME}} Editing
{{NAMESPACE}} Help
{{REVISIONID}} -
{{localurl:pagename}} /wiki/Pagename
{{localurl:Wikipedia:Sandbox|action=edit}} /w/index.php?title=Wikipedia:Sandbox&action=edit
{{fullurl:pagename}} //en.wikipedia.org/wiki/Pagename
{{fullurl:pagename|query_string}} //en.wikipedia.org/w/index.php?title=Pagename&query_string
{{SERVER}} //en.wikipedia.org
{{ns:1}} Talk
{{ns:2}} User
{{ns:3}} User talk
{{ns:4}} Wikipedia
{{ns:5}} Wikipedia talk
{{ns:6}} File
{{ns:7}} File talk
{{ns:8}} MediaWiki
{{ns:9}} MediaWiki talk
{{ns:10}} Template
{{ns:11}} Template talk
{{ns:12}} Help
{{ns:13}} Help talk
{{ns:14}} Category
{{ns:15}} Category talk
{{SITENAME}} Wikipedia

NUMBEROFARTICLES is the number of pages in the main namespace which contain a link and are not a redirect, in other words number of articles, stubs containing a link, and disambiguation pages.

CURRENTMONTHNAMEGEN is the genitive (possessive) grammatical form of the month name, as used in some languages; CURRENTMONTHNAME is the nominative (subject) form, as usually seen in English.

In languages where it makes a difference, you can use constructs like {{grammar:case|word}} to convert a word from the nominative case to some other case. For example, {{grammar:genitive|{{CURRENTMONTHNAME}}}} means the same as {{CURRENTMONTHNAMEGEN}}.

Templates

The MediaWiki software used by Wikipedia has support for templates. This means standardized text chunks (such as boilerplate text), can be inserted into articles. For example, typing {{stub}} will appear as "This article is a stub. You can help Wikipedia by expanding it." when the page is saved. See Template messages for the complete list. Other commonly used templates are: {{disambig}} for disambiguation pages and {{sectstub}} like an article stub but for a section. There are many subject-specific stubs for example: {{Geo-stub}}, {{Hist-stub}}, and {{Linux-stub}}. For a complete list of stubs see Stub types.

More information on editing wiki pages

You may also want to learn about:

Getting started

Helpful tips

Naming and moving

Style and layout

Tools

See also

  • WikiProjects, if you are writing an article about something that belongs to a group of objects, check here first!