Help:Formatting: Difference between revisions

Everything About Fiction You Never Wanted to Know.
Content added Content deleted
No edit summary
No edit summary
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Here you'll learn the basics of article '''formatting'''.
You can format your text by using wiki markup. This consists of normal characters like asterisks, apostrophes or equal signs which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two pairs of apostrophes like <code><nowiki>''this''</nowiki></code>.


{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
== Text formatting markup ==
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |

<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;">Formatting</h2>
{| class="wikitable"
! Description
! width=40% | You type
! width=40% | You get
|-
|-
! colspan="3" style="background: #ABE" | Character (inline) formatting – ''applies anywhere''
| colspan=3 style="background:#E6F2FF; border-top:2px #a3b1bf solid; text-align:center;" |
'''Works anywhere in the text'''
|- style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"
| style="border-bottom:2px #a3b1bf solid" width="30%" | Description
| style="border-bottom:2px #a3b1bf solid" | You type
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
|-
|-
|Italics, bold, and both
| Italic text
| <pre>
''italic''
</pre>
|
|
<code><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></code>
''italic''
|
''italics'', '''bold''', and '''''both'''''
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Bold text
|-
| <pre>
|Link to another page
'''bold'''
</pre>
|
|
<code><nowiki>[[Help!]]</nowiki></code><br />
'''bold'''
<code><nowiki>[[Help!]]ing</nowiki></code>
|
[[Help!]]<br />
[[Help!]]ing
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Bold and italic
|-
| <pre>
|
'''''bold & italic'''''
"Pipe" a link to change the link's text
</pre>
|
|
<code><nowiki>[[Help:Spam|Spam]]</nowiki></code>
'''''bold & italic'''''
|
[[Help:Spam|Spam]]
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Strike text
| <pre>
<strike> strike text </strike>
</pre>
|<strike> strike text </strike>
|-
|-
| Escape wiki markup
| <pre>
&lt;nowiki&gt;no ''markup''&lt;/nowiki&gt;
</pre>
|
|
Link to a section
<nowiki>no ''markup''</nowiki>
|
<code><nowiki>[[Help:Templates#Using a template]]</nowiki></code><br />
<code><nowiki>[[Help:Templates#Using a template|Using a template]]</nowiki></code>
|
[[Help:Templates#Using a template]]<br />
[[Help:Templates#Using a template|Using a template]]
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Escape wiki markup once
|-
| <pre>
|Red link
[[API]]&lt;nowiki/>extension
|
</pre>
<code><nowiki>[[something missing]]</nowiki></code>
|
|
[[something missing]]
[[API]]<nowiki/>extension
|-
|-
! colspan="3" style="background: #ABE" | Section formatting – ''only at the beginning of the line''
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|References and footnotes
| Headings of different levels
<div style="padding: 0.7em .5em; font-size:0.9em;">''sources in the article will appear where <nowiki><references/></nowiki> is put, typically under a level 2 section heading (see below) towards the bottom of the page.''</div>
| <pre>
<div style="padding: 0.7em .5em; font-size:0.9em;"></div>
|
<code><nowiki>Hello,<ref></nowiki></code>Library of Congress<code><nowiki></ref> World.<ref>http://www.w3.org/</ref></nowiki></code>
<br /><br />
<code><nowiki>
References:


<references/></nowiki></code>
== Level 2 ==

=== Level 3 ===

==== Level 4 ====

===== Level 5 =====

====== Level 6 ======

</pre>
* An article with 4 or more headings automatically creates a table of contents.
|
|
Hello,<ref>Library of Congress</ref> World.<ref>http://www.w3.org/</ref>


References:
<!-- using HTML markup to avoid creating new sections -->
<h2>Level 2</h2>

<h3>Level 3</h3>

<h4>Level 4</h4>

<h5>Level 5</h5>

<h6>Level 6</h6>


<references/>
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Horizontal rule
| <pre>
Text before
----
Text after
</pre>
|
Text before
----
Text after
|-
|-
|Signature
| Bullet list
|
|
<code><nowiki>~~~~</nowiki></code><br /><br /><span style="font-size:0.9em;">''do not sign in an article, only on talk pages''</span>
<pre>
* Start each line
* with an asterisk (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
</pre>
|
|
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
* Start each line
|-
* with an asterisk (*).
|colspan="3" style="border-top:1px solid #cee0f2;"|
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
|-
|-
|Plain website
| Numbered list
|
|
<code><nowiki>http://www.wikipedia.org</nowiki></code>
<pre>
# Start each line
# with a number sign (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines

# end the list and start another.
Any other start also
ends the list.
</pre>
|
|
http://www.wikipedia.org
# Start each line
# with a number sign (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines

# end the list and start another.
Any other start also
ends the list.
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Definition list
| <pre>
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
</pre>
|
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
|-
|-
|Link a website
| Indent text
| <pre>
: Single indent
:: Double indent
::::: Multiple indent
</pre>
----
|
|
<code><nowiki>[http://www.wikipedia.org]</nowiki></code>
: Single indent
|
:: Double indent
[http://www.wikipedia.org]
::::: Multiple indent
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Mixture of different types of list
|-
|Link and name a website
|
|
<code><nowiki>[http://www.wikipedia.org Wikipedia]</nowiki></code>
<pre>
# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <br />of &lt;nowiki><br />&lt;/nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
</pre>
----
The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also harm accessibility.
|
|
[http://www.wikipedia.org Wikipedia]
# one
|-
# two
|colspan="3" style="border-top:1px solid #cee0f2;"|
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <br />of <nowiki><br /></nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2{{anchor|pre}}
|-
|-
|Strike your talk page comment
| Preformatted text
<div style="padding: 0.7em .5em; font-size:0.9em;">''to show your previous comment is outdated''</div>
| <pre>
Start each line with a space.
Text is '''preformatted''' and
''markups'' '''''can''''' be done.
</pre>
----
This way of preformatting only applies to section formatting. Character formatting markups are still effective.
|
|
<code><nowiki><s>This topic isn't notable.</s></nowiki></code>
Start each line with a space.
|
Text is '''preformatted''' and
<s>This topic isn't notable.</s>
''markups'' '''''can''''' be done.
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Preformatted text blocks
|-
| <pre> <nowiki><nowiki>Start with a space in the first column,
|Hide text somewhere for editors
(before the <nowiki>).
<div style="padding: 0.7em .5em; font-size:0.9em;">''consensus is how things are decided''</div>

|
Then your block format will be
<code><nowiki><!--This had consensus, discuss at talk page--></nowiki></code>
maintained.
This is good for copying in code blocks:

def function():
"""documentation string"""

if True:
print True
else:
print False</nowiki></nowiki>
</pre>
|
|
<!--This had consensus, discuss at talk page-->
<nowiki>Start with a space in the first column,
(before the <nowiki>).

Then your block format will be
maintained.

This is good for copying in code blocks:

def function():
"""documentation string"""

if True:
print True
else:
print False</nowiki>
|}

== Paragraphs ==

MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <code>&lt;br /></code>.

== HTML tags ==

Some HTML tags are allowed in MediaWiki, for example <code>&lt;code></code>, <code>&lt;div></code>, <code><nowiki><span></nowiki></code> and <code><nowiki><font></nowiki></code>. These apply anywhere you insert them.

{| class="wikitable"
! Description
! width=40% | You type
! width=40% | You get
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Inserted <br />(Displays as underline in most browsers)
|-
| <pre>
|[[Help:Images|Show an image]]
<ins>Inserted</ins>
|

<code><nowiki>[[</nowiki></code>File:Wiki.png<code>|thumb|</code>Caption<code><nowiki>]]</nowiki></code>
or

<u>Underline</u>
</pre>
|
|
[[File:Wiki.png|thumb|Caption]]
<ins>Inserted</ins>

or

<u>Underline</u>
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Deleted <br />(Displays as strike-through in most browsers)
|-
| <pre>
|[[Help:Templates|Templates]]
<s>Struck out</s>

or

<del>Deleted</del>

</pre>
|
|
<code><nowiki>The {{main|Home Page}} template adds a link to the Home Page</nowiki></code>
<s>Struck out</s>
|

{{main|Home Page}}
or

<del>Deleted</del>
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Fixed width text
|-
| <pre>
|Add a page to a [[Help:Categories|category]]
<code>Source code</code>
|<code><nowiki>[[Category:Category name]]</nowiki></code><br /><br /><span style="font-size:0.9em;">''place near the bottom of a page''</span>
|<span style="font-size:0.9em;">''shows''</span> "Category name" <span style="font-size:0.9em;">''in a bar at bottom when the page is previewed or saved''</span>


or

<tt>Fixed width text</tt>
</pre>
|
<code>Source code</code>

or

<tt>Fixed width text</tt>
|-
|-
| colspan="3" style="background:#E6F2FF; border-top:2px #a3b1bf solid" |
| Blockquotes
'''Works only at the beginning of lines''' &nbsp; &nbsp;
| <pre>
|- style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"
Text before
| style="border-bottom:2px #a3b1bf solid" width="30%" | Description
<blockquote>Blockquote</blockquote>
| style="border-bottom:2px #a3b1bf solid" | You type
Text after
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
</pre>
|-
|[[Help:Redirects|Redirect to another page]]
<div style="padding: 0.7em .5em; font-size:0.9em;">''redirects must be placed at the start of the first line''</div>
|
|
<code><nowiki>#REDIRECT [[Target page]]</nowiki></code>
Text before
|
<blockquote>Blockquote</blockquote>
[[Image:Redirect arrow without text.png|30px|link=]] [[Target page]]
Text after
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Comment
|-
| <pre>
|[[Help:Redirects|Redirect to a section of another page]]
<!-- This is a comment -->
Comments are visible only
in the edit zone.
</pre>
|
|
<code><nowiki>#REDIRECT [[</nowiki></code>Target page#anchorName<code><nowiki>]]</nowiki></code>
<!-- This is a comment -->
Comments are visible only
in the edit zone.
|-
| Completely preformatted text
| <pre>
<pre> Text is '''preformatted''' and
''markups'' '''''cannot''''' be done&lt;/pre>
</pre>
----
|
|
[[Image:Redirect arrow without text.png|30px|link=]] [[Target page#anchorName]]
<pre> Text is '''preformatted''' and
''markups'' '''''cannot''''' be done</pre>
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| '''Customized''' preformatted text
|-
| <pre>
|Section headings<br />
<pre style="color: red">
<div style="padding: 0.7em .5em; font-size:0.9em;">''a Table of Contents will automatically be generated when four headings are added to an article''</div>
Text is '''preformatted'''
|
with a style and
<code><nowiki>==Level 2==</nowiki></code><br />
''markups'' '''''cannot''''' be done
<code><nowiki>===Level 3===</nowiki></code><br />
&lt;/pre>
<code><nowiki>====Level 4====</nowiki></code><br />
</pre>
<code><nowiki>=====Level 5=====</nowiki></code><br />
----
<code><nowiki>======Level 6======</nowiki></code><br /><br />
* A CSS style can be named within the <code>style</code> property.
<span style="font-size:0.9em">''do not use''&nbsp; =Level 1=&nbsp; ''as it is for page titles''</span>
|
|
<pre style="color: red">
Text is '''preformatted'''
with a style and
''markups'' '''''cannot''''' be done
</pre>
|}


==Level 2==
continued:
===Level 3===
{| class="wikitable"
====Level 4====
! Description
=====Level 5=====
! width=40% | You type
======Level 6======
! width=40% | You get
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| '''Customized''' preformatted text with text wrap according to available width
|-
| <pre>
|Nonindexed headers
<pre style="white-space: pre-wrap;
<div style="padding: 0.7em .5em; font-size:0.9em;">''left out of Table of Contents''</div>
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;">
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.
&lt;/pre>
</pre>
|
|
<code><nowiki>; Header name</nowiki></code><br />
<pre style="white-space: pre-wrap;
<div style="font-size:0.9em;">''has a leading semicolon'' ";" ''in front''</div>
white-space: -moz-pre-wrap;
|
white-space: -pre-wrap;
'''Header name'''<br />
white-space: -o-pre-wrap;
<div style="padding: 0.7em .5em; font-size:0.9em;">''will not appear in Table of Contents''</div>
word-wrap: break-word;">

This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.
</pre>
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Preformatted text with text wrap according to available width
| <pre>
<code>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.
</code>
</pre>
| <code>
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer.
</code>
|}

== Inserting symbols ==

Symbols and other special characters not available on your keyboard can be inserted through a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) '''&amp;rarr;''' when inserted will be shown as <ins>right arrow</ins> HTML symbol &rarr; and '''&amp;mdash;''' when inserted will be shown as an <ins>em dash</ins> HTML symbol &mdash;.
----

{| class="wikitable" align=center width=80%
! colspan=32 | HTML symbol entities
|- align=center
| '''<span title="&amp;Aacute;">&Aacute;</span>
| '''<span title="&amp;aacute;">&aacute;</span>
| '''<span title="&amp;Acirc;">&Acirc;</span>
| '''<span title="&amp;acirc;">&acirc;</span>
| '''<span title="&amp;acute;">&acute;</span>
| '''<span title="&amp;AElig;">&AElig;</span>
| '''<span title="&amp;aelig;">&aelig;</span>
| '''<span title="&amp;Agrave;">&Agrave;</span>
| '''<span title="&amp;agrave;">&agrave;</span>
| '''<span title="&amp;alefsym;">&alefsym;</span>
| '''<span title="&amp;Alpha;">&Alpha;</span>
| '''<span title="&amp;alpha;">&alpha;</span>
| '''<span title="&amp;amp;">&amp;</span>
| '''<span title="&amp;and;">&and;</span>
| '''<span title="&amp;ang;">&ang;</span>
| '''<span title="&amp;Aring;">&Aring;</span>
| '''<span title="&amp;aring;">&aring;</span>
| '''<span title="&amp;asymp;">&asymp;</span>
| '''<span title="&amp;Atilde;">&Atilde;</span>
| '''<span title="&amp;atilde;">&atilde;</span>
| '''<span title="&amp;Auml;">&Auml;</span>
| '''<span title="&amp;auml;">&auml;</span>
| '''<span title="&amp;bdquo;">&bdquo;</span>
| '''<span title="&amp;Beta;">&Beta;</span>
| '''<span title="&amp;beta;">&beta;</span>
| '''<span title="&amp;brvbar;">&brvbar;</span>
| '''<span title="&amp;bull;">&bull;</span>
| '''<span title="&amp;cap;">&cap;</span>
| '''<span title="&amp;Ccedil;">&Ccedil;</span>
| '''<span title="&amp;ccedil;">&ccedil;</span>
| '''<span title="&amp;cedil;">&cedil;</span>
| '''<span title="&amp;cent;">&cent;</span>
|- align=center
| '''<span title="&amp;Chi;">&Chi;</span>
| '''<span title="&amp;chi;">&chi;</span>
| '''<span title="&amp;circ;">&circ;</span>
| '''<span title="&amp;clubs;">&clubs;</span>
| '''<span title="&amp;cong;">&cong;</span>
| '''<span title="&amp;copy;">&copy;</span>
| '''<span title="&amp;crarr;">&crarr;</span>
| '''<span title="&amp;cup;">&cup;</span>
| '''<span title="&amp;curren;">&curren;</span>
| '''<span title="&amp;dagger;">&dagger;</span>
| '''<span title="&amp;Dagger;">&Dagger;</span>
| '''<span title="&amp;darr;">&darr;</span>
| '''<span title="&amp;dArr;">&dArr;</span>
| '''<span title="&amp;deg;">&deg;</span>
| '''<span title="&amp;Delta;">&Delta;</span>
| '''<span title="&amp;delta;">&delta;</span>
| '''<span title="&amp;diams;">&diams;</span>
| '''<span title="&amp;divide;">&divide;</span>
| '''<span title="&amp;Eacute;">&Eacute;</span>
| '''<span title="&amp;eacute;">&eacute;</span>
| '''<span title="&amp;Ecirc;">&Ecirc;</span>
| '''<span title="&amp;ecirc;">&ecirc;</span>
| '''<span title="&amp;Egrave;">&Egrave;</span>
| '''<span title="&amp;egrave;">&egrave;</span>
| '''<span title="&amp;empty;">&empty;</span>
| '''<span title="&amp;emsp;">&emsp;</span>
| '''<span title="&amp;ensp;">&ensp;</span>
| '''<span title="&amp;Epsilon;">&Epsilon;</span>
| '''<span title="&amp;epsilon;">&epsilon;</span>
| '''<span title="&amp;equiv;">&equiv;</span>
| '''<span title="&amp;Eta;">&Eta;</span>
| '''<span title="&amp;eta;">&eta;</span>
|- align=center
| '''<span title="&amp;ETH;">&ETH;</span>
| '''<span title="&amp;eth;">&eth;</span>
| '''<span title="&amp;Euml;">&Euml;</span>
| '''<span title="&amp;euml;">&euml;</span>
| '''<span title="&amp;euro;">&euro;</span>
| '''<span title="&amp;exist;">&exist;</span>
| '''<span title="&amp;fnof;">&fnof;</span>
| '''<span title="&amp;forall;">&forall;</span>
| '''<span title="&amp;frac12;">&frac12;</span>
| '''<span title="&amp;frac14;">&frac14;</span>
| '''<span title="&amp;frac34;">&frac34;</span>
| '''<span title="&amp;frasl;">&frasl;</span>
| '''<span title="&amp;Gamma;">&Gamma;</span>
| '''<span title="&amp;gamma;">&gamma;</span>
| '''<span title="&amp;ge;">&ge;</span>
| '''<span title="&amp;gt;">&gt;</span>
| '''<span title="&amp;harr;">&harr;</span>
| '''<span title="&amp;hArr;">&hArr;</span>
| '''<span title="&amp;hearts;">&hearts;</span>
| '''<span title="&amp;hellip;">&hellip;</span>
| '''<span title="&amp;Iacute;">&Iacute;</span>
| '''<span title="&amp;iacute;">&iacute;</span>
| '''<span title="&amp;Icirc;">&Icirc;</span>
| '''<span title="&amp;icirc;">&icirc;</span>
| '''<span title="&amp;iexcl;">&iexcl;</span>
| '''<span title="&amp;Igrave;">&Igrave;</span>
| '''<span title="&amp;igrave;">&igrave;</span>
| '''<span title="&amp;image;">&image;</span>
| '''<span title="&amp;infin;">&infin;</span>
| '''<span title="&amp;int;">&int;</span>
| '''<span title="&amp;Iota;">&Iota;</span>
| '''<span title="&amp;iota;">&iota;</span>
|- align=center
| '''<span title="&amp;iquest;">&iquest;</span>
| '''<span title="&amp;isin;">&isin;</span>
| '''<span title="&amp;Iuml;">&Iuml;</span>
| '''<span title="&amp;iuml;">&iuml;</span>
| '''<span title="&amp;Kappa;">&Kappa;</span>
| '''<span title="&amp;kappa;">&kappa;</span>
| '''<span title="&amp;Lambda;">&Lambda;</span>
| '''<span title="&amp;lambda;">&lambda;</span>
| '''<span title="&amp;lang;">&lang;</span>
| '''<span title="&amp;laquo;">&laquo;</span>
| '''<span title="&amp;larr;">&larr;</span>
| '''<span title="&amp;lArr;">&lArr;</span>
| '''<span title="&amp;lceil;">&lceil;</span>
| '''<span title="&amp;ldquo;">&ldquo;</span>
| '''<span title="&amp;le;">&le;</span>
| '''<span title="&amp;lfloor;">&lfloor;</span>
| '''<span title="&amp;lowast;">&lowast;</span>
| '''<span title="&amp;loz;">&loz;</span>
| '''<span title="&amp;lrm;">&lrm;</span>
| '''<span title="&amp;lsaquo;">&lsaquo;</span>
| '''<span title="&amp;lsquo;">&lsquo;</span>
| '''<span title="&amp;lt;">&lt;</span>
| '''<span title="&amp;macr;">&macr;</span>
| '''<span title="&amp;mdash;">&mdash;</span>
| '''<span title="&amp;micro;">&micro;</span>
| '''<span title="&amp;middot;">&middot;</span>
| '''<span title="&amp;minus;">&minus;</span>
| '''<span title="&amp;Mu;">&Mu;</span>
| '''<span title="&amp;mu;">&mu;</span>
| '''<span title="&amp;nabla;">&nabla;</span>
| '''<span title="&amp;nbsp;">&nbsp;</span>
| '''<span title="&amp;ndash;">&ndash;</span>
|- align=center
| '''<span title="&amp;ne;">&ne;</span>
| '''<span title="&amp;ni;">&ni;</span>
| '''<span title="&amp;not;">&not;</span>
| '''<span title="&amp;notin;">&notin;</span>
| '''<span title="&amp;nsub;">&nsub;</span>
| '''<span title="&amp;Ntilde;">&Ntilde;</span>
| '''<span title="&amp;ntilde;">&ntilde;</span>
| '''<span title="&amp;Nu;">&Nu;</span>
| '''<span title="&amp;nu;">&nu;</span>
| '''<span title="&amp;Oacute;">&Oacute;</span>
| '''<span title="&amp;oacute;">&oacute;</span>
| '''<span title="&amp;Ocirc;">&Ocirc;</span>
| '''<span title="&amp;ocirc;">&ocirc;</span>
| '''<span title="&amp;OElig;">&OElig;</span>
| '''<span title="&amp;oelig;">&oelig;</span>
| '''<span title="&amp;Ograve;">&Ograve;</span>
| '''<span title="&amp;ograve;">&ograve;</span>
| '''<span title="&amp;oline;">&oline;</span>
| '''<span title="&amp;Omega;">&Omega;</span>
| '''<span title="&amp;omega;">&omega;</span>
| '''<span title="&amp;Omicron;">&Omicron;</span>
| '''<span title="&amp;omicron;">&omicron;</span>
| '''<span title="&amp;oplus;">&oplus;</span>
| '''<span title="&amp;or;">&or;</span>
| '''<span title="&amp;ordf;">&ordf;</span>
| '''<span title="&amp;ordm;">&ordm;</span>
| '''<span title="&amp;Oslash;">&Oslash;</span>
| '''<span title="&amp;oslash;">&oslash;</span>
| '''<span title="&amp;Otilde;">&Otilde;</span>
| '''<span title="&amp;otilde;">&otilde;</span>
| '''<span title="&amp;otimes;">&otimes;</span>
| '''<span title="&amp;Ouml;">&Ouml;</span>
|- align=center
| '''<span title="&amp;ouml;">&ouml;</span>
| '''<span title="&amp;para;">&para;</span>
| '''<span title="&amp;part;">&part;</span>
| '''<span title="&amp;permil;">&permil;</span>
| '''<span title="&amp;perp;">&perp;</span>
| '''<span title="&amp;Phi;">&Phi;</span>
| '''<span title="&amp;phi;">&phi;</span>
| '''<span title="&amp;Pi;">&Pi;</span>
| '''<span title="&amp;pi;">&pi;</span>
| '''<span title="&amp;piv;">&piv;</span>
| '''<span title="&amp;plusmn;">&plusmn;</span>
| '''<span title="&amp;pound;">&pound;</span>
| '''<span title="&amp;prime;">&prime;</span>
| '''<span title="&amp;Prime;">&Prime;</span>
| '''<span title="&amp;prod;">&prod;</span>
| '''<span title="&amp;prop;">&prop;</span>
| '''<span title="&amp;Psi;">&Psi;</span>
| '''<span title="&amp;psi;">&psi;</span>
| '''<span title="&amp;quot;">&quot;</span>
| '''<span title="&amp;radic;">&radic;</span>
| '''<span title="&amp;rang;">&rang;</span>
| '''<span title="&amp;raquo;">&raquo;</span>
| '''<span title="&amp;rarr;">&rarr;</span>
| '''<span title="&amp;rArr;">&rArr;</span>
| '''<span title="&amp;rceil;">&rceil;</span>
| '''<span title="&amp;rdquo;">&rdquo;</span>
| '''<span title="&amp;real;">&real;</span>
| '''<span title="&amp;reg;">&reg;</span>
| '''<span title="&amp;rfloor;">&rfloor;</span>
| '''<span title="&amp;Rho;">&Rho;</span>
| '''<span title="&amp;rho;">&rho;</span>
| '''<span title="&amp;rlm;">&rlm;</span>
|- align=center
| '''<span title="&amp;rsaquo;">&rsaquo;</span>
| '''<span title="&amp;rsquo;">&rsquo;</span>
| '''<span title="&amp;sbquo;">&sbquo;</span>
| '''<span title="&amp;Scaron;">&Scaron;</span>
| '''<span title="&amp;scaron;">&scaron;</span>
| '''<span title="&amp;sdot;">&sdot;</span>
| '''<span title="&amp;sect;">&sect;</span>
| '''<span title="&amp;shy;">&shy;</span>
| '''<span title="&amp;Sigma;">&Sigma;</span>
| '''<span title="&amp;sigma;">&sigma;</span>
| '''<span title="&amp;sigmaf;">&sigmaf;</span>
| '''<span title="&amp;sim;">&sim;</span>
| '''<span title="&amp;spades;">&spades;</span>
| '''<span title="&amp;sub;">&sub;</span>
| '''<span title="&amp;sube;">&sube;</span>
| '''<span title="&amp;sum;">&sum;</span>
| '''<span title="&amp;sup;">&sup;</span>
| '''<span title="&amp;sup1;">&sup1;</span>
| '''<span title="&amp;sup2;">&sup2;</span>
| '''<span title="&amp;sup3;">&sup3;</span>
| '''<span title="&amp;supe;">&supe;</span>
| '''<span title="&amp;szlig;">&szlig;</span>
| '''<span title="&amp;Tau;">&Tau;</span>
| '''<span title="&amp;tau;">&tau;</span>
| '''<span title="&amp;there4;">&there4;</span>
| '''<span title="&amp;Theta;">&Theta;</span>
| '''<span title="&amp;theta;">&theta;</span>
| '''<span title="&amp;thetasym;">&thetasym;</span>
| '''<span title="&amp;thinsp;">&thinsp;</span>
| '''<span title="&amp;THORN;">&THORN;</span>
| '''<span title="&amp;thorn;">&thorn;</span>
| '''<span title="&amp;tilde;">&tilde;</span>
|- align=center
| '''<span title="&amp;times;">&times;</span>
| '''<span title="&amp;trade;">&trade;</span>
| '''<span title="&amp;Uacute;">&Uacute;</span>
| '''<span title="&amp;uacute;">&uacute;</span>
| '''<span title="&amp;uarr;">&uarr;</span>
| '''<span title="&amp;uArr;">&uArr;</span>
| '''<span title="&amp;Ucirc;">&Ucirc;</span>
| '''<span title="&amp;ucirc;">&ucirc;</span>
| '''<span title="&amp;Ugrave;">&Ugrave;</span>
| '''<span title="&amp;ugrave;">&ugrave;</span>
| '''<span title="&amp;uml;">&uml;</span>
| '''<span title="&amp;upsih;">&upsih;</span>
| '''<span title="&amp;Upsilon;">&Upsilon;</span>
| '''<span title="&amp;upsilon;">&upsilon;</span>
| '''<span title="&amp;Uuml;">&Uuml;</span>
| '''<span title="&amp;uuml;">&uuml;</span>
| '''<span title="&amp;weierp;">&weierp;</span>
| '''<span title="&amp;Xi;">&Xi;</span>
| '''<span title="&amp;xi;">&xi;</span>
| '''<span title="&amp;Yacute;">&Yacute;</span>
| '''<span title="&amp;yacute;">&yacute;</span>
| '''<span title="&amp;yen;">&yen;</span>
| '''<span title="&amp;yuml;">&yuml;</span>
| '''<span title="&amp;Yuml;">&Yuml;</span>
| '''<span title="&amp;Zeta;">&Zeta;</span>
| '''<span title="&amp;zeta;">&zeta;</span>
| '''<span title="&amp;zwj;">&zwj;</span>
| '''<span title="&amp;zwnj;">&zwnj;</span>'''
|}

{| class="wikitable"
! Description
! width=40% | You type
! width=40% | You get
|-
|-
|Bulleted list
| Copyright symbol
| <tt><pre>
&amp;copy;
</pre></tt>
|
|
<code>* One</code><br />
:::'''&copy;'''
<code>* Two</code><br />
<code>** Two point one</code><br />
<code>* Three</code>
|
* One
* Two
** Two point one
* Three
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Greek delta letter symbol
|-
| <tt><pre>
|Numbered list
&amp;delta;
</pre></tt>
|
|
<code># One</code><br />
:::'''&delta;'''
<code># Two</code><br />
<code>## Two point one</code><br />
<code># Three</code>
|
# One
# Two
## Two point one
# Three
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Euro currency symbol
|-
| <tt><pre>
|Indenting text
&amp;euro;
<div style="padding: 0.7em .5em; font-size:0.9em;">''this is used when replying on a talk page, to make it easier to follow conversations''</div>
</pre></tt>
|
|
<code><nowiki>no indent (normal)</nowiki></code><br />
:::'''&euro;'''
<code><nowiki>:first indent</nowiki></code><br />
<code><nowiki>::second indent</nowiki></code><br />
<code><nowiki>:::third indent</nowiki></code>
|
no indent (normal)<br />
:first indent
::second indent
:::third indent
|}
|}


See the list of all HTML entities on the Wikipedia article [[w:List of HTML entities|List of HTML entities]]. Additionally, MediaWiki supports two non-standard entity reference sequences: <code>&amp;רלמ;</code> and <code>&amp;رلم;</code> which are both considered equivalent to <code>&amp;rlm;</code> which is a [[w:Right-to-left mark|right-to-left mark]]. (Used when combining right to left languages with left to right languages in the same page.)

== HTML tags and symbol entities displayed themselves (with and without interpreting them) ==

:<tt>&amp;amp;euro;</tt> &nbsp;&rarr; '''&amp;euro;'''

:<tt>&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected&lt;/span></tt> &nbsp;&rarr; '''<span style="color: red; text-decoration: line-through;">Typo to be corrected</span>'''

:<tt>&amp;lt;span style="color: red; text-decoration: line-through;">Typo to be corrected&amp;lt;/span></tt> &nbsp;&rarr; '''&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected&lt;/span>'''

=== Nowiki for HTML ===

<<nowiki />nowiki /> can prohibit (HTML) tags:
* <nowiki><<</nowiki>nowiki />pre> &nbsp;&rarr; <<nowiki/>pre>
But ''not'' &amp; symbol escapes:
* &<<nowiki />nowiki />amp; &nbsp;&rarr; &amp;
To print &amp; symbol escapes as text, use "<tt>&amp;amp;</tt>" to replace the "&" character (eg. type "<tt>&amp;amp;nbsp;</tt>", which results in "<tt>&amp;nbsp;</tt>").

== Other formatting ==

Beyond the text formatting markup shown hereinbefore, here are some other formatting references:

* [[Help:Links|Links]]
* [[Help:List|Lists]]
* [[Help:Images|Images]]
* [[Help:Tables|Tables]]

You can find more references at [[Help:Contents]].


__NOEDITSECTION__
[[Category:Help]]
__NOTOC__
[[Category:Help|{{PAGENAME}}]]

Latest revision as of 19:07, 19 April 2024

Here you'll learn the basics of article formatting.

Formatting

Works anywhere in the text

Description You type You get
Italics, bold, and both

''italics'', '''bold''', and '''''both'''''

italics, bold, and both

Link to another page

[[Help!]]
[[Help!]]ing

Help!
Help!ing

"Pipe" a link to change the link's text

[[Help:Spam|Spam]]

Spam

Link to a section

[[Help:Templates#Using a template]]
[[Help:Templates#Using a template|Using a template]]

Help:Templates#Using a template
Using a template

Red link

[[something missing]]

something missing

References and footnotes
sources in the article will appear where <references/> is put, typically under a level 2 section heading (see below) towards the bottom of the page.

Hello,<ref>Library of Congress</ref> World.<ref>http://www.w3.org/</ref>

References: <references/>

Hello,[1] World.[2]

References:

  1. Library of Congress
  2. http://www.w3.org/
Signature

~~~~

do not sign in an article, only on talk pages

Username (talk) 20:33, 5 June 2024 (UTC)

Plain website

http://www.wikipedia.org

http://www.wikipedia.org

Link a website

[http://www.wikipedia.org]

[1]

Link and name a website

[http://www.wikipedia.org Wikipedia]

Wikipedia

Strike your talk page comment
to show your previous comment is outdated

<s>This topic isn't notable.</s>

This topic isn't notable.

Hide text somewhere for editors
consensus is how things are decided

<!--This had consensus, discuss at talk page-->

Show an image

[[File:Wiki.png|thumb|Caption]]

Caption
Templates

The {{main|Home Page}} template adds a link to the Home Page

Main article: Home Page
Add a page to a category [[Category:Category name]]

place near the bottom of a page
shows "Category name" in a bar at bottom when the page is previewed or saved

Works only at the beginning of lines    

Description You type You get
Redirect to another page
redirects must be placed at the start of the first line

#REDIRECT [[Target page]]

Target page

Redirect to a section of another page

#REDIRECT [[Target page#anchorName]]

Target page#anchorName

Section headings
a Table of Contents will automatically be generated when four headings are added to an article

==Level 2==
===Level 3===
====Level 4====
=====Level 5=====
======Level 6======

do not use  =Level 1=  as it is for page titles

Level 2

Level 3

Level 4

Level 5
Level 6
Nonindexed headers
left out of Table of Contents

; Header name

has a leading semicolon ";" in front

Header name

will not appear in Table of Contents
Bulleted list

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list

# One
# Two
## Two point one
# Three

  1. One
  2. Two
    1. Two point one
  3. Three
Indenting text
this is used when replying on a talk page, to make it easier to follow conversations

no indent (normal)
:first indent
::second indent
:::third indent

no indent (normal)

first indent
second indent
third indent