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> ]<br /> | |||
<code><nowiki>'''Bold text'''</nowiki></code> ]<br /> | |||
<code><nowiki>'''''Italicized & Bold text'''''</nowiki></code> ]]<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 | |||
<nowiki>std::cout << "Hello World!";</nowiki><br /> | |||
| | |||
<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 /> | |||
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> | |||
| |||
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 → (''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 → (''to'') the ] | |||
* Does not escape HTML character references. | |||
| | |||
* To escape HTML character references such as <tt>&rarr;</tt> use <tt>&amp;rarr;</tt> | |||
] <code></code><br /> | |||
| | |||
<br /> | |||
< |
<br/> | ||
< |
<pre><nowiki> | ||
<nowiki>Link &rarr; (''to'') | |||
the ]</nowiki> | |||
</ |
</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 → (<tt>&rarr;</tt>) use <tt>&amp;rarr;</tt> | |||
<br/> | |||
| | |||
| |||
|- 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><!-- comment here --></nowiki></code>] | |||
<!-- 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 /> | |||
'''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. &Agrave; &Aacute; &Acirc;<br /> | |||
2. &Atilde; &Auml; &Aring;<br /> | |||
3. &AElig; &Ccedil; &Egrave;<br /> | |||
<br /> | |||
4. &Eacute; &Ecirc; &Euml;<br /> | |||
5. &Igrave; &Iacute; &Icirc;<br /> | |||
6. &Iuml; &Ntilde; &Ograve;<br /> | |||
<br /> | |||
7. &Oacute; &Ocirc; &Otilde;<br /> | |||
8. &Ouml; &Oslash; &Ugrave;<br /> | |||
9. &Uacute; &Ucirc; &Uuml;<br /> | |||
<br /> | |||
10. &szlig; &agrave; &aacute;<br /> | |||
</code> | |||
|- valign="top" | |- valign="top" | ||
| | |||
| style="border-right:1px dashed #abd5f5;"| | |||
'''<span id="diacritics">Diacritical marks:</span>''' | |||
11. â ã ä<br /> | |||
<br/> | |||
À Á Â Ã Ä Å <br/> | |||
Æ Ç È É Ê Ë <br/> | |||
| | |||
Ì Í | |||
<code> | |||
Î Ï Ñ Ò <br/> | |||
11. &acirc; &atilde; &auml;<br /> | |||
Ó Ô Õ | |||
12. &aring; &aelig; &ccedil;<br /> | |||
Ö Ø Ù <br/> | |||
13. &egrave; &eacute; &ecirc;<br /> | |||
Ú Û Ü ß | |||
</code> | |||
à á <br/> | |||
â ã ä å æ | |||
ç <br/> | |||
è é ê ë ì í<br/> | |||
î ï ñ ò ó ô <br/> | |||
œ õ | |||
ö ø ù ú <br/> | |||
û ü ÿ | |||
* See ]. | |||
| | |||
<br/> | |||
<pre><nowiki> | |||
&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; | |||
</nowiki></pre> | |||
|- valign="top" | |- valign="top" | ||
| | |||
| style="border-right:1px dashed #abd5f5;"| | |||
'''Punctuation:''' | |||
14. ë ì í<br /> | |||
<br/> | |||
¿ ¡ § ¶<br/> | |||
† ‡ • – —<br/> | |||
| | |||
‹ › « »<br/> | |||
<code> | |||
‘ ’ “ ” | |||
14. &euml; &igrave; &iacute;<br /> | |||
| | |||
15. &icirc; &iuml; &ntilde;<br /> | |||
<br/> | |||
16. &ograve; &oacute; &ocirc;<br /> | |||
<pre><nowiki> | |||
</code> | |||
&iquest; &iexcl; &sect; &para; | |||
&dagger; &Dagger; &bull; &ndash; &mdash; | |||
&lsaquo; &rsaquo; &laquo; &raquo; | |||
&lsquo; &rsquo; &ldquo; &rdquo; | |||
</nowiki></pre> | |||
|- valign="top" | |- valign="top" | ||
| | |||
| style="border-right:1px dashed #abd5f5;"| | |||
'''Commercial symbols:''' | |||
17. œ õ ö<br /> | |||
<br/> | |||
™ © ® ¢ € ¥<br/> | |||
£ ¤ | |||
| | |||
| | |||
<code> | |||
<br/> | |||
17. &oelig; &otilde; &ouml;<br /> | |||
<pre><nowiki> | |||
18. &oslash; &ugrave; &uacute;<br /> | |||
&trade; &copy; &reg; &cent; &euro; &yen; | |||
&pound; &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 | |||
| |||
<br/> | |||
|- id="punctuation" valign="top" | |||
x₀ x₁ x₂ x₃ x₄ | |||
| style="border-right:1px dashed #abd5f5;"| | |||
<br/> | |||
x₅ x₆ x₇ x₈ x₉ | |||
1. ¿ ¡<br /> | |||
2. § <br /> | |||
'''Superscripts:''' | |||
3. † ‡<br /> | |||
<br/> | |||
x<sup>1</sup> x<sup >2</sup > x<sup >3</sup > or | |||
5. ‹ ›<br /> | |||
<br/> | |||
x⁰ x¹ x² x³ x⁴ | |||
7. ‘ ’<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. &iquest; &iexcl;<br /> | |||
8.85 × 10<sup>−12</sup> | |||
C² / J m. | |||
3. &dagger; &Dagger;<br /> | |||
4. &ndash; &mdash;<br /> | |||
5. &lsaquo; &rsaquo;<br /> | |||
6. &laquo; &raquo;<br /> | |||
7. &lsquo; &rsquo;<br /> | |||
8. &ldquo; &rdquo;<br /> | |||
9. <nowiki><big></nowiki>&ldquo; &rdquo;<nowiki></big></nowiki><br /> | |||
10. &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. &trade; &copy; &reg;<br /> | |||
2. &cent; &euro; &yen;<br /> | |||
3. &pound; &curren;<br /> | |||
4. <nowiki><big style="font-size:23px"></nowiki>&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&#8320; x&#8321; x&#8322;<br /> | |||
</code> | |||
|- valign="top" | |||
| style="border-right:1px dashed #abd5f5;"| | |||
3. x₃ x₄ x₅<br /> | |||
| | |||
<code> | |||
3. x&#8323; x&#8324; x&#8325;<br /> | |||
</code> | |||
|- valign="top" | |||
| style="border-right:1px dashed #abd5f5;"| | |||
4. x₆ x₇ x₈<br /> | |||
| | |||
<code> | |||
4. x&#8326; x&#8327; x&#8328;<br /> | |||
</code> | |||
|- valign="top" | |||
| style="border-right:1px dashed #abd5f5;"| | |||
5. x₉<br /> | |||
or<br /> | |||
<math>x_0</math> | |||
| | |||
<code> | |||
5. x&#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&#8304; x&sup1; x&sup2;<br /> | |||
3. x&sup3; x&#8308; x&#8309;<br /> | |||
4. x&#8310; x&#8311; x&#8312;<br /> | |||
</code> | |||
|- valign="top" | |||
| style="border-right:1px dashed #abd5f5;"| | |||
5. x⁹<br /> | |||
or<br /> | |||
<math>x^0</math> | |||
| | |||
<code> | |||
5. x&#8313;<br /> | |||
</code> | |||
or<br /> | |||
<code><nowiki><math>x^0</math></nowiki></code>] | |||
|- valign="top" | |||
| style="border-right:1px dashed #abd5f5;"| | |||
<br /> | |||
<br /> | |||
<br /> | |||
ε<sub>0</sub> = 8.85 × 10<sup>−12</sup> C² / J m. | |||
| | |||
<br /> | |||
<br /> | |||
<code><nowiki>&epsilon;<sub>0</sub> = 8.85 &times; 10<sup>&minus;12</sup> C&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&#8320; x&#8321; x&#8322; x&#8323; x&#8324; | |||
<br/> | |||
x&#8325; x&#8326; x&#8327; x&#8328; x&#8329; | |||
</nowiki></pre> | |||
<pre><nowiki> | |||
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 ] = ] | |||
</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/> | |||
| |||
Γ Δ Θ Λ Ξ Π<br/> | |||
|- id="greekcharacters" valign="top" | |||
Σ Φ Ψ Ω | |||
| style="border-right:1px dashed #abd5f5;"| | |||
| | |||
(Greek characters)<br /> | |||
<br/> | |||
<pre><nowiki> | |||
2. δ ε ζ<br /> | |||
&alpha; &beta; &gamma; &delta; &epsilon; &zeta; | |||
3. η θ ι<br /> | |||
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu; | |||
4. κ λ μ<br /> | |||
&xi; &omicron; &pi; &rho; &sigma; &sigmaf; | |||
5. ν ξ ο<br /> | |||
&tau; &upsilon; &phi; &chi; &psi; &omega; | |||
6. π ρ σ<br /> | |||
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi; | |||
7. ς τ υ<br /> | |||
&Sigma; &Phi; &Psi; &Omega; | |||
8. φ χ ψ<br /> | |||
</nowiki></pre> | |||
9. ω Γ Δ<br /> | |||
10. Θ Λ Ξ<br /> | |||
11. Π Σ Φ<br /> | |||
12. Ψ Ω<br /> | |||
| | |||
<br /> | |||
<code> | |||
1. &alpha; &beta; &gamma;<br /> | |||
2. &delta; &epsilon; &zeta;<br /> | |||
3. &eta; &theta; &iota;<br /> | |||
4. &kappa; &lambda; &mu;<br /> | |||
5. &nu; &xi; &omicron;<br /> | |||
6. &pi; &rho; &sigma;<br /> | |||
7. &sigmaf; &tau; &upsilon;<br /> | |||
8. &phi; &chi; &psi;<br /> | |||
9. &omega; &Gamma; &Delta;<br /> | |||
10. &Theta; &Lambda; &Xi;<br /> | |||
11. &Pi; &Sigma; &Phi;<br /> | |||
12. &Psi; &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. &int; &sum; &prod;<br /> | |||
2. &radic; &minus; &plusmn;<br /> | |||
3. &infin; &asymp; &prop;<br /> | |||
4. &equiv; &ne; &le;<br /> | |||
5. &ge; &times; &middot;<br /> | |||
6. &divide; &part; &prime;<br /> | |||
7. &Prime; &nabla; &permil;<br /> | |||
8. &deg; &there4; &alefsym;<br /> | |||
9. &oslash; &isin; &notin;<br /> | |||
10. &cap; &cup; &sub;<br /> | |||
11. &sup; &sube; &supe;<br /> | |||
12. &not; &and; &or;<br /> | |||
13. &exist; &forall; &rArr;<br /> | |||
14. &lArr; &dArr; &uArr;<br /> | |||
15. &hArr; &rarr; &darr;<br /> | |||
16. &uarr; &larr; &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/> | |||
| | |||
∫ ∑ ∏ √ − ± ∞<br/> | |||
<code><nowiki><math>\begin{align} m_0 \end{align}</math></nowiki></code> | |||
≈ ∝ ≡ ≠ ≤ ≥<br/> | |||
× · ÷ ∂ ′ ″<br/> | |||
∇ ‰ ° ∴ ℵ ø<br/> | |||
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇<br/> | |||
¬ ∧ ∨ ∃ ∀<br/> | |||
⇒ ⇐ ⇓ ⇑ ⇔<br/> | |||
→ ↓ ↑ ← ↔<br/> | |||
* See also ] and ]. | |||
| | |||
<br/> | |||
<pre><nowiki> | |||
&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; | |||
</nowiki></pre> | |||
|- valign="top" | |- valign="top" | ||
| | |||
| style="border-right:1px dashed #abd5f5;"| | |||
<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><i></code> or <code><b></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><math></code> or <code >{{tl|math}}</code > with <code><i></code> and <code><b></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><i></code> and <code><b></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></ |
</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><i></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><math></code> or the template <code >{{tl|math}}</code > with either HTML's <code><i></code> and <code><b></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 >. | |||
| | |||
| |||
|- 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> ≥ 0}}< |
Obviously, {{math|<VAR >x</VAR ><sup>2</sup> ≥ 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>&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 ><BR ></code > if you need an explicit line break inside a formula. | |||
{{math|<VAR >x</VAR ><sup>2</sup><br />≥ 0}} | |||
| | |||
<br /> | |||
<br |
<br/> | ||
<pre><nowiki> | |||
* To space things out, you can use non-breaking space: <code>&nbsp;</code>. | |||
Obviously, {{math|<VAR >x</VAR ><sup>2</sup> ≥ 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>&nbsp;</code></font><code><nowiki>≥</nowiki></code><font color="#FFD800"><code>&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>≥&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><math></tt>. | * See ] for how to use <tt><math></tt>. | ||
* A formula displayed on a line by itself |
* A formula displayed on a line by itself should probably be indented by using the colon (:) character. | ||
| |
| | ||
<br/> | <br/> | ||
< |
<pre><nowiki> | ||
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> | : <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> | ||
</nowiki></ |
</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> | |||
&#9812; &#9813; &#9814; | |||
&#9815; &#9816; &#9817; | |||
&#9818; &#9819; &#9820; | |||
&#9821; &#9822; &#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">&</font>rarr;</tt> | |||
*To show a character entity, replace its ampersand (&) with the entity for ampersand (&amp;). | |||
| | |||
<br /> | |||
<br /> | |||
<tt><font color="#FFD800">&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.
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
ShortcutThe 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)
|
|
San Francisco also has public transportation. (Renamed link)
|
|
San Francisco also has public transportation. (Blend link) Examples include buses, taxicabs, and trams.
|
|
See the Misplaced Pages:Manual of Style. (Other page link)
|
|
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.
|
|
(Example renamed links) Automatically hide stuff in parentheses: kingdom. Automatically hide namespace: Village pump. Or both: Manual of Style But not: ]
|
|
(Create page link) Links to pages that don’t exist yet look red: Misplaced Pages:Community portal/Opentask/Requested articles
|
|
(Navigation links) Misplaced Pages:How to edit a page 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:
Adding three tildes (~~~) will add just your user name: and adding five tildes (~~~~~) gives the date/time alone:
|
|
(Redirects)
|
|
(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).
|
|
(Linked and why) What links here and Related changes
pages can be linked as: |
'''What links here''' and '''Related changes'''
pages can be linked as: |
(User edits) A user's Contributions page can be linked as: Special:Contributions/UserName or Special:Contributions/192.0.2.0 |
|
(Categorize)
|
|
(Category page link)
|
|
(External links) Three ways to link to external (non-wiki) sources:
|
|
(Wikimedia text link) Linking to other wikis:
Linking to another language's wiktionary:
|
|
(Book sources) ISBN 012345678X ISBN 0-12-345678-X
|
|
(RFC number) 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. |
|
(Media link)
Some uploaded sounds are listed at Commons:Sound. |
|
(Edit links) Link directly to edit for an existing page, or apply other link attributes.
|
|
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: | With alternative text: ]
|
Floating to the right side of the page using the frame attribute and a caption:
|
Floating to the right side of the page using the ''frame'' attribute and a caption: ]
|
Floating to the right side of the page using the thumb attribute and a caption:
|
Floating to the right side of the page using the ''thumb'' attribute and a caption: ]
|
Floating to the right side of the page without a caption: | 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: | Linking directly to the description page of an image: ]
(such as any of the ones above) also leads to the description page |
Linking directly to an image without displaying it: | Linking directly to an image without displaying it: ]
|
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 |
''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 #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 <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 You can also mark
|
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:
|
<nowiki>Link → (''to'') the ]</nowiki> |
Commenting page source:
|
<!-- 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:
|
À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü ß à á â ã ä å æ ç è é ê ë ì í î ï ñ ò ó ô œ õ ö ø ù ú û ü ÿ |
Punctuation:
|
¿ ¡ § ¶ † ‡ • – — ‹ › « » ‘ ’ “ ” |
Commercial symbols:
|
™ © ® ¢ € ¥ £ ¤ |
Subscripts:
Superscripts:
ε0 = 8.85 × 10 C² / J m. |
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or <br/> x₀ x₁ x₂ x₃ x₄ <br/> x₅ x₆ x₇ x₈ x₉ x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or <br/> x⁰ x¹ x² x³ x⁴ <br/> x⁵ x⁶ x⁷ x⁸ x⁹ ε<sub>0</sub> = 8.85 × 10<sup>−12</sup> C² / J m. 1 ] = ] |
Greek characters:
|
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω |
Mathematical characters:
|
∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ℵ ø ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇐ ⇓ ⇑ ⇔ → ↓ ↑ ← ↔ |
Ordinary text should use wiki markup for emphasis, and should not use |
<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, {{math|<VAR >x</VAR ><sup>2</sup> ≥ 0}} is true when {{math|<VAR >x</VAR >}} is a real number. |
Complicated formulae:
|
: <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: → </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: → </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: → |
Invisible text (comments)
Main page: Misplaced Pages:Manual of Style § Invisible commentsIt'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!