Help:Formatting: Difference between revisions
No edit summary |
No edit summary |
||
(6 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:#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> |
|||
<nowiki>no ''markup''</nowiki> |
|||
</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]]<nowiki/>extension |
|||
| |
|||
</pre> |
|||
<code><nowiki>[[something missing]]</nowiki></code> |
|||
| |
| |
||
[[something missing]] |
|||
[[API]]<nowiki/>extension |
|||
|- |
|- |
||
|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> |
|||
---- |
|||
{{note| |
|||
* [[Help_talk:Formatting#Level_1|Skip Level 1]], it is page name level. |
|||
* An article with 4 or more headings automatically creates a [[wikipedia:Wikipedia:Section#Table of contents (TOC)|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 [[Wikipedia:asterisk|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 [[Wikipedia:asterisk|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 [[Wikipedia:Number_sign|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 [[Wikipedia:Number_sign|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> |
|||
---- |
|||
{{Note|This workaround may harm accessibility.}} |
|||
| |
| |
||
<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 <nowiki><br /></nowiki> |
|||
# five |
|||
## five sub 1 |
|||
### five sub 1 sub 1 |
|||
## five sub 2 |
|||
</pre> |
|||
---- |
|||
{{note|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> |
|||
---- |
|||
{{note|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><br /></code>. |
|||
== HTML tags == |
|||
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code><code></code>, <code><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 strikethrough 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''' |
|||
| <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</pre> |
|||
</pre> |
|||
---- |
|||
{{note|For marking up of preformatted text, check the "Preformatted text" entry at the end of the previous table.}} |
|||
| |
| |
||
[[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 /> |
|||
</pre> |
|||
<code><nowiki>====Level 4====</nowiki></code><br /> |
|||
</pre> |
|||
<code><nowiki>=====Level 5=====</nowiki></code><br /> |
|||
---- |
|||
<code><nowiki>======Level 6======</nowiki></code><br /><br /> |
|||
{{note|A CSS style can be named within the <code>style</code> property.}} |
|||
<span style="font-size:0.9em">''do not use'' =Level 1= ''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. |
|||
</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) '''&rarr;''' when inserted will be shown as <ins>right arrow</ins> HTML symbol → and '''&mdash;''' when inserted will be shown as an <ins>em dash</ins> HTML symbol —. |
|||
---- |
|||
{{note|Hover over any character to find out the symbol that it produces. Some symbols not available in the current font will appear as empty squares.}} |
|||
{| class="wikitable" align=center width=100% |
|||
! colspan=32 | HTML symbol entities |
|||
|- align=center |
|||
| '''<span title="&Aacute;">Á</span> |
|||
| '''<span title="&aacute;">á</span> |
|||
| '''<span title="&Acirc;">Â</span> |
|||
| '''<span title="&acirc;">â</span> |
|||
| '''<span title="&acute;">´</span> |
|||
| '''<span title="&AElig;">Æ</span> |
|||
| '''<span title="&aelig;">æ</span> |
|||
| '''<span title="&Agrave;">À</span> |
|||
| '''<span title="&agrave;">à</span> |
|||
| '''<span title="&alefsym;">ℵ</span> |
|||
| '''<span title="&Alpha;">Α</span> |
|||
| '''<span title="&alpha;">α</span> |
|||
| '''<span title="&amp;">&</span> |
|||
| '''<span title="&and;">∧</span> |
|||
| '''<span title="&ang;">∠</span> |
|||
| '''<span title="&Aring;">Å</span> |
|||
| '''<span title="&aring;">å</span> |
|||
| '''<span title="&asymp;">≈</span> |
|||
| '''<span title="&Atilde;">Ã</span> |
|||
| '''<span title="&atilde;">ã</span> |
|||
| '''<span title="&Auml;">Ä</span> |
|||
| '''<span title="&auml;">ä</span> |
|||
| '''<span title="&bdquo;">„</span> |
|||
| '''<span title="&Beta;">Β</span> |
|||
| '''<span title="&beta;">β</span> |
|||
| '''<span title="&brvbar;">¦</span> |
|||
| '''<span title="&bull;">•</span> |
|||
| '''<span title="&cap;">∩</span> |
|||
| '''<span title="&Ccedil;">Ç</span> |
|||
| '''<span title="&ccedil;">ç</span> |
|||
| '''<span title="&cedil;">¸</span> |
|||
| '''<span title="&cent;">¢</span> |
|||
|- align=center |
|||
| '''<span title="&Chi;">Χ</span> |
|||
| '''<span title="&chi;">χ</span> |
|||
| '''<span title="&circ;">ˆ</span> |
|||
| '''<span title="&clubs;">♣</span> |
|||
| '''<span title="&cong;">≅</span> |
|||
| '''<span title="&copy;">©</span> |
|||
| '''<span title="&crarr;">↵</span> |
|||
| '''<span title="&cup;">∪</span> |
|||
| '''<span title="&curren;">¤</span> |
|||
| '''<span title="&dagger;">†</span> |
|||
| '''<span title="&Dagger;">‡</span> |
|||
| '''<span title="&darr;">↓</span> |
|||
| '''<span title="&dArr;">⇓</span> |
|||
| '''<span title="&deg;">°</span> |
|||
| '''<span title="&Delta;">Δ</span> |
|||
| '''<span title="&delta;">δ</span> |
|||
| '''<span title="&diams;">♦</span> |
|||
| '''<span title="&divide;">÷</span> |
|||
| '''<span title="&Eacute;">É</span> |
|||
| '''<span title="&eacute;">é</span> |
|||
| '''<span title="&Ecirc;">Ê</span> |
|||
| '''<span title="&ecirc;">ê</span> |
|||
| '''<span title="&Egrave;">È</span> |
|||
| '''<span title="&egrave;">è</span> |
|||
| '''<span title="&empty;">∅</span> |
|||
| '''<span title="&emsp;"> </span> |
|||
| '''<span title="&ensp;"> </span> |
|||
| '''<span title="&Epsilon;">Ε</span> |
|||
| '''<span title="&epsilon;">ε</span> |
|||
| '''<span title="&equiv;">≡</span> |
|||
| '''<span title="&Eta;">Η</span> |
|||
| '''<span title="&eta;">η</span> |
|||
|- align=center |
|||
| '''<span title="&ETH;">Ð</span> |
|||
| '''<span title="&eth;">ð</span> |
|||
| '''<span title="&Euml;">Ë</span> |
|||
| '''<span title="&euml;">ë</span> |
|||
| '''<span title="&euro;">€</span> |
|||
| '''<span title="&exist;">∃</span> |
|||
| '''<span title="&fnof;">ƒ</span> |
|||
| '''<span title="&forall;">∀</span> |
|||
| '''<span title="&frac12;">½</span> |
|||
| '''<span title="&frac14;">¼</span> |
|||
| '''<span title="&frac34;">¾</span> |
|||
| '''<span title="&frasl;">⁄</span> |
|||
| '''<span title="&Gamma;">Γ</span> |
|||
| '''<span title="&gamma;">γ</span> |
|||
| '''<span title="&ge;">≥</span> |
|||
| '''<span title="&gt;">></span> |
|||
| '''<span title="&harr;">↔</span> |
|||
| '''<span title="&hArr;">⇔</span> |
|||
| '''<span title="&hearts;">♥</span> |
|||
| '''<span title="&hellip;">…</span> |
|||
| '''<span title="&Iacute;">Í</span> |
|||
| '''<span title="&iacute;">í</span> |
|||
| '''<span title="&Icirc;">Î</span> |
|||
| '''<span title="&icirc;">î</span> |
|||
| '''<span title="&iexcl;">¡</span> |
|||
| '''<span title="&Igrave;">Ì</span> |
|||
| '''<span title="&igrave;">ì</span> |
|||
| '''<span title="&image;">ℑ</span> |
|||
| '''<span title="&infin;">∞</span> |
|||
| '''<span title="&int;">∫</span> |
|||
| '''<span title="&Iota;">Ι</span> |
|||
| '''<span title="&iota;">ι</span> |
|||
|- align=center |
|||
| '''<span title="&iquest;">¿</span> |
|||
| '''<span title="&isin;">∈</span> |
|||
| '''<span title="&Iuml;">Ï</span> |
|||
| '''<span title="&iuml;">ï</span> |
|||
| '''<span title="&Kappa;">Κ</span> |
|||
| '''<span title="&kappa;">κ</span> |
|||
| '''<span title="&Lambda;">Λ</span> |
|||
| '''<span title="&lambda;">λ</span> |
|||
| '''<span title="&lang;">⟨</span> |
|||
| '''<span title="&laquo;">«</span> |
|||
| '''<span title="&larr;">←</span> |
|||
| '''<span title="&lArr;">⇐</span> |
|||
| '''<span title="&lceil;">⌈</span> |
|||
| '''<span title="&ldquo;">“</span> |
|||
| '''<span title="&le;">≤</span> |
|||
| '''<span title="&lfloor;">⌊</span> |
|||
| '''<span title="&lowast;">∗</span> |
|||
| '''<span title="&loz;">◊</span> |
|||
| '''<span title="&lrm;">‎</span> |
|||
| '''<span title="&lsaquo;">‹</span> |
|||
| '''<span title="&lsquo;">‘</span> |
|||
| '''<span title="&lt;"><</span> |
|||
| '''<span title="&macr;">¯</span> |
|||
| '''<span title="&mdash;">—</span> |
|||
| '''<span title="&micro;">µ</span> |
|||
| '''<span title="&middot;">·</span> |
|||
| '''<span title="&minus;">−</span> |
|||
| '''<span title="&Mu;">Μ</span> |
|||
| '''<span title="&mu;">μ</span> |
|||
| '''<span title="&nabla;">∇</span> |
|||
| '''<span title="&nbsp;"> </span> |
|||
| '''<span title="&ndash;">–</span> |
|||
|- align=center |
|||
| '''<span title="&ne;">≠</span> |
|||
| '''<span title="&ni;">∋</span> |
|||
| '''<span title="&not;">¬</span> |
|||
| '''<span title="&notin;">∉</span> |
|||
| '''<span title="&nsub;">⊄</span> |
|||
| '''<span title="&Ntilde;">Ñ</span> |
|||
| '''<span title="&ntilde;">ñ</span> |
|||
| '''<span title="&Nu;">Ν</span> |
|||
| '''<span title="&nu;">ν</span> |
|||
| '''<span title="&Oacute;">Ó</span> |
|||
| '''<span title="&oacute;">ó</span> |
|||
| '''<span title="&Ocirc;">Ô</span> |
|||
| '''<span title="&ocirc;">ô</span> |
|||
| '''<span title="&OElig;">Œ</span> |
|||
| '''<span title="&oelig;">œ</span> |
|||
| '''<span title="&Ograve;">Ò</span> |
|||
| '''<span title="&ograve;">ò</span> |
|||
| '''<span title="&oline;">‾</span> |
|||
| '''<span title="&Omega;">Ω</span> |
|||
| '''<span title="&omega;">ω</span> |
|||
| '''<span title="&Omicron;">Ο</span> |
|||
| '''<span title="&omicron;">ο</span> |
|||
| '''<span title="&oplus;">⊕</span> |
|||
| '''<span title="&or;">∨</span> |
|||
| '''<span title="&ordf;">ª</span> |
|||
| '''<span title="&ordm;">º</span> |
|||
| '''<span title="&Oslash;">Ø</span> |
|||
| '''<span title="&oslash;">ø</span> |
|||
| '''<span title="&Otilde;">Õ</span> |
|||
| '''<span title="&otilde;">õ</span> |
|||
| '''<span title="&otimes;">⊗</span> |
|||
| '''<span title="&Ouml;">Ö</span> |
|||
|- align=center |
|||
| '''<span title="&ouml;">ö</span> |
|||
| '''<span title="&para;">¶</span> |
|||
| '''<span title="&part;">∂</span> |
|||
| '''<span title="&permil;">‰</span> |
|||
| '''<span title="&perp;">⊥</span> |
|||
| '''<span title="&Phi;">Φ</span> |
|||
| '''<span title="&phi;">φ</span> |
|||
| '''<span title="&Pi;">Π</span> |
|||
| '''<span title="&pi;">π</span> |
|||
| '''<span title="&piv;">ϖ</span> |
|||
| '''<span title="&plusmn;">±</span> |
|||
| '''<span title="&pound;">£</span> |
|||
| '''<span title="&prime;">′</span> |
|||
| '''<span title="&Prime;">″</span> |
|||
| '''<span title="&prod;">∏</span> |
|||
| '''<span title="&prop;">∝</span> |
|||
| '''<span title="&Psi;">Ψ</span> |
|||
| '''<span title="&psi;">ψ</span> |
|||
| '''<span title="&quot;">"</span> |
|||
| '''<span title="&radic;">√</span> |
|||
| '''<span title="&rang;">⟩</span> |
|||
| '''<span title="&raquo;">»</span> |
|||
| '''<span title="&rarr;">→</span> |
|||
| '''<span title="&rArr;">⇒</span> |
|||
| '''<span title="&rceil;">⌉</span> |
|||
| '''<span title="&rdquo;">”</span> |
|||
| '''<span title="&real;">ℜ</span> |
|||
| '''<span title="&reg;">®</span> |
|||
| '''<span title="&rfloor;">⌋</span> |
|||
| '''<span title="&Rho;">Ρ</span> |
|||
| '''<span title="&rho;">ρ</span> |
|||
| '''<span title="&rlm;">‏</span> |
|||
|- align=center |
|||
| '''<span title="&rsaquo;">›</span> |
|||
| '''<span title="&rsquo;">’</span> |
|||
| '''<span title="&sbquo;">‚</span> |
|||
| '''<span title="&Scaron;">Š</span> |
|||
| '''<span title="&scaron;">š</span> |
|||
| '''<span title="&sdot;">⋅</span> |
|||
| '''<span title="&sect;">§</span> |
|||
| '''<span title="&shy;">­</span> |
|||
| '''<span title="&Sigma;">Σ</span> |
|||
| '''<span title="&sigma;">σ</span> |
|||
| '''<span title="&sigmaf;">ς</span> |
|||
| '''<span title="&sim;">∼</span> |
|||
| '''<span title="&spades;">♠</span> |
|||
| '''<span title="&sub;">⊂</span> |
|||
| '''<span title="&sube;">⊆</span> |
|||
| '''<span title="&sum;">∑</span> |
|||
| '''<span title="&sup;">⊃</span> |
|||
| '''<span title="&sup1;">¹</span> |
|||
| '''<span title="&sup2;">²</span> |
|||
| '''<span title="&sup3;">³</span> |
|||
| '''<span title="&supe;">⊇</span> |
|||
| '''<span title="&szlig;">ß</span> |
|||
| '''<span title="&Tau;">Τ</span> |
|||
| '''<span title="&tau;">τ</span> |
|||
| '''<span title="&there4;">∴</span> |
|||
| '''<span title="&Theta;">Θ</span> |
|||
| '''<span title="&theta;">θ</span> |
|||
| '''<span title="&thetasym;">ϑ</span> |
|||
| '''<span title="&thinsp;"> </span> |
|||
| '''<span title="&THORN;">Þ</span> |
|||
| '''<span title="&thorn;">þ</span> |
|||
| '''<span title="&tilde;">˜</span> |
|||
|- align=center |
|||
| '''<span title="&times;">×</span> |
|||
| '''<span title="&trade;">™</span> |
|||
| '''<span title="&Uacute;">Ú</span> |
|||
| '''<span title="&uacute;">ú</span> |
|||
| '''<span title="&uarr;">↑</span> |
|||
| '''<span title="&uArr;">⇑</span> |
|||
| '''<span title="&Ucirc;">Û</span> |
|||
| '''<span title="&ucirc;">û</span> |
|||
| '''<span title="&Ugrave;">Ù</span> |
|||
| '''<span title="&ugrave;">ù</span> |
|||
| '''<span title="&uml;">¨</span> |
|||
| '''<span title="&upsih;">ϒ</span> |
|||
| '''<span title="&Upsilon;">Υ</span> |
|||
| '''<span title="&upsilon;">υ</span> |
|||
| '''<span title="&Uuml;">Ü</span> |
|||
| '''<span title="&uuml;">ü</span> |
|||
| '''<span title="&weierp;">℘</span> |
|||
| '''<span title="&Xi;">Ξ</span> |
|||
| '''<span title="&xi;">ξ</span> |
|||
| '''<span title="&Yacute;">Ý</span> |
|||
| '''<span title="&yacute;">ý</span> |
|||
| '''<span title="&yen;">¥</span> |
|||
| '''<span title="&yuml;">ÿ</span> |
|||
| '''<span title="&Yuml;">Ÿ</span> |
|||
| '''<span title="&Zeta;">Ζ</span> |
|||
| '''<span title="&zeta;">ζ</span> |
|||
| '''<span title="&zwj;">‍</span> |
|||
| '''<span title="&zwnj;">‌</span>''' |
|||
|} |
|||
{| class="wikitable" |
|||
! Description |
|||
! width=40% | You type |
|||
! width=40% | You get |
|||
|- |
|- |
||
|Bulleted list |
|||
| Copyright symbol |
|||
| <tt><pre> |
|||
&copy; |
|||
</pre></tt> |
|||
| |
| |
||
<code>* One</code><br /> |
|||
:::'''©''' |
|||
<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 |
|||
&delta; |
|||
</pre></tt> |
|||
| |
| |
||
<code># One</code><br /> |
|||
:::'''δ''' |
|||
<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 |
|||
&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 /> |
|||
:::'''€''' |
|||
<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>&רלמ;</code> and <code>&رلم;</code> which are both considered equivalent to <code>&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;euro;</tt> → '''&euro;''' |
|||
:<tt><span style="color: red; text-decoration: line-through;">Typo to be corrected</span></tt> → '''<span style="color: red; text-decoration: line-through;">Typo to be corrected</span>''' |
|||
:<tt>&lt;span style="color: red; text-decoration: line-through;">Typo to be corrected&lt;/span></tt> → '''<span style="color: red; text-decoration: line-through;">Typo to be corrected</span>''' |
|||
=== Nowiki for HTML === |
|||
<<nowiki />nowiki /> can prohibit (HTML) tags: |
|||
* <nowiki><<</nowiki>nowiki />pre> → <<nowiki/>pre> |
|||
But ''not'' & symbol escapes: |
|||
* &<<nowiki />nowiki />amp; → & |
|||
To print & symbol escapes as text, use "<tt>&amp;</tt>" to replace the "&" character (eg. type "<tt>&amp;nbsp;</tt>", which results in "<tt>&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]] |
|||
* References - see [[Extension:Cite/Cite.php]] |
|||
* [[Help:Tables|Tables]] |
|||
You can find more references at [[Help:Contents]]. |
|||
__NOEDITSECTION__ |
|||
[[Category:Help|Formatting]] |
|||
__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 |
Link to another page |
|
|
"Pipe" a link to change the link's text |
|
|
Link to a section |
|
|
Red link |
|
|
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.
|
|
References:
|
Signature |
|
|
Plain website |
|
|
Link a website |
|
|
Link and name a website |
|
|
Strike your talk page comment
to show your previous comment is outdated
|
|
|
Hide text somewhere for editors
consensus is how things are decided
|
|
|
Show an image |
|
|
Templates |
|
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 to a section of another page |
|
|
Section headings a Table of Contents will automatically be generated when four headings are added to an article
|
|
Level 2Level 3Level 4Level 5Level 6 |
Nonindexed headers
left out of Table of Contents
|
has a leading semicolon ";" in front
|
Header name will not appear in Table of Contents
|
Bulleted list |
|
|
Numbered list |
|
|
Indenting text
this is used when replying on a talk page, to make it easier to follow conversations
|
|
no indent (normal)
|