Wiki markup is the syntax and keywords used by the MediaWiki software to format a page. To learn how to see this markup and to save an edit, see: Editing.
==Section headings==
| Section headings
Headings organize your writing into sections. The wiki software can automatically generate a table of contents from them. Start with 2 'equals' ("==") characters.
Subsection
Using more 'equals' characters creates a subsection.
A smaller subsection
Don't skip levels, like from two ("==") to four ("====") 'equals' characters.
|
'''Horizontal line'''
Separating with a horizontal
dividing line:
:this is above it...
----
:...and this is below it.
If you don't use a section header,
you don't get a TOC entry.
| Horizontal line
Separating with a horizontal
dividing line:
If you don't use a section header, you don't get a TOC entry. |
| A single newline has no
effect on the layout.
But an empty line starts a new paragraph, or ends a list or an indented part. |
| You can break lines
without starting a new paragraph. |
| Left indent | |
|
|
| Blockquote
When there is a need for separating a block of text. This is useful for (as the name says) inserting blocks of quoted (and cited) text. | |
| <nowiki></nowiki> | The blockquote tag will indent both margins when needed instead of the left margin only as the colon does. |
| <nowiki></nowiki> | Centered text |
Template uses the same markup. To center a table, see Table#Centering tables.
* Unordered list are easy to do:
|
|
# Numbered lists are: |
|
;Definition lists: Terms and their definitions.
|
|
| A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.
So twice five miles of fertile ground With walls and towers were girdled round:
And there were gardens bright with sinuous rills,
Where blossomed many an incense-bearing tree;
And here were forests ancient as the hills,
Enfolding sunny spots of greenery.
|
In Xanadu did Kubla Khan A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.
| A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.
|
| Italics, bold, small capital letters. | To italicize text, just put 2 apostrophes on each side. | To italicize text, just put
2 apostrophes on each side.
3 apostrophes will bold the text 5 apostrophes for bold italics For text as small caps, that uses a template. |
| Small chunks of source code within a line of normal text.
Code is displayed in a monospace font. |
| function int m2() is nice |
| for source code.
Computer code has colored text and more stringent formatting. For example, to define a function: int m2(), with highlights. |
A single newline has no
effect on the layout.
But an empty line starts a new
paragraph, or ends a list or
an indented part.
|
std::cout <<"Hello World!";
return 0;
} |
| Small text. | You can break lines without starting a new paragraph. | Use small text if needed.
A span tag can set text font-size as being 87% of prior size, to match an image caption. |
| Big text. |
:A colon at the start of a line
::causes the line to be indented,
:::most commonly used on Talk pages.
| Better not use big text, unless it's within small text. |
| You can include a non-breaking space (sometimes called non-printing character) where you require two words to always appear together on the same line, such as Mr. Smith or 400 km/h, using &nbsp; in place of a regular space between the two "words" that need to behave as a single word (never be separated on different lines). | Mr. Smith or 400 km/h. | Mr. Smith or 400 km/h. |
| Extra spacing within text can best be achieved using the template. |
<blockquote>
The '''blockquote''' tag will indent both margins when needed instead of the left margin only as the colon does.
</blockquote>
| Mary had a little lamb. |
| Typewriter font.
(Does also work beyond the end of a paragraph.) | <div class="center" style="width:auto; margin-left:auto; margin-right:auto;">Centered text</div>
| arrow →
italics, bold New paragraph started here. |
<poem style="margin-left:2em;"> |
function <code>int m2()</code> is nice |
– —
‘ ’ “ ” ' " |
Use <small>small text</small> if needed. A span tag can set text font-size as being <span style="font-size:87%">87% of prior size</span>, to match an image caption. |
| Subscripts | Mary {{pad|4em}} had a little lamb. | x1 x2 x3 or x x x x x x x x x x |
| Superscripts | <tt>arrow &rarr;</tt> <tt>''italics'', '''bold'''</tt> <tt><nowiki>[[link]] | x1 x2 x3 or x x x x x x x x x x |
| Combined | &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; &otilde; &ouml; &oslash; &oelig; &ugrave; &uacute; &ucirc; &uuml; &yuml; | ε0 = 8.85 × 10−12 C² / J m |
&iquest; &iexcl; &sect; &para;
&dagger; &Dagger; &bull; &ndash; &mdash;
&lsaquo; &rsaquo; &laquo; &raquo;
&lsquo; &rsquo; &ldquo; &rdquo;
&apos; &quot;
|
[ { & } ] | − × ′ ″ |
&trade; &copy; &reg; &cent; &euro; &yen;
&pound; &curren;
| It follows that is true when is a real number. |
x<sub>1</sub> |
|
In Wikipedia's markup language, you create free links by putting double square brackets around text designating the title of the page you want to link to. Thus, <nowiki></nowiki> will be rendered as Texas. Optionally, you can use a vertical bar (|) to customize the link title. For example, typing <nowiki></nowiki> will produce Lone Star State, a link that is displayed as "Lone Star State" but in fact links to Texas.
| <nowiki></nowiki> | London has public transport. |
| <nowiki></nowiki> | Link to this own article: "Wiki markup" will appear only as bold text. |
| <nowiki></nowiki> | New York also has public transportation. |
| Automatically hide stuff in parentheses | <nowiki></nowiki> | kingdom |
| Automatically hide namespace | <nowiki></nowiki> | Village pump |
| Or both | <nowiki></nowiki> | Manual of Style |
| But this doesn't work for section links | <nowiki></nowiki> |
| Blending active. | <nowiki></nowiki> | San Francisco also has . Examples include , , and . |
| Blending suppressed. | <nowiki></nowiki> | A micro- |
| <nowiki></nowiki> | Manual of Style#Italics is a link to a section within another page. |
| <nowiki></nowiki> | #Links and URLs is a link to another section on the current page. Links and URLs is a link to the same section without showing the # symbol. |
| <nowiki></nowiki> | Italics is a piped link to a section within another page. |
| Links to pages that dont exist yet look red. | <nowiki></nowiki> | The article about cardboard sandwiches doesn't exist yet. |
| Redirect to an article. | <nowiki></nowiki> |
| Redirect to a section. | <nowiki></nowiki> |
| <nowiki></nowiki> | See the Manual of Style. |
NOTE: To create an inline link (a clickable link within the text) to any foreign language article, see Inline interlanguage links and consider the usage notes.
| Link from English article "Plankton" to the Spanish article "Plancton".
"es" is the language code for "espaol" (the Spanish language). |
|
| Other examples: German (de for Deutsch), Russian (ru), and simple English (simple). |
|
| Linking to a page on another wiki in English.
All of these forms lead to the URL http://en.wiktionary.org/wiki/Hello. | ||
| Simple link.
Without prefix. Named link. | <nowiki></nowiki>
<nowiki></nowiki> <nowiki></nowiki> | |
| Linking to a page on another wiki in another language.
All of these forms lead to the URL http://fr.wiktionary.org/wiki/bonjour. | ||
| Simple link.
Without prefix. Named link. | <nowiki></nowiki>
<nowiki></nowiki> <nowiki></nowiki> |
| Categorize an article. | <nowiki></nowiki> | |
| Link to a category. | <nowiki></nowiki> | Character sets |
| Without prefix. | <nowiki></nowiki> | Character sets |
| Named link with an external link icon | <nowiki></nowiki> | Wikipedia |
| Unnamed link
(Only used within article body for footnotes) | <nowiki></nowiki> | [2] |
| Bare URL
(Bad style) | <nowiki></nowiki> | http://www.wikipedia.org |
| Link without arrow
(Not often used) | <nowiki></nowiki> | Wikipedia |
| <nowiki></nowiki> | |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| Full URL. | <nowiki></nowiki> | |
| "Edit" label. |
| <nowiki></nowiki> | ISBN 012345678X |
| <nowiki></nowiki> | ISBN 0-12-345678-X |
| <nowiki></nowiki> | Link to a book using . |
| <nowiki></nowiki> | Text mentioning an RFC number anywhere, e.g. RFC 4321. |
| <nowiki></nowiki> | Konjac () |
| <nowiki></nowiki> | Konjac ( ) |
| <nowiki></nowiki> | Konjac is pronounced in English. |
Refer to Manual of Style for more information.
A picture:
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or
x&#8320; x&#8321; x&#8322; x&#8323; x&#8324;
x&#8325; x&#8326; x&#8327; x&#8328; x&#8329;
| A picture: | |
With alternative text:
x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or
x&#8304; x&sup1; x&sup2; x&sup3; x&#8308;
x&#8309; x&#8310; x&#8311; x&#8312; x&#8313;
| With alternative text: |
|
With link:
&epsilon;<sub>0</sub> = 8.85 &times; 10<sup>&minus;12</sup> C&sup2; / J m
1 [[hectare]] = [[1 E4 m&sup2;]]
| With link:
|
|
Floating to the right side of the page using the frame attribute and a caption:
&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;
&Alpha; &Beta; &Gamma; &Delta; &Epsilon; &Zeta;
&Eta; &Theta; &Iota; &Kappa; &Lambda; &Mu;
&Nu; &Xi; &Omicron; &Pi; &Rho; &Sigma;
&Tau; &Upsilon; &Phi; &Chi; &Psi; &Omega;
| 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:
&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;
| 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:
<math>2x \times 4y \div 6z 8
- \frac {y}{z^2} = 0</math>
{{crlf|}}
{{math|2x &times; 4y &divide;
6z 8 &minus; {{Fraction
|y|z<sup>2</sup>}} {{=}} 0}}
<math>\sin 2\pi x \ln e\,\!</math>
<math>\sin 2\pi x \ln e</math>
{{math|sin 2&pi;''x'' ln ''e''}}
| Linking directly to the description page of an image: wiki.png |
|
Linking directly to an image without displaying it:
It follows that {{math
|''x''<sup>2</sup> &ge; 0}} is true when {{math|<VAR>x</VAR>}} is a real number.
| Linking directly to an image without displaying it: |
|
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
| Example:
Place images here
| Using the <nowiki></nowiki> or span elements to separate images from text (note that this may allow images to cover text). |
[[Texas]] | Example:
{ align=right | |
| Place images here |
| 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).
|}
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 .
See also When tables are appropriate.
| | |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
| <nowiki></nowiki> |
Templates are segments of wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in London has [[public transport]].. It is also possible to transclude other pages by using Link to this own article: "[[Help:Wiki markup]]" will appear only as bold text..
There are three pairs of tags that can be used in wikitext to control how transclusion affects parts of a template or article. They determine whether or not wikitext renders, either in its own article, which we will call "here", or in another article where it is transcluded, which we will call "there".
If a page is transcluded without transclusion markup, it may cause an unintentional categorization. Any page transcluding it will contain the same category as the original page. Wrap the category markup with A [[micro-]]<nowiki />second. tags to prevent incorrect categorization.
Some templates take parameters, as well, which you separate with the pipe character.
This template takes two parameters,
and creates underlined text with a
hover box for many modern browsers
supporting CSS:
| This template takes two parameters, and creates underlined text with a hover box for many modern browsers supporting CSS: Go to this page to see the H:title template itself: |
| You should sign your comments by appending four tildes to the comment, which adds your user name plus date/time. | <nowiki></nowiki> | () 01:15, 23 February 2026 (UTC) |
| Adding three tildes will add just your user name. | <nowiki></nowiki> | () |
| Adding five tildes gives the date/time alone. | <nowiki></nowiki> | 01:15, 23 February 2026 (UTC) |
| [[Wikipedia: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. [[#Links and URLs|Links and URLs]] is a link to the same section without showing the # symbol. |
| <nowiki></nowiki> | previous edit |
| Username (registered users). | <nowiki></nowiki> | |
| IPv4 address (unregistered users). | <nowiki></nowiki> | |
| IPv6 address (unregistered users). | <nowiki></nowiki> |
<nowiki></nowiki> | I will change the color in this sentence. |
| <nowiki></nowiki> | You can |
| <nowiki></nowiki> | Alternative markup:
You can |
&<nowiki&> tag: | <nowiki> tag:
#REDIRECT [[United States]] |
&<pre&> tag: | <pre> tag:
The <pre> tag ignores wiki markup as does the <nowiki> tag. Additionally, <pre> displays in a mono-spaced font, and does not reformat text spaces. It still interprets special characters: → |
Text: | Text:
Single square brackets holding text are preserved, but single square brackets containing a URL are treated as being an external Web link. |
Leading space: | 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: →
|
(Although in this particular case you'd probably prefer to use Alternative markup: <nowiki></nowiki> to create a link: )
A singular can be used to break wikimarkup.
HTML entities
and parse [[Character encodings in HTML|HTML entities]]. If you want to escape this, replace <nowiki></nowiki> with &.
Use in templates
When used in a template, simply does not work as you may expect.
is a parser tag that emulates the HTML tag. It defines preformatted text that is displayed in a fixed-width font and is enclosed in a dashed box. HTML and wiki markups are escaped and spaces and line breaks are preserved, but HTML entities are parsed.
formatted text does not wrap, thus text may extend past the browser window:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
To resolve this, may use CSS styling to add wrapping or a horizontal scrollbar:
Since this involves quite a bit of markup, the template is useful.
#REDIRECT [[United States#History]]
Another way to include a comment in the wiki markup uses the template, which can be abbreviated as . This template "expands" to the empty string, generating no html output; it is visible only to people editing the wiki source. Thus operates similarly to the comment <!-- A lengthy comment here-->. The main difference is that the template version can be nested, while attempting to nest HTML comments produces odd results.
| Monday = 1, Tuesday = 2, etc., but Sunday = 0 | ||
| 02 | ||
| See the [[Wikipedia:Manual of Style]]. | February | |
| [[ | February | |
| 23 | ||
| Monday | ||
| 2026 | ||
| 01:15 | ||
| ]] | 0 | |
| [[Wiktionary:Hello]] | ||
| [[Wiktionary:Hello|]] | ||
| Wiki Markup | ||
| help | ||
| [[Wiktionary:Hello|Wiktionary definition of "Hello"]] | ||
| [[Wiktionary:fr:bonjour]]Wikipedia:Sandbox[[Wiktionary:fr:bonjour|]] | ||
| [[Wiktionary:fr:bonjour|bonjour]] | ||
| [[Category:Character sets]]query_string[[:Category:Character sets]] | ||
| [[:Category:Character sets|]]index[http://www.wikipedia.org Wikipedia] → full name of namespace | ||
| upcScavenger |
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 <nowiki></nowiki> to convert a word from the nominative case to some other case. For example, <nowiki></nowiki> means the same as <nowiki></nowiki>.