Misplaced Pages

Help:Editing: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 16:44, 7 May 2009 view sourceChuck Marean (talk | contribs)3,882 edits 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.← Previous edit Revision as of 08:16, 8 May 2009 view source Sandolsky (talk | contribs)624 edits Revert - reformatting od table made it much harder to read (light blue borders are less visible and layut is poorer) and incnsistent with rest of page.Next edit →
Line 516: Line 516:


===Character formatting=== ===Character formatting===
{| border="1" cellpadding="2" cellspacing="0"
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.
|- valign="top"
{|
! What it looks like
! What you type
|- id="emph" valign="top"
| |
''Italicized text''<br />'''Bold text'''<br />'''''Italicized & Bold text'''''
*]
*]
*]
*]
*]
*]
*]
*]
*]
*]
| |
<pre><nowiki>
*]
''Italicized text''
*]
'''Bold text'''
*]
'''''Italicized & Bold text'''''
*]
</nowiki></pre>
*]
|- valign="top"
*]
|
*]
for source code.
*]
*]
*]
|}


Computer code has a colored background
{| border="0" style="background:#abd5f5" align="center" width="100%"
and more stringent formatting. Suppose we
|-
want to define <code>int main()</code>:
|
<source lang=cpp>#include <iostream>
{| cellpadding="4" style="background:#abd5f5; text-align:center; color:#FFFFFF" width="100%"
|- 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;]<br />
<code><nowiki>'''Bold text'''</nowiki></code>&nbsp;]<br />
<code><nowiki>'''''Italicized & Bold text'''''</nowiki></code>&nbsp;]]<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>
Computer code has a colored background
<br />
and more stringent formatting. Suppose we
<br />
want to define <code>int main()</code>:
More on showing source code highlighted ().
<pre><nowiki>
|
<source lang=cpp>#include <iostream>
<br />
int main ( int argc, char **argv ) {
<br />
std::cout << "Hello World!";
<code>
return 0;
<nowiki><source lang="cpp" line="50%"></nowiki><br />
}</source>
<nowiki>#include <iostream></nowiki><br />
</nowiki></pre>
<nowiki>int main ( int argc, char **argv ) {</nowiki><br />
|- valign=top
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>std::cout << "Hello World!";</nowiki><br />
|
&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.
| |
<pre><nowiki>
<br />
<code><nowiki>You can use <small>small text</small> for captions.</nowiki></code> You can use <small>small text</small> for captions.
</nowiki></pre>
|- id="bigtag" valign="top"
| 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;"|
Better stay away from <big>big text</big>, unless
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.
<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 Misplaced Pages articles, just make your changes and do not mark them up in any special way. * When editing regular Misplaced Pages 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.
| |
<pre><nowiki>
&nbsp;
You can <s>strike out deleted material</s>
|- id="showingwikimarkup" valign="top"
and <u>underline new material</u>.
| style="border-right:1px dashed #abd5f5;"|

(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/>
<nowiki>Link &rarr; (''to'') the ]</nowiki>
<br />
* Used to show literal data that would otherwise have special meaning.
<br />
* Escape all wiki markup, including that which looks like HTML tags.
Link &rarr; (''to'') the ]
* Does not escape HTML character references.
|
* To escape HTML character references such as <tt>&amp;rarr;</tt> use <tt>&amp;amp;rarr;</tt>
] &nbsp; &lt;code&gt;&lt;/code&gt;<br />
|
<br />
<code> <br/>
<nowiki> <code><nowiki> </nowiki><br /> <pre><nowiki>
<nowiki>Link &amp;rarr; (''to'') the ]</nowiki> &lt;nowiki>Link &amp;rarr; (''to'')
the ]&lt;/nowiki>
</code><br /> </nowiki></pre>
<code><nowiki> </nowiki> </nowiki></code><!-- both --><code><nowiki></code></nowiki></code>
|- valign="top" |- valign="top"
|
| style="border-right:1px dashed #abd5f5;"|
'''Commenting page source:'''
* To show HTML character references such as &rarr; (<tt>&amp;rarr;</tt>) use <tt>&amp;amp;rarr;</tt>
<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 ]. * Note that most comments should go on the appropriate ].
| |
<br/> <br/>
<pre><nowiki>
<code><nowiki>&lt;!-- comment here --></nowiki></code>]
&lt;!-- comment here -->
|- id="extraspacing" valign="top"
</nowiki></pre>
| style="border-right:1px dashed #abd5f5;"|
|-
(Extra spacing)<br />
|
Mary {{pad|4em}} had a little lamb.<br />
*This uses the ] template. '''Extra spacing''' within text can best be achieved using the ] template:
|
<br />
<code><nowiki>Mary {{pad|4em}} had a little lamb.</nowiki></code>


Mary {{pad|4em}} had a little lamb.
|- id="diacritics" valign="top"
|
| style="border-right:1px dashed #abd5f5;"|
(Diacritical marks)<br />
1. À Á Â<br />
2. Ã Ä Å<br />
3. Æ Ç È<br />
<br /> <br />
<pre><nowiki>Mary {{pad|4em}} had a little lamb.</nowiki></pre>
4. É Ê Ë<br />
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;"|
'''<span id="diacritics">Diacritical marks:</span>'''
11. â ã ä<br />
12. å æ ç<br /> <br/>
13. è é ê<br /> À Á Â Ã Ä Å <br/>
Æ Ç È É Ê Ë <br/>
|
Ì Í
<code>
Î Ï Ñ Ò <br/>
11. &amp;acirc; &amp;atilde; &amp;auml;<br />
Ó Ô Õ
12. &amp;aring; &amp;aelig; &amp;ccedil;<br />
Ö Ø Ù <br/>
13. &amp;egrave; &amp;eacute; &amp;ecirc;<br />
Ú Û Ü ß
</code>
à á <br/>
â ã ä å æ
ç <br/>
è é ê ë ì í<br/>
î ï ñ ò ó ô <br/>
œ õ
ö ø ù ú <br/>
û ü ÿ

* See ].
|
<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;"|
'''Punctuation:'''
14. ë ì í<br />
15. î ï ñ<br /> <br/>
16. ò ó ô<br /> ¿ ¡ § <br/>
† ‡ • &ndash; &mdash;<br/>
|
‹ › « »<br/>
<code>
‘ ’ “ ”
14. &amp;euml; &amp;igrave; &amp;iacute;<br />
|
15. &amp;icirc; &amp;iuml; &amp;ntilde;<br />
<br/>
16. &amp;ograve; &amp;oacute; &amp;ocirc;<br />
<pre><nowiki>
</code>
&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;"|
'''Commercial symbols:'''
17. œ õ ö<br />
18. ø ù ú<br /> <br/>
19. û ü ÿ<br /> © ® ¢ € ¥<br/>
£ ¤
|
|
<code>
<br/>
17. &amp;oelig; &amp;otilde; &amp;ouml;<br />
<pre><nowiki>
18. &amp;oslash; &amp;ugrave; &amp;uacute;<br />
19. &amp;ucirc; &amp;uuml; &amp;yuml;<br /> &amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;
&amp;pound; &amp;curren;
</code>
</nowiki></pre>
|- valign="top" |- valign="top"
|
| style="border-right:1px dashed #abd5f5;"|
'''Subscripts:'''
*Copy & paste or use the entities (to the right).
<br/>
|
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or
&nbsp;
<br/>
|- id="punctuation" valign="top"
x₀ x₁ x₂ x₃ x₄
| style="border-right:1px dashed #abd5f5;"|
(Punctuation)<br /> <br/>
x₅ x₆ x₇ x₈ x₉
1. ¿ ¡<br />

2. § <br />
'''Superscripts:'''
3. † ‡<br />
4. – —<br /> <br/>
x<sup>1</sup> x<sup >2</sup > x<sup >3</sup > or
5. ‹ ›<br />
6. « »<br /> <br/>
x⁰ x¹ x² x³ x⁴
7. ‘ ’<br />
8. “ ”<br /> <br/>
x⁵ x⁶ x⁷ x⁸ x⁹
9. <big>“ ”</big><br />

10. •<br />
*The ] prefers the <nowiki>x<sub>1</sub></nowiki> format.
|
*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.
<br />

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

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 />
]<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>]
|- 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 />
]<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>]
|- 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 ] = ] 1 ] = ]
| |
<br /> <br/>
<pre><nowiki>
<br />
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or
<code><nowiki>1 ] = ]</nowiki></code>
<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 ] = ]
</nowiki></pre>
|- valign="top" |- valign="top"
|
| style="border-right:1px dashed #abd5f5;"|
'''Greek characters:'''
<br />
<br /> <br/>
α β γ δ ε ζ<br/>
*The "x&# . . ." method is not used, as they rely on Unicode support which may not be present on all users' machines. The ] 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"
Σ Φ Ψ Ω
| style="border-right:1px dashed #abd5f5;"|
|
(Greek characters)<br />
1. α β γ<br /> <br/>
<pre><nowiki>
2. δ ε ζ<br />
&amp;alpha; &amp;beta; &amp;gamma; &amp;delta; &amp;epsilon; &amp;zeta;
3. η θ ι<br />
&amp;eta; &amp;theta; &amp;iota; &amp;kappa; &amp;lambda; &amp;mu; &amp;nu;
4. κ λ μ<br />
&amp;xi; &amp;omicron; &amp;pi; &amp;rho; &amp;sigma; &amp;sigmaf;
5. ν ξ ο<br />
&amp;tau; &amp;upsilon; &amp;phi; &amp;chi; &amp;psi; &amp;omega;
6. π ρ σ<br />
&amp;Gamma; &amp;Delta; &amp;Theta; &amp;Lambda; &amp;Xi; &amp;Pi;
7. ς τ υ<br />
&amp;Sigma; &amp;Phi; &amp;Psi; &amp;Omega;
8. φ χ ψ<br />
</nowiki></pre>
9. ω Γ Δ<br />
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>
|
]<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;"|
'''Mathematical characters:'''
<math>\begin{align} m_0 \end{align}</math>
<br/>
|
∫ ∑ ∏ √ &minus; ± ∞<br/>
<code><nowiki><math>\begin{align} m_0 \end{align}</math></nowiki></code>
≈ ∝ ≡ ≠ ≤ ≥<br/>
&times; · ÷ ∂ &prime; &Prime;<br/>
∇ ‰ ° ∴ ℵ ø<br/>
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇<br/>
¬ ∧ ∨ ∃ ∀<br/>
⇒ ⇐ ⇓ ⇑ ⇔<br/>
→ ↓ ↑ ← ↔<br/>
* See also ] and ].
|
<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>m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}</math> <math>\,\! \sin x + \ln y</math><br>
|
<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 >}}

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

Ordinary text should use ], 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 ], 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 ], 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>
<math>\mathbf{x} = \mathbf{0}</math><br>
|- valign="top"
| 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></code> </nowiki></pre>
|- valign="top" |- valign="top"
|
| style="border-right:1px dashed #abd5f5;"|
'''Spacing in simple math formulae:'''
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 ], 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 >.
|
&nbsp;
|- id="spacinginsimplemathformulae" valign="top"
| style="border-right:1px dashed #abd5f5;"|
(Spacing in simple math formulae)<br />
<br/> <br/>
{{math|<VAR >x</VAR ><sup>2</sup>&nbsp;≥&nbsp;0}}<br /> Obviously, {{math|<VAR >x</VAR ><sup>2</sup>&nbsp;≥&nbsp;0}} is true when {{math|<VAR >x</VAR >}} is a real number.
* To space things out without allowing line breaks to interrupt the formula, you can use non-breaking spaces: <code>&amp;nbsp;</code>.
<br />
* 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.
{{math|<VAR >x</VAR ><sup>2</sup><br />≥&nbsp;0}}
|
<br />
<br /> <br/>
<pre><nowiki>
* To space things out, you can use non-breaking space: <code>&amp;nbsp;</code>.
Obviously, {{math|<VAR >x</VAR ><sup>2</sup>&nbsp;≥&nbsp;0}} is true when {{math|<VAR >x</VAR >}} is a real number.
* You can use line break (<code><nowiki><br /></nowiki></code>) if you need a line break inside a formula.
</nowiki></pre>
|
|- valign="top"
<br />
|
<br />
'''Complicated formulae:'''
<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 />
<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 ] for how to use <tt>&lt;math></tt>. * See ] for how to use <tt>&lt;math></tt>.
* A formula displayed on a line by itself can be indented by using the colon (:) character. * A formula displayed on a line by itself should probably be indented by using the colon (:) character.
| |
<br/> <br/>
<code><nowiki> <pre><nowiki>
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> : <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
</nowiki></code> </nowiki></pre>
|- 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: ])''


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

Revision as of 08:16, 8 May 2009

Shortcuts See also: Misplaced Pages:Introduction, Misplaced Pages:Tutorial, Misplaced Pages:Your first article, Help:Editing, Misplaced Pages:Manual of Style, and Misplaced Pages:Editing policy

Misplaced Pages 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 Misplaced Pages editor!

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

Introduction

Editing most Misplaced Pages pages is easy. Simply click on the "edit this page" tab at the top of a Misplaced Pages 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 Misplaced Pages 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 Misplaced Pages 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

Further information: ]

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 Misplaced Pages 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

Shortcut

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

Links and URLs

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/Public_transport, which is the Misplaced Pages article with the name "Public transport". See also Canonicalization.

London has ].

San Francisco also has public transportation. (Renamed link)

  • Same target, different name.
  • The target ("piped") text must be placed first, then the text to be displayed, second.

San Francisco also has ].

San Francisco also has public transportation. (Blend link)

Examples include buses, taxicabs, and trams.

  • Endings are blended into the link.
    • Exception: a trailing apostrophe (') and any characters following the apostrophe are not blended.
  • Preferred style is to use this instead of a piped link, if possible.
  • Blending can be suppressed by using <nowiki></nowiki> tags, which may be desirable in some instances. Example: a micro-second.

San Francisco also has ]ation.

Examples include ]es, ]s, and ]s.

a ]<nowiki>second</nowiki>

See the Misplaced Pages:Manual of Style. (Other page link)

See the ].

Misplaced Pages:Manual of Style#Italics is a link to a section within another page.

#Links and URLs is a link to another section on the current page.

Italics is a piped link to a section within another page.

  • The part after the number sign (#) must match a section heading on the page. Matches must be exact in terms of spelling, case, and punctuation. Links to non-existent sections are not broken; they are treated as links to the top of the page.
  • Include "| link title" to create a stylish (piped) link title.

] is a link to a section within another page.

] is a link to another section on the current page.


] is a piped link to a section within another page.

(Example renamed links)

Automatically hide stuff in parentheses: kingdom.

Automatically hide namespace: Village pump.

Or both: Manual of Style

But not: ]

  • 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 previewing 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 (see previous entry).
  • See Pipe trick for details.

Automatically hide stuff in parentheses: ].


Automatically hide namespace: ].


Or both:]


But not:]

(Create page link)

Links to pages that don’t exist yet look red: Misplaced Pages:Community portal/Opentask/Requested articles

  • You can create it by clicking on the link.
  • To create a new page:
    1. Create a link to it on some other (related) page.
    2. Save that page.
    3. Click on the link you just made. The new page will open for editing.
  • For more information, see starting an article and check out Misplaced Pages's naming conventions.
  • Please do not create a new article without linking to it from at least one other article.

] is a red link.

(Navigation links)

Misplaced Pages:How to edit a page is a link to this page.

  • Self links 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 Article titles.

] is a link to this page.

(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 ]


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

(Wikimedia link)

To connect, via interwiki link, to a page on the same subject in another language, put a link of the form: ] near the bottom of the article. For example, in article "Plankton", which is available on a lot of other wikis, the interwiki link to the German Misplaced Pages looks like:

]

where the "de" is the language-code for "Deutsch" (the German language).

  • It is recommended interwiki links be placed at the very end of the article.
  • Interwiki links are not visible within the formatted article but, instead, appear as language links on the extreme left-margin column of a Misplaced Pages page (under menu section "languages").
  • Please see Interlanguage links and the Complete list of language wikis available.

] ] ] ]

(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/ Misplaced Pages: 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: ] or ]

(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 page link)

  • To link to a category page without putting the article into the category, use a colon prefix (":Category") in the link. The formatted text link will appear as: Category:Character sets.

]

(External links)

Three ways to link to external (non-wiki) sources:

  1. Bare URL: http://www.wikipedia.org/ (bad style)
  2. Unnamed link: (only used within article body for footnotes)
  3. Named link: Misplaced Pages
See meta:interwiki map for the list of shortcuts.
  • 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:
    A-Z a-z 0-9 . _ \ / ~ % - + & # ? ! = ( ) @
  • If a URL contains a character not in this list, it should be encoded by using a percent sign (%) followed by the hex code of the character, which can be found in the table of ASCII printable characters. For example, the caret character (^) would be encoded in a URL as %5E.
  • If the "named" version contains a closing square bracket "]", then you must use the HTML special character syntax, i.e. &#93; otherwise the MediaWiki software will prematurely interpret this as the end of the external link.
  • There is a class that can be used to remove the arrow image from the external link. It is used in Template:Ref to stop the URL from expanding during printing. It should never be used in the main body of an article. However, there is an exception: wikilinks in Image markup. An example of the markup is as follows:
    • Markup: <span class="plainlinksneverexpand"> [http://www.sysinternals.com/ ntw2k/freeware/winobj.shtml WinObj]</span>
    • Display: WinObj
  • See External links for style issues.

Three ways to link to external (non-wiki) sources:
# Bare URL: http://en.wikipedia.org/ (bad style)
# Unnamed link: (only used within article body for footnotes)
# Named link:

(Wikimedia text link)

Linking to other wikis:

  1. InterWiki link: Wiktionary:Hello
  2. Interwiki link without prefix: Hello
  3. Named interwiki link: Wiktionary definition of 'Hello'

Linking to another language's wiktionary:

  1. Wiktionary:fr:bonjour
  2. bonjour
  3. fr:bonjour

Linking to other wikis:
# ] link: ]
# Interwiki link without prefix: ]
# Named interwiki link: ]

Linking to another language's wiktionary:

# ]
# ]
# ]

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

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

(Media link)

Sound

  • To include links to non image uploads such as sounds, use a "media" link. For images, see next section.

Some uploaded sounds are listed at Commons:Sound.

]

(Edit links)

Link directly to edit for an existing page, or apply other link attributes.

  • use {{fullurl:}}
  • or use {{template:edit}} which conceals the edit label for page printing

{{fullurl:page name|action=edit}}

Images

Only images that have been uploaded to Misplaced Pages 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: 
]
With alternative text:

Misplaced Pages, The 💕.

With alternative text:
]
  • 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:
Misplaced Pages Encyclopedia

Floating to the right side of the page 
using the ''frame'' attribute and a caption:
]
  • 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:
Misplaced Pages Encyclopedia

Floating to the right side of the page 
using the ''thumb'' attribute and a caption:
]
  • 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:
Misplaced Pages Encyclopedia
Misplaced Pages Encyclopedia
Floating to the right side of the page
''without'' a caption:
]
A picture resized to 30 pixels...

A picture resized to 30 pixels...
]
Linking directly to the description page of an image:

Image:wiki.png

Linking directly to the description page
of an image:
]
  • 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:
]
  • 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 Misplaced Pages's image use policy as a guideline used on Misplaced Pages.

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

What it looks like What you type

Italicized text
Bold text
Italicized & Bold text

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

Syntax highlighting for source code.

Computer code has a colored background and more stringent formatting. Suppose we want to define int main():

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

Computer code has a colored background and more stringent formatting. Suppose we want to define int main():

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

You can use small text for captions.

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

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.

You can strike out deleted material and underline new material.

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

  • When editing regular Misplaced Pages 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.
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.

Suppressing interpretation of markup:
Link → (''to'') the ]

  • 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 &rarr; use &amp;rarr;


<nowiki>Link &rarr; (''to'') 
the ]</nowiki>

Commenting page source:
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 within text can best be achieved using the pad template:

Mary   had a little lamb.


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

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


&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; &sect; &para;
&dagger; &Dagger; &bull; &ndash; &mdash;
&lsaquo; &rsaquo; &laquo; &raquo;
&lsquo; &rsquo; &ldquo; &rdquo;

Commercial symbols:
™ © ® ¢ € ¥
£ ¤


&trade; &copy; &reg; &cent; &euro; &yen; 
&pound; &curren;

Subscripts:
x1 x2 x3 or
x₀ x₁ x₂ x₃ x₄
x₅ x₆ x₇ x₈ x₉

Superscripts:
x x x or
x⁰ x¹ x² x³ x⁴
x⁵ x⁶ x⁷ x⁸ x⁹

  • The Manual of Style prefers the x<sub>1</sub> format.
  • 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.

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

1 hectare = 1 E4 m²


x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or
<br/>
x&#8320; x&#8321; x&#8322; x&#8323; x&#8324;
<br/>
x&#8325; x&#8326; x&#8327; x&#8328; x&#8329;
x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or
<br/>
x&#8304; x&sup1; x&sup2; x&sup3; x&#8308;
<br/>
x&#8309; x&#8310; x&#8311; x&#8312; x&#8313;
&epsilon;<sub>0</sub> =
8.85 &times; 10<sup>&minus;12</sup>
C&sup2; / J m.
1 ] = ]

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;

Mathematical 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; &lArr; &dArr; &uArr; &hArr;
&rarr; &darr; &uarr; &larr; &harr;

sin x + ln y {\displaystyle \,\!\sin x+\ln y}
sin x + ln y

x = 0 {\displaystyle \mathbf {x} =\mathbf {0} }
x = 0

Ordinary text should use wiki markup for emphasis, and should not use <i> or <b>. However, mathematical formulae often use italics, and sometimes use bold, for reasons unrelated to emphasis. Complex formulae should use <math> markup, and simple formulae may use <math> or {{math}} with <i> and <b> or '' and '''. Make sure to replace = with {{=}}.

<math>\,\! \sin x + \ln y</math><br>
{{math|sin <VAR >x</VAR > + ln <VAR >y</VAR >}}
<math>\mathbf{x} = \mathbf{0}</math><br>
{{math|<B >x</B > {{=}} <B >0</B >}}

Spacing in simple math formulae:
Obviously, x ≥ 0 is true when x is a real number.

  • To space things out without allowing line breaks to interrupt the formula, you can use non-breaking spaces: &nbsp;.
  • However, even if you do not use non-breaking spaces, the {{math}} template will prevent line breaks anyway; you can use <BR > if you need an explicit line break inside a formula.


Obviously, {{math|<VAR >x</VAR ><sup>2</sup> ≥ 0}} is true when {{math|<VAR >x</VAR >}} is a real number.

Complicated formulae:

n = 0 x n n ! {\displaystyle \sum _{n=0}^{\infty }{\frac {x^{n}}{n!}}}
  • See Help:Displaying a formula for how to use <math>.
  • A formula displayed on a line by itself should probably be indented by using the colon (:) character.


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

(see also: Chess symbols in Unicode)

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 ] ''markup''. It reformats text by removing newlines and multiple spaces. It still interprets special characters: →

<nowiki>
The nowiki tag ignores ] ''markup''.
It reformats text by removing newlines 
and multiple spaces.
It still interprets special
characters: &rarr;
</nowiki>
<pre> tag:
The pre tag ignores ] ''markup''.
It also doesn't     reformat text.
It still interprets special characters: →
<pre>
The pre tag ignores ] ''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 ] ''markup'' and
 special characters: &rarr;

Invisible text (comments)

Main page: Misplaced Pages:Manual of Style § Invisible 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}} 52
{{CURRENTDOW}} 5
{{CURRENTMONTH}} 12
{{CURRENTMONTHNAME}} December
{{CURRENTMONTHNAMEGEN}} December
{{CURRENTDAY}} 27
{{CURRENTDAYNAME}} Friday
{{CURRENTYEAR}} 2024
{{CURRENTTIME}} 06:56
{{NUMBEROFARTICLES}} 6,930,514
{{NUMBEROFUSERS}} 48,463,951
{{PAGENAME}} Editing
{{NAMESPACE}} Help
{{REVISIONID}} -
{{localurl:pagename}} /Pagename
{{localurl:Misplaced Pages:Sandbox|action=edit}} /search/?title=Misplaced Pages:Sandbox&action=edit
{{fullurl:pagename}} //en.wikipedia.org/Pagename
{{fullurl:pagename|query_string}} //en.wikipedia.org/search/?title=Pagename&query_string
{{SERVER}} //en.wikipedia.org
{{ns:1}} Talk
{{ns:2}} User
{{ns:3}} User talk
{{ns:4}} Misplaced Pages
{{ns:5}} Misplaced Pages 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}} Misplaced Pages

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 Misplaced Pages 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 Misplaced Pages 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!


Categories: