Misplaced Pages

Help:Editing

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.

This is an old revision of this page, as edited by Chuck Marean (talk | contribs) at 16:44, 7 May 2009 (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.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 16:44, 7 May 2009 by Chuck Marean (talk | contribs) (Character formatting: Added intro & contents. Replaced “pre” with “code” for wrapping. Nested for right-left alignment. Blue with dotted vertical. Numbered entities. LaTeX e.g., chess & amp use.)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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

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

What it looks like

What you type

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


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

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


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



More on showing source code highlighted (here).



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

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


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

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


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

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

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

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

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

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

 

(Showing wiki markup)


Link → (to) the Misplaced Pages:FAQ

  <code></code>

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

</nowiki></code>

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

 

(Source comment)
not shown when viewing page

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


<!-- comment here -->

(Extra spacing)
Mary   had a little lamb.

  • This uses the pad template.


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

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

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

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

10. ß à á


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

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

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

10. &szlig; &agrave; &aacute;

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

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

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

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

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

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

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

 

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


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

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


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

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



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

2. x₀ x₁ x₂

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

3. x₃ x₄ x₅

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

4. x₆ x₇ x₈

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

5. x₉
or
x 0 {\displaystyle x_{0}}

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



Superscripts:
1. x x x or




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

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

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

5. x⁹
or
x 0 {\displaystyle x^{0}}

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




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



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




1 hectare = 1 E4 m²



1 ] = ]



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

 

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


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

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


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

(Allow LaTeX code)

E = m c 2 {\displaystyle {\begin{aligned}E&=mc^{2}\end{aligned}}}



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

m 0 {\displaystyle {\begin{aligned}m_{0}\end{aligned}}}

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

m = m 0 1 v 2 c 2 {\displaystyle m={\frac {m_{0}}{\sqrt {1-{\frac {v^{2}}{c^{2}}}}}}}

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

x 2 + 2 x 1 {\displaystyle {\color {Blue}x^{2}}+{\color {YellowOrange}2x}-{\color {OliveGreen}1}}

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

(Mathematical formulae)

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



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

sin x + ln y

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

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

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

x = 0

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

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

 

(Spacing in simple math formulae)

x ≥ 0

x
≥ 0

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



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

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

(Complicated formulae)

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 can be indented by using the colon (:) character.


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

(Chess symbols)

♔ ♕ ♖

♗ ♘ ♙


♚ ♛ ♜

♝ ♞ ♟


<font size=5>

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

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


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

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

</font>

(Showing character entities)

&rarr;

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



&amp;rarr;

No or limited formatting—showing exactly what is being typed

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

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

The nowiki tag ignores ] ''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}} 6
{{CURRENTMONTH}} 12
{{CURRENTMONTHNAME}} December
{{CURRENTMONTHNAMEGEN}} December
{{CURRENTDAY}} 28
{{CURRENTDAYNAME}} Saturday
{{CURRENTYEAR}} 2024
{{CURRENTTIME}} 00:17
{{NUMBEROFARTICLES}} 6,930,983
{{NUMBEROFUSERS}} 48,467,567
{{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: