Wiki/HTML Mark-Up
<color red>strikethrough</color>
X/HTML Markup in Wikis[edit]
- abbreviation
or- cited source
program source code- definition
- emphasis
Heading 1
throughHeading 6
or
for horizontal rules- keyboard text
preformatted text
- strong emphasis
- sample output
- subscript text
- superscript text
- variable
- <acronym>acronym</acronym>: deprecated in XHTML 2.
- bold: deprecated in XHTML 2.
- big text: deprecated in XHTML 2.
deleted text: deprecated in XHTML 2.- italics: deprecated in XHTML 2.
- inserted text: deprecated in XHTML 2.
- small text: deprecated in XHTML 2.
- technical term: deprecated in XHTML 2.
strikethrough: deprecated in HTML 4.strikethrough: deprecated in HTML 4.- underline: deprecated in HTML 4.
Images[edit]
Only images that have been uploaded to Wikipedia can be used. To upload images, use the upload page. You can find the uploaded image on the image list.
| What it looks like | What you type |
|---|---|
| A picture: | A picture: [[Image:wiki.png]] |
| With alternative text: | With alternative text: [[Image:wiki.png|Wikipedia, The Free Encyclopedia.]]
|
| 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: [[Image:wiki.png|frame|Wikipedia Encyclopedia]]
|
| 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: [[Image:wiki.png|thumb|Wikipedia Encyclopedia]]
|
| Floating to the right side of the page without a caption:
|
Floating to the right side of the page ''without'' a caption: [[Image:wiki.png|right|Wikipedia Encyclopedia]]
|
| A picture resized to 30 pixels... | A picture resized to 30 pixels... [[Image:wiki.png|30 px]]
|
| Linking directly to the description page of an image: | Linking directly to the description page of an image: [[:Image:wiki.png]]
(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: [[:media:wiki.png|Image of the jigsaw globe logo]]
|
| Using the div tag to separate images from text (note that this may allow images to cover text): | Example: <div style="display:inline; width:220px; float:right;"> Place images here </div> |
| Using wiki markup to make a table in which to place a vertical column of images (this helps edit links match headers, especially in Firefox browsers): | Example: {| align=right
|-
|
Place images here
|}
|
See the Wikipedia's image use policy as a guideline used on Wikipedia.
For further help on images, including some more versatile abilities, see the topic on Extended image syntax.
Character formatting[edit]
| What it looks like | What you type |
|---|---|
|
Italicized text |
''Italicized text'' '''Bold text''' '''''Italicized & Bold text''''' |
|
A typewriter font for monospace text
or for computer code:
|
A typewriter font for <tt>monospace text</tt> or for computer code: <code>int main()</code> |
Create codeblocks that are printed as entered
|
Use <code><pre> Block of Code </pre></code> around the block of code. * The <pre> tags within the codeblock will create formatting issues - to solve, display the tags literally with <pre> and </pre> |
|
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 [[Wikipedia FAQ]]</nowiki>
|
|
Commenting page source:
|
<!-- comment here --> |
|
Diacritical marks:
|
À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü ß à á â ã ä å æ ç è é ê ë ì í î ï ñ ò ó ô œ õ ö ø ù ú û ü ÿ |
|
Punctuation:
|
¿ ¡ § ¶ † ‡ • – — ‹ › « » ‘ ’ “ ” |
|
Commercial symbols:
|
™ © ® ¢ € ¥ £ ¤ |
|
Subscripts:
Superscripts:
ε0 = 8.85 × 10−12 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 [[hectare]] = [[1 E4 m²]] |
|
Greek characters:
|
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω |
|
Mathematical characters:
|
∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ℵ ø ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇐ ⇓ ⇑ ⇔ → ↓ ↑ ← ↔ |
|
<math>\,\! \sin x + \ln y</math> <math>\mathbf{x} = 0</math> Ordinary text should use wiki markup for emphasis, and should not use |
<math>\,\! \sin x + \ln y</math>
sin''x'' + ln''y''
<math>\mathbf{x} = 0</math>
'''x''' = 0
|
|
Spacing in simple math formulae:
|
Obviously, ''x''² ≥ 0 is true when ''x'' is a real number. |
|
Complicated formulae:
|
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
|
(see also: Chess symbols in Unicode)