Help:Wiki markup

From FamilySearch Wiki

(Difference between revisions)
(create page based on http://en.wikipedia.org/wiki/Help:Wiki_markup - requires editing to include more relevant examples for FSWiki users)
 
(added call support button)
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''Wiki markup''' is the {{wpd|Wikitext|text}} you use to format a FamilySearch Wiki page.
+
{| cellspacing="1" cellpadding="1" border="0" align="right" width="200"
 +
|-
 +
| [[Help:Contributor Help|Return to Contributor Help]]
 +
|}<br><br><br>
  
==Links and URLs==
+
{{how-to-articles}} {{Help article}}
The following characters are used to create links: <code><nowiki>[[ ]], [ ], ~~~~, ~~~, http, ISBN, RFC & {{ }}</nowiki></code>, as denoted by the following sections:
+
 
{|
+
 
|
+
'''Wiki markup''' is the {{wpd|Wikitext|text}} you use to format a FamilySearch Wiki page.
 +
<div style="float:right">[[Image:Colored_Pencils.jpg|right|175px]]</div>
 +
=== Links and URLs ===
 +
The following characters are used to create links: <code><nowiki>[[ ]], [ ], ~~~~, ~~~, http, ISBN, RFC & {{ }}</nowiki></code>, as denoted by the following sections:  
 +
{| class="FCK__ShowTableBorders"
 +
|-
 +
|  
 
*[[#articlelink|Article link]]
 
*[[#articlelink|Article link]]
  
Line 24: Line 33:
  
 
*[[#wikimedialink|Wikimedia link]]
 
*[[#wikimedialink|Wikimedia link]]
||
+
 
 +
|  
 
*[[#linkedandwhy|Linked and why]]
 
*[[#linkedandwhy|Linked and why]]
  
Line 46: Line 56:
  
 
*[[#editlinks|Edit links]]
 
*[[#editlinks|Edit links]]
 +
 
|}
 
|}
  
{| class="wikitable" border="1"  
+
{{ToDo|Change the examples to be more relevant to FamilySearch Wiki}}
 +
 
 +
{| class="wikitable" border="1"
 
|- valign="top"
 
|- valign="top"
! width=“50%”|What it looks like
+
! What it looks like  
! width=“50%”|What you type
+
! What you type
 
|- id="articlelink" valign="top"
 
|- id="articlelink" valign="top"
| width=“50%”|
+
|  
London has [[public transport]]. (Article link)
+
London has [[Public transport]]. (Article link)  
  
* A link to another Wiki article.
+
*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).
+
*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 [[Uniform Resource Locator|URL]] en.wikipedia.org/wiki/Public_transport, which is the Wikipedia article with the name "Public transport". See also [[Help:Link|Canonicalization]].
+
*Thus the link above is to the [[Uniform Resource Locator|URL]] en.wikipedia.org/wiki/Public_transport, which is the Wikipedia article with the name "Public transport". See also [[Help:Link|Canonicalization]].  
*[[Intentionally permanent red link|A red link]] is a page that doesn't exist yet, they can be created by clicking on the link.
+
*[[Intentionally permanent red link|A red link]] is a page that doesn't exist yet, they can be created by clicking on the link.  
 
*A [[Help:Self link|link to its own page]] will appear only as bold text.
 
*A [[Help:Self link|link to its own page]] will appear only as bold text.
  
| width=“50%” valign="top"|
+
| valign="top" |  
 
<code><nowiki>London has [[public transport]].</nowiki></code>
 
<code><nowiki>London has [[public transport]].</nowiki></code>
 +
 
|- id="renamedlink" valign="top"
 
|- id="renamedlink" valign="top"
| width=“50%”|
+
|  
San Francisco also has [[public transport|public transportation]]. (Renamed link)
+
San Francisco also has [[Public transport|public transportation]]. (Renamed link)  
 +
 
 +
*Same target, different name.
 +
*The target ("piped") text must be placed '''first''', then the text to be displayed, '''second'''.
  
* Same target, different name.
+
| valign="top" |  
* The target ("piped") text must be placed '''first''', then the text to be displayed,  '''second'''.
+
| width=“50%” valign="top"|
+
 
<code><nowiki>San Francisco also has [[public transport|public transportation]].</nowiki></code>
 
<code><nowiki>San Francisco also has [[public transport|public transportation]].</nowiki></code>
 +
 
|- id="blendlink" valign="top"
 
|- id="blendlink" valign="top"
| width=“50%”|
+
|  
San Francisco also has
+
San Francisco also has [[Public transport]]ation. (Blend link)  
[[public transport]]ation. (Blend link)
+
  
Examples include [[bus]]es, [[taxicab]]s,
+
Examples include [[Bus]]es, [[Taxicab]]s, and [[Tram]]s.  
and [[tram]]s.
+
  
* Endings are blended into the link.
+
*Endings are blended into the link.  
**''Exception'': a trailing [[apostrophe]] (') and any characters following the apostrophe are ''not'' blended.
+
**''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.
+
*Preferred style is to use this instead of a piped link, if possible.  
* Blending can be suppressed by using <nowiki><nowiki></nowiki></nowiki> tags, which may be desirable in some instances. Example: a [[micro-]]<nowiki>second</nowiki>.
+
*Blending can be suppressed by using <nowiki><nowiki></nowiki>&lt;/nowiki&gt; tags, which may be desirable in some instances. Example: a [[Micro-]]<nowiki>second</nowiki>.
| width=“50%”|
+
 
 +
|  
 
<code><nowiki>San Francisco also has
 
<code><nowiki>San Francisco also has
[[public transport]]ation.</nowiki></code>
+
[[public transport]]ation.</nowiki></code>  
  
 
<code><nowiki>Examples include [[bus]]es,
 
<code><nowiki>Examples include [[bus]]es,
  [[taxicab]]s, and [[tram]]s.</nowiki></code>
+
  [[taxicab]]s, and [[tram]]s.</nowiki></code>
 +
 
 +
<code><nowiki>a [[micro-]]<nowiki>second</nowiki>&lt;/nowiki&gt;</code>
  
<code><nowiki>a [[micro-]]<nowiki>second</nowiki></nowiki></code>
 
 
|- id="otherpagelink" valign="top"
 
|- id="otherpagelink" valign="top"
| width=“50%”|
+
|  
 +
See the [[wikipedia:Manual of Style]]. (Other page link)
  
See the [[Wikipedia:Manual of Style]]. (Other page link)
+
*A link to another [[Help:Namespace|namespace]].
 
+
* A link to another [[Help:namespace|namespace]].
+
| width=“50%”|
+
  
 +
|
 
<code><nowiki>See the [[Wikipedia:Manual of Style]].</nowiki></code>
 
<code><nowiki>See the [[Wikipedia:Manual of Style]].</nowiki></code>
 +
 
|- id="link-to-section" valign="top"
 
|- id="link-to-section" valign="top"
| width=“50%”|
+
|  
[[Wikipedia:Manual of Style#Italics]] is a link to a [[Section_editing#Creation_and_numbering_of_sections|section]] within another page.
+
[[wikipedia:Manual of Style]] is a link to a [[Section editing#Creation_and_numbering_of_sections|section]] within another page.  
  
[[#Links and URLs]] is a link to another section on the current page.
+
[[#Links_and_URLs]] is a link to another section on the current page.  
  
[[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page.
+
[[wikipedia:Manual of Style|Italics]] is a piped link to a section within another page.  
  
* The part after the number sign (#) must match a [[Section_editing#Creation_and_numbering_of_sections|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.
+
*The part after the number sign (#) must match a [[Section editing#Creation_and_numbering_of_sections|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.
+
*Include "&#124; link title" to create a stylish (piped) link title.  
*If sections have the same title, add a number to link to any but the first.[[#Example section 3]] goes to the third section named "Example section".
+
*If sections have the same title, add a number to link to any but the first.[[#Example_section_3]] goes to the third section named "Example section".
  
| width=“50%”|
+
|  
<code><nowiki>[[Wikipedia:Manual of Style#Italics]] is a link to a section within another page.</nowiki></code>
+
<code><nowiki>[[Wikipedia:Manual of Style#Italics]] is a link to a section within another page.</nowiki></code>  
  
<code><nowiki>[[#Links and URLs]] is a link to another section on the current page.</nowiki></code>
+
<code><nowiki>[[#Links and URLs]] is a link to another section on the current page.</nowiki></code>  
  
 +
<br><code><nowiki>[[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page.</nowiki></code>
  
<code><nowiki>[[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page.</nowiki></code>
 
 
|- id="examplerenamedlinks" valign="top"
 
|- id="examplerenamedlinks" valign="top"
| width=“50%”|
+
|  
(Example renamed links)
+
(Example renamed links)  
  
Automatically hide stuff in parentheses:
+
Automatically hide stuff in parentheses: [[Kingdom (biology)|kingdom]].  
[[kingdom (biology)|kingdom]].
+
  
Automatically hide namespace:
+
Automatically hide namespace: [[wikipedia:Village pump|Village pump]].  
[[Wikipedia:Village pump|Village pump]].  
+
  
Or both:
+
Or both: [[wikipedia:Manual of Style|Manual of Style]]  
[[Wikipedia:Manual of Style|Manual of Style]]
+
  
But not:
+
But not: [[Wikipedia:Manual of Style#Links|]]  
[[Wikipedia:Manual of Style#Links|]]
+
* 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 [[Help:Show preview|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 ([[#link-to-section|see previous entry]]).
+
* See [[Help:Pipe trick|Pipe trick]] for details.
+
  
| width=“50%”|
+
*The server fills in the part after the pipe character (&#124;) when you save the page. The next time you open the edit box you will see the expanded piped link. When [[Help:Show preview|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 ([[#link-to-section|see previous entry]]).
<code><nowiki>Automatically hide stuff in parentheses: [[kingdom (biology)|]].</nowiki></code>
+
*See [[Help:Pipe trick|Pipe trick]] for details.
  
 +
|
 +
<code><nowiki>Automatically hide stuff in parentheses: [[kingdom (biology)|]].</nowiki></code>
  
 +
<br>
  
<code><nowiki>Automatically hide namespace: [[Wikipedia:Village pump|]].</nowiki></code>
+
<code><nowiki>Automatically hide namespace: [[Wikipedia:Village pump|]].</nowiki></code>  
  
 +
<br>
  
 +
<code><nowiki>Or both:[[Wikipedia:Manual of Style (headings)|]]</nowiki></code>
  
<code><nowiki>Or both:[[Wikipedia:Manual of Style (headings)|]]</nowiki></code>
+
<br>
 
+
 
+
  
 
<code><nowiki>But not:[[Wikipedia:Manual of Style#Links|]]</nowiki></code>
 
<code><nowiki>But not:[[Wikipedia:Manual of Style#Links|]]</nowiki></code>
 +
 
|- id="createpagelink" valign="top"
 
|- id="createpagelink" valign="top"
| width=“50%”|
+
|  
(Create page link)
+
(Create page link)  
  
Links to pages that don’t exist yet look red:
+
Links to pages that don’t exist yet look red: [[wikipedia:Community portal/Opentask/Requested articles]]  
[[Wikipedia:Community portal/Opentask/Requested articles]]
+
  
* You can create it by clicking on the link.
+
*You can create it by clicking on the link.  
* To create a new page:  
+
*To create a new page:  
*# Create a link to it on some other (related) page.
+
*#Create a link to it on some other (related) page.  
*# Save that page.
+
*#Save that page.  
*# Click on the link you just made. The new page will open for editing.
+
*#Click on the link you just made. The new page will open for editing.
* For more information, see [[Wikipedia:Starting an article|starting an article]] and check out Wikipedia's [[Wikipedia:Naming conventions|naming conventions]].
+
*For more information, see [[wikipedia:Starting an article|starting an article]] and check out Wikipedia's [[wikipedia:Naming conventions|naming conventions]].  
* Please do not create a new article without linking to it from at least one other article.
+
*Please do not create a new article without linking to it from at least one other article.
| width=“50%”|
+
 
 +
|  
 
<code><nowiki>Links to pages that don’t exist yet look red:
 
<code><nowiki>Links to pages that don’t exist yet look red:
 
[[Wikipedia:Community portal/Opentask/Requested articles]]</nowiki></code>
 
[[Wikipedia:Community portal/Opentask/Requested articles]]</nowiki></code>
 +
 
|- id="signingcomments" valign="top"
 
|- id="signingcomments" valign="top"
| width=“50%”|
+
|  
(Signing comments)
+
(Signing comments)  
  
The character '''tilde''' (~) is used when adding a comment to a Talk page.  
+
The character '''tilde''' (~) is used when adding a comment to a Talk page. You should sign your comment by appending four tildes (<nowiki>~~~~</nowiki>) to the comment so as to add your user name plus date/time:  
You should sign your comment by appending four tildes (<nowiki>~~~~</nowiki>)
+
 
to the comment so as to add your user name plus date/time:
+
:User:Patricia Zhang 13:40, Jan 14, 2007 (UTC)
: User:Patricia Zhang 13:40, Jan 14, 2007 (UTC)
+
 
Adding three tildes (<nowiki>~~~</nowiki>) will add just your user name:
+
Adding three tildes (<nowiki>~~~</nowiki>) will add just your user name:  
: User:Patricia Zhang
+
 
and adding five tildes (<nowiki>~~~~~</nowiki>) gives the date/time alone:
+
:User:Patricia Zhang
: 13:40, Jan 14, 2007 (UTC)
+
 
 +
and adding five tildes (<nowiki>~~~~~</nowiki>) gives the date/time alone:  
 +
 
 +
:13:40, Jan 14, 2007 (UTC)
 +
 
 +
*The first two both provide a link to your [[wikipedia:user page|user page]].
 +
 
 +
|
 +
<code><nowiki>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: </nowiki></code><br><code><nowiki>:~~~~</nowiki></code><br><code><nowiki>Adding three tildes (~~~) will add just your user name:</nowiki></code><br><code><nowiki>: ~~~</nowiki></code><br><code><nowiki>and adding five tildes (~~~~~) gives the date/time alone:</nowiki></code><br><code><nowiki>: ~~~~~</nowiki></code><br>
  
* The first two both provide a link to your [[Wikipedia:user page|user page]].
 
| width=“50%”|
 
<code><nowiki>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: </nowiki></code><br />
 
<code><nowiki>:~~~~</nowiki></code><br />
 
<code><nowiki>Adding three tildes (~~~) will add just your user name:</nowiki></code><br />
 
<code><nowiki>: ~~~</nowiki></code><br />
 
<code><nowiki>and adding five tildes (~~~~~) gives the date/time alone:</nowiki></code><br />
 
<code><nowiki>: ~~~~~</nowiki></code><br />
 
 
|- id="redirects" valign="top"
 
|- id="redirects" valign="top"
| width=“50%”|
+
|  
(Redirects)
+
(Redirects)  
  
* [[Wikipedia:Redirect|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]]").
+
*[[wikipedia:Redirect|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.
+
*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.
| width=“50%”|
+
 
 +
|  
 
<code><nowiki>#REDIRECT [[United States]] </nowiki></code>
 
<code><nowiki>#REDIRECT [[United States]] </nowiki></code>
  
 
+
<br>
  
 
<code><nowiki>#REDIRECT [[United States#History]] will redirect to the [[United States]] page, to the History section, if it exists</nowiki></code>
 
<code><nowiki>#REDIRECT [[United States#History]] will redirect to the [[United States]] page, to the History section, if it exists</nowiki></code>
 +
 
|- id="wikimedialink" valign="top"
 
|- id="wikimedialink" valign="top"
| width=“50%”|
+
|  
(Wikimedia link)
+
(Wikimedia link)  
 +
 
 +
To connect, via interwiki link, to a page on the same subject in another language, put a link of the form: <nowiki>[[language code:Title]]</nowiki> 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 Wikipedia]] looks like:
  
To connect, via interwiki link, to a page on the same subject in another language, put a link of the form: <nowiki>[[language code:Title]]</nowiki> 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 Wikipedia]] looks like:
 
 
:<tt><nowiki>[[:de:Plankton]]</nowiki></tt>
 
:<tt><nowiki>[[:de:Plankton]]</nowiki></tt>
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.
+
where the "de" is the language-code for ''"Deutsch"'' (the [[German language]]).  
* Interwiki links are not visible within the formatted article but, instead, appear as language links on the extreme left-margin column of a Wikipedia page (under menu section "languages").
+
 
* Please see [[Help:Interlanguage links|Interlanguage links]] and the [[Wikipedia:Complete list of language wikis available|Complete list of language wikis available]].
+
*It is recommended interwiki links be placed at the very end of the article.  
| width=“50%”|
+
*Interwiki links are not visible within the formatted article but, instead, appear as language links on the extreme left-margin column of a Wikipedia page (under menu section "languages").  
 +
*Please see [[Help:Interlanguage links|Interlanguage links]] and the [[wikipedia:Complete list of language wikis available|Complete list of language wikis available]].
 +
 
 +
|  
 
<code><nowiki>
 
<code><nowiki>
 
[[:de:Plankton]]
 
[[:de:Plankton]]
Line 220: Line 240:
 
[[:simple:Plankton]]
 
[[:simple:Plankton]]
 
</nowiki></code>
 
</nowiki></code>
 +
 
|- id="linkedandwhy" valign="top"
 
|- id="linkedandwhy" valign="top"
| width=“50%”|
+
|  
(Linked and why)
+
(Linked and why)  
 +
 
 +
'''What links here''' and '''Related changes''' pages can be linked as:<br>[[Special:Whatlinkshere/Help:Wiki markup]] and [[Special:Recentchangeslinked/Help:Wiki markup]]
 +
 
 +
|
 +
<code><nowiki>'''What links here'''</nowiki> and <nowiki>'''Related changes'''</nowiki> pages can be linked as:<br>[[Special:WhatLinkshere/Help:Wiki markup]] and<br>[[Special:RecentChangeslinked/ Help:Wiki markup]]</code>
  
'''What links here''' and '''Related changes'''
 
pages can be linked as:<br />
 
[[Special: Whatlinkshere/Help:Wiki markup]]
 
and
 
[[Special: Recentchangeslinked/Help:Wiki markup]]
 
| width=“50%”|
 
<code>
 
<nowiki>'''What links here'''</nowiki> and <nowiki>'''Related changes'''</nowiki>
 
pages can be linked as:<br />
 
[[Special:
 
WhatLinkshere/Help:Wiki markup]]
 
and<br />
 
[[Special:
 
RecentChangeslinked/ Help:Wiki markup]]
 
</code>
 
 
|- id="linkeddate" valign="top"
 
|- id="linkeddate" valign="top"
| width=“50%”|
+
|  
; Dates:
+
;Dates  
Use links for dates, so everyone can set their own display order. Use [[Special:Preferences]] to change your own date display setting.<br />
+
:
[[July 20]] [[1969]]
+
 
 +
Use links for dates, so everyone can set their own display order. Use [[Special:Preferences]] to change your own date display setting.<br>[[July 20]] [[1969]] [[20 July]] [[1969]] and [[1969]]-[[07-20]]
 +
 
 +
| <pre>[[July 20]] [[1969]]
 
[[20 July]] [[1969]]
 
[[20 July]] [[1969]]
 
and [[1969]]-[[07-20]]
 
and [[1969]]-[[07-20]]
|<pre><nowiki>
+
</pre>
[[July 20]] [[1969]]
+
[[20 July]] [[1969]]
+
and [[1969]]-[[07-20]]
+
</nowiki></pre>
+
 
|- id="linkversion" valign="top"
 
|- id="linkversion" valign="top"
| width=“50%”|
+
|  
; Linking to old revisions of pages, diffs, and specific history pages
+
;Linking to old revisions of pages, diffs, and specific history pages
External link function is used for these as <nowiki>[[page]]</nowiki> will not work.<br />
+
 
Open an old revision or diff and copy the url, pasting it where you want it, e.g. [http://en.wikipedia.org/w/index.php?title=Help:Wiki_markup&diff=330350877&oldid=330349143 previous edit]<br />
+
External link function is used for these as <nowiki>[[page]]</nowiki> will not work.<br>Open an old revision or diff and copy the url, pasting it where you want it, e.g. [http://en.wikipedia.org/w/index.php?title=Help:Wiki_markup&diff=330350877&oldid=330349143 previous edit]<br>
|<pre><nowiki>
+
 
[http://en.wikipedia.org/w/index.php?title=Help:Wiki_markup&diff=330350877&oldid=330349143 previous edit]</nowiki></pre>
+
| <pre>[http://en.wikipedia.org/w/index.php?
 +
title=Help:Wiki_markup&amp;diff=330350877&amp;oldid=330349143 previous edit]</pre>
 
|- id="useredits" valign="top"
 
|- id="useredits" valign="top"
| width=“50%”|
+
|  
(User edits)
+
(User edits)  
  
A user's '''Contributions''' page can be linked as:
+
A user's '''Contributions''' page can be linked as: [[Special:Contributions/UserName]] or [[Special:Contributions/192.0.2.0]]
[[Special:Contributions/UserName]]
+
 
or
+
|  
[[Special:Contributions/192.0.2.0]]
+
| width=“50%”|
+
 
<code><nowiki>A user's '''Contributions''' page can be linked as: [[Special:Contributions/UserName]] or [[Special:Contributions/192.0.2.0]]</nowiki></code>
 
<code><nowiki>A user's '''Contributions''' page can be linked as: [[Special:Contributions/UserName]] or [[Special:Contributions/192.0.2.0]]</nowiki></code>
 +
 
|- id="categorize" valign="top"
 
|- id="categorize" valign="top"
| width=“50%”|
+
|  
(Categorize)
+
(Categorize)  
  
* To put an article in a [[Wikipedia:Categorization|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.
+
*To put an article in a [[wikipedia:Categorization|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.
| width=“50%”|
+
 
 +
|  
 
<code><nowiki>[[Category:Character sets]]</nowiki></code>
 
<code><nowiki>[[Category:Character sets]]</nowiki></code>
 +
 
|- id="categorypagelink" valign="top"
 
|- id="categorypagelink" valign="top"
| width=“50%”|
+
|  
(Category page link)
+
(Category page link)  
* To ''link'' to a [[Wikipedia:Categorization|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]].
+
 
| width=“50%”|
+
*To ''link'' to a [[wikipedia:Categorization|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]].
 +
 
 +
|  
 
<code><nowiki>[[:Category:Character sets]]</nowiki></code>
 
<code><nowiki>[[:Category:Character sets]]</nowiki></code>
 +
 
|- id="link-external" valign="top"
 
|- id="link-external" valign="top"
| width=“50%”|
+
|  
(External links)
+
(External links)  
  
Three ways to link to external (non-wiki) sources:
+
Three ways to link to external (non-wiki) sources:  
# Bare URL: http://www.wikipedia.org/ (bad style)
+
# Unnamed link: [http://www.wikipedia.org/] (only used within article body for footnotes)
+
# Named link: [http://www.wikipedia.org/ Wikipedia]
+
  
:See [[Wikipedia:InterWikimedia links]] for the list of shortcuts.
+
#Bare URL: http://www.wikipedia.org/ (bad style)
 +
#Unnamed link: [http://www.wikipedia.org/] (only used within article body for footnotes)
 +
#Named link: [http://www.wikipedia.org/ Wikipedia]
  
* 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.
+
:See [[wikipedia:InterWikimedia links]] for the list of shortcuts.
* In the [[Uniform Resource Locator|URL]], all symbols must be among:<br/>'''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 [[hexadecimal|hex]] code of the character, which can be found in the table of [[ASCII#ASCII printable characters|ASCII printable characters]]. For example, the caret character (^) would be encoded in a URL as '''%5E'''.
+
*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.  
* If the "named" version contains a closing square bracket "]", then you must use the [[HTML]] special character syntax, i.e. '''&amp;#93;''' otherwise the [[MediaWiki]] software will prematurely interpret this as the end of the external link.
+
*In the [[Uniform Resource Locator|URL]], all symbols must be among:<br>'''A-Z a-z 0-9 . _ \ / ~&nbsp;% - + &amp; #&nbsp;?&nbsp;! = ( ) @'''  
* 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:
+
*If a URL contains a character not in this list, it should be encoded by using a percent sign (%) followed by the [[Hexadecimal|hex]] code of the character, which can be found in the table of [[ASCII#ASCII_printable_characters|ASCII printable characters]]. For example, the caret character (^) would be encoded in a URL as '''%5E'''.  
** Markup: <nowiki><span
+
*If the "named" version contains a closing square bracket "]", then you must use the [[HTML]] special character syntax, i.e. '''&amp;#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: <nowiki><span
 
class="plainlinks neverexpand">
 
class="plainlinks neverexpand">
 
[http://www.sysinternals.com/
 
[http://www.sysinternals.com/
ntw2k/freeware/winobj.shtml WinObj]</span></nowiki>
+
ntw2k/freeware/winobj.shtml WinObj]</span></nowiki>  
** Display: <span class="plainlinks neverexpand"> [http://www.sysinternals.com/ntw2k/freeware/winobj.shtml WinObj]</span>
+
**Display: <span class="plainlinks neverexpand">[http://www.sysinternals.com/ntw2k/freeware/winobj.shtml WinObj]</span>
* See [[Wikipedia:External links|External links]] for style issues.
+
*See [[wikipedia:External links|External links]] for style issues.
| width=“50%”|
+
 
<code><nowiki>Three ways to link to external (non-wiki) sources:</nowiki></code><br />
+
|  
<code><nowiki># Bare URL: http://en.wikipedia.org/ (bad style)</nowiki></code><br />
+
<code><nowiki>Three ways to link to external (non-wiki) sources:</nowiki></code><br><code><nowiki># Bare URL: http://en.wikipedia.org/ (bad style)</nowiki></code><br><code><nowiki># Unnamed link: [http://en.wikipedia.org/] (only used within article body for footnotes)</nowiki></code><br><code><nowiki># Named link: [http://en.wikipedia.org Wikipedia]</nowiki></code><br>
<code><nowiki># Unnamed link: [http://en.wikipedia.org/] (only used within article body for footnotes)</nowiki></code><br />
+
 
<code><nowiki># Named link: [http://en.wikipedia.org Wikipedia]</nowiki></code><br />
+
 
|- id="wikimediatextlink" valign="top"
 
|- id="wikimediatextlink" valign="top"
| width=“50%”|
+
|  
(Wikimedia text link)
+
(Wikimedia text link)  
  
Linking to other wikis:
+
Linking to other wikis:  
# [[InterWiki]] link: [[Wiktionary:Hello]]
+
# Interwiki link without prefix: [[Wiktionary:Hello|Hello]]
+
# Named interwiki link: [[Wiktionary:Hello|Wiktionary definition of 'Hello']]
+
  
* All of these forms lead to the URL http://en.wiktionary.org/wiki/Hello
+
#[[InterWiki]] link: [[wiktionary:Hello]]
* Note that interwiki links use the ''internal'' link style.
+
#Interwiki link without prefix: [[wiktionary:Hello|Hello]]  
* See [[MetaWikiPedia:Interwiki_map]] for the list of shortcuts; if the site you want to link to is not on the list, use an external link ([[#link-external|see above]]).
+
#Named interwiki link: [[wiktionary:Hello|Wiktionary definition of 'Hello']]
* See also [[Wikipedia:Wikimedia sister projects|Wikimedia sister projects]].
+
  
Linking to another language's wiktionary:
+
*All of these forms lead to the URL http://en.wiktionary.org/wiki/Hello
# [[Wiktionary:fr:bonjour]]
+
*Note that interwiki links use the ''internal'' link style.
# [[Wiktionary:fr:bonjour|bonjour]]
+
*See [[metawikipedia:Interwiki map]] for the list of shortcuts; if the site you want to link to is not on the list, use an external link ([[#link-external|see above]]).
# [[Wiktionary:fr:bonjour|fr:bonjour]]
+
*See also [[wikipedia:Wikimedia sister projects|Wikimedia sister projects]].
  
* All of these forms lead to the URL http://fr.wiktionary.org/wiki/bonjour
+
Linking to another language's wiktionary:  
| width=“50%”|
+
<code><nowiki>Linking to other wikis:</nowiki></code><br />
+
<code><nowiki># [[InterWiki]] link: [[Wiktionary:Hello]]</nowiki></code><br />
+
<code><nowiki># Interwiki link without prefix: [[Wiktionary:Hello|]]</nowiki></code><br />
+
<code><nowiki># Named interwiki link: [[Wiktionary:Hello|Wiktionary definition of 'Hello']] </nowiki></code><br />
+
  
<code><nowiki>Linking to another language's wiktionary:</nowiki></code><br />
+
#[[wiktionary:fr:bonjour]]
 +
#[[wiktionary:fr:bonjour|bonjour]]
 +
#[[wiktionary:fr:bonjour|fr:bonjour]]
 +
 
 +
*All of these forms lead to the URL http://fr.wiktionary.org/wiki/bonjour
 +
 
 +
|
 +
<code><nowiki>Linking to other wikis:</nowiki></code><br><code><nowiki># [[InterWiki]] link: [[Wiktionary:Hello]]</nowiki></code><br><code><nowiki># Interwiki link without prefix: [[Wiktionary:Hello|]]</nowiki></code><br><code><nowiki># Named interwiki link: [[Wiktionary:Hello|Wiktionary definition of 'Hello']] </nowiki></code><br>
 +
 
 +
<code><nowiki>Linking to another language's wiktionary:</nowiki></code><br>
 +
 
 +
<code><nowiki># [[Wiktionary:fr:bonjour]]</nowiki></code><br><code><nowiki># [[Wiktionary:fr:bonjour|bonjour]]</nowiki></code><br><code><nowiki># [[Wiktionary:fr:bonjour|]]</nowiki></code><br>
  
<code><nowiki># [[Wiktionary:fr:bonjour]]</nowiki></code><br />
 
<code><nowiki># [[Wiktionary:fr:bonjour|bonjour]]</nowiki></code><br />
 
<code><nowiki># [[Wiktionary:fr:bonjour|]]</nowiki></code><br />
 
 
|- id="booksources" valign="top"
 
|- id="booksources" valign="top"
| width=“50%”|
+
|  
(Book sources)
+
(Book sources)  
  
ISBN 012345678X
+
ISBN 012345678X  
  
ISBN 0-12-345678-X
+
ISBN 0-12-345678-X  
  
Link to a book using [[Special:BookSources/0670037818|alternate text, such as its title]].
+
Link to a book using [[Special:BookSources/0670037818|alternate text, such as its title]].  
  
* Link to books using their [[Wikipedia:ISBN|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.
+
*Link to books using their [[wikipedia:ISBN|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.  
* To create a link to [[Special:BookSources|Book Sources]] using alternate text (e.g. the book's title), use the internal link style with the appropriate namespace.
+
*To create a link to [[Special:BookSources|Book Sources]] using alternate text (e.g. the book's title), use the internal link style with the appropriate namespace.
| width=“50%”|
+
<code><nowiki>ISBN 012345678X</nowiki></code>
+
  
<code><nowiki>ISBN 0-12-345678-X</nowiki></code>
+
|
 +
<code><nowiki>ISBN 012345678X</nowiki></code>
 +
 
 +
<code><nowiki>ISBN 0-12-345678-X</nowiki></code>  
  
 
<code><nowiki>[[Special:BookSources/0670037818|alternate text, such as its title]]</nowiki></code>
 
<code><nowiki>[[Special:BookSources/0670037818|alternate text, such as its title]]</nowiki></code>
 +
 
|- id="rfcnumber" valign="top"
 
|- id="rfcnumber" valign="top"
| width=“50%”|
+
|  
(RFC number)
+
(RFC number)  
  
Text mentioning an RFC number anywhere, e.g. RFC 4321.
+
Text mentioning an RFC number anywhere, e.g. RFC 4321.  
  
* Link to [[Internet Engineering Task Force]] [[Request for Comments|Request for Comments (RFCs)]].
+
*Link to [[Internet Engineering Task Force]] [[Request for Comments|Request for Comments (RFCs)]].
| width=“50%”|
+
 
 +
|  
 
<code><nowiki>Text mentioning an RFC number anywhere, e.g. RFC 4321.</nowiki></code>
 
<code><nowiki>Text mentioning an RFC number anywhere, e.g. RFC 4321.</nowiki></code>
 +
 
|- id="asoftag" valign="top"
 
|- id="asoftag" valign="top"
| width=“50%”|
+
|  
(“As of” tag)
+
(“As of” tag)  
  
 
“[[WP:As of|As of]]” tags like "As of April 2009" and "as of April 2009" categorize info that will need updating.
 
“[[WP:As of|As of]]” tags like "As of April 2009" and "as of April 2009" categorize info that will need updating.
| width=“50%”|
+
 
 +
|  
 
<code><nowiki>“[[WP:As of|As of]]” tags like "{{As of|2009|4|df=us}}" and "{{As of|2009|4|df=us|lc=on}}" categorize info that will need updating.</nowiki></code>
 
<code><nowiki>“[[WP:As of|As of]]” tags like "{{As of|2009|4|df=us}}" and "{{As of|2009|4|df=us|lc=on}}" categorize info that will need updating.</nowiki></code>
 +
 
|- id="medialink" valign="top"
 
|- id="medialink" valign="top"
| width=“50%”|
+
|  
(Media link)
+
(Media link)  
  
[[media:Classical guitar scale.ogg|Sound]]
+
[[Media:Family_Group_Record.pdf|Family Group Record PDF File]]  
  
*To include links to non image uploads such as sounds, use a "media" link. For images, [[#Images|see next section]].
+
*To include links to non image uploads such as PDF files, use a "media" link. For images, [[#Images|see next section]].
 +
 
 +
Some uploaded sounds are listed at [[commons:Sound]].
 +
 
 +
|
 +
<code><nowiki>[[media:Family Group Record.pdf|Family Group Record PDF file]]</nowiki></code>
  
Some uploaded sounds are listed at [[Commons:Sound]].
 
| width=“50%”|
 
<code><nowiki>[[media:Classical guitar scale.ogg|Sound]]</nowiki></code>
 
 
|- id="editlinks" valign="top"
 
|- id="editlinks" valign="top"
| width=“50%”|
+
|  
(Edit links)
+
(Edit links)  
  
 
Link directly to '''edit''' for an existing page, or apply other link attributes.  
 
Link directly to '''edit''' for an existing page, or apply other link attributes.  
* use <nowiki>{{fullurl:}}</nowiki>
+
 
* or use [[template:edit|<nowiki>{{template:edit}}</nowiki>]] which conceals the edit label for page printing  
+
*use <nowiki>{{fullurl:}}</nowiki>  
| width=“50%”|
+
*or use [[Template:Edit|<nowiki>{{template:edit}}</nowiki>]] which conceals the edit label for page printing
 +
 
 +
|  
 
<code><nowiki>{{fullurl:page name|action=edit}}</nowiki></code>
 
<code><nowiki>{{fullurl:page name|action=edit}}</nowiki></code>
 +
 
|}
 
|}
  
==Images==
+
== Images ==
Only images that have been uploaded to Wikipedia can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]].
+
 
 +
Only images that have been uploaded to Wikipedia can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]].  
  
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
! What it looks like
+
! What it looks like  
 
! What you type
 
! What you type
 
|- valign="top"
 
|- valign="top"
|A picture:  
+
| A picture:  
[[Image:wiki.png]]
+
[[Image:Wiki.png]]
|<pre>A picture:
+
<nowiki>[[Image:wiki.png]]</nowiki></pre>
+
  
 +
| <pre>A picture:
 +
[[Image:wiki.png]]</pre>
 
|- valign="top"
 
|- valign="top"
|With alternative text:
+
| With alternative text:  
[[Image:wiki.png|alt=Puzzle globe logo]]
+
[[Image:Wiki.png|Puzzle globe logo]]
|<pre>With alternative text:
+
 
<nowiki>[[Image:wiki.png|alt=Puzzle globe logo]]</nowiki></pre>
+
| <pre>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 [[Wikipedia:Alternative text for images|Alternative text for images]] for help on choosing it.
+
[[Image:wiki.png|alt=Puzzle globe logo]]</pre>
 +
*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 [[wikipedia:Alternative text for images|Alternative text for images]] for help on choosing it.
  
 
|- valign="top"
 
|- valign="top"
|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|alt=Puzzle globe logo|Wikipedia Encyclopedia]]<br clear=all>
+
[[Image:Wiki.png|frame]]<br>
|<pre>Floating to the right side of the page  
+
 
 +
| <pre>Floating to the right side of the page  
 
using the ''frame'' attribute and a caption:
 
using the ''frame'' attribute and a caption:
<nowiki>[[Image:wiki.png|frame|alt=Puzzle globe logo|Wikipedia Encyclopedia]]</nowiki></pre>
+
[[Image:wiki.png|frame|alt=Puzzle globe logo|Wikipedia Encyclopedia]]</pre>
* The frame tag automatically floats the image right.
+
*The frame tag automatically floats the image right.  
* The last parameter is the caption that appears below the image.
+
*The last parameter is the caption that appears below the image.
  
 
|- valign="top"
 
|- valign="top"
|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|alt=Puzzle globe logo|Wikipedia Encyclopedia]]<br clear=all>
+
[[Image:Wiki.png|thumb]]<br>
|<pre>Floating to the right side of the page  
+
 
 +
| <pre>Floating to the right side of the page  
 
using the ''thumb'' attribute and a caption:
 
using the ''thumb'' attribute and a caption:
<nowiki>[[Image:wiki.png|thumb|alt=Puzzle globe logo|Wikipedia Encyclopedia]]</nowiki></pre>
+
[[Image:wiki.png|thumb|alt=Puzzle globe logo|Wikipedia Encyclopedia]]</pre>
* The thumb tag automatically floats the image right.
+
*The thumb tag automatically floats the image right.  
* An enlarge icon is placed in the lower right corner.
+
*An enlarge icon is placed in the lower right corner.
  
 
|- valign="top"
 
|- valign="top"
|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]]
+
[[Image:Wiki.png|right|Wikipedia Encyclopedia]]
|<pre>Floating to the right side of the page
+
 
 +
| <pre>Floating to the right side of the page
 
''without'' a caption:
 
''without'' a caption:
<nowiki>[[Image:wiki.png|right|Wikipedia Encyclopedia]]</nowiki></pre>
+
[[Image:wiki.png|right|Wikipedia Encyclopedia]]</pre>
* The [[WP:PIC|picture tutorial]] explains more options.
+
*The [[WP:PIC|picture tutorial]] explains more options.
  
 
|- valign="top"
 
|- valign="top"
|A picture resized to 30 pixels...
+
| A picture resized to 30 pixels...  
[[Image:wiki.png|30 px|Wikipedia Encyclopedia]]
+
[[Image:Wiki.png|30px|Wikipedia Encyclopedia]]
|<pre>A picture resized to 30 pixels...
+
 
<nowiki>[[Image:wiki.png|30 px|Wikipedia Encyclopedia]]</nowiki></pre>
+
| <pre>A picture resized to 30 pixels...
* The [[WP:PIC|picture tutorial]] explains more options.
+
[[Image:wiki.png|30 px|Wikipedia Encyclopedia]]</pre>
 +
*The [[WP:PIC|picture tutorial]] explains more options.
  
 
|- valign="top"
 
|- valign="top"
|Linking directly to the description page of an image:
+
| Linking directly to the description page of an image:  
 
[[:Image:wiki.png]]
 
[[:Image:wiki.png]]
|<pre>Linking directly to the description page
+
 
 +
| <pre>Linking directly to the description page
 
of an image:
 
of an image:
<nowiki>[[:Image:wiki.png]]</nowiki></pre>
+
[[:Image:wiki.png]]</pre>
* Clicking on an image displayed on a page (such as any of the ones above) also leads to the description page.
+
*Clicking on an image displayed on a page (such as any of the ones above) also leads to the description page.
  
 
|- valign="top"
 
|- valign="top"
|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]]
+
[[Media:Wiki.png|Image of the jigsaw globe logo]]
|<pre>Linking directly to an image
+
without displaying it:
+
<nowiki>[[Media:wiki.png|Image of the jigsaw globe logo]]</nowiki></pre>
+
* To include links to images shown as links instead of drawn on the page, use a "media" link.
+
  
|- valign="top"
+
| <pre>Linking directly to an image
|Using the [[Span and div|span and div tag]] to separate images from text (note that this may allow images to cover text):
+
without displaying it:
|<pre><nowiki>Example:
+
[[Media:wiki.png|Image of the jigsaw globe logo]]</pre>
<div style="display:inline;
+
*To include links to images shown as links instead of drawn on the page, use a "media" link.
width:220px; float:right;">
+
Place images here </div></nowiki></pre>
+
  
|- valign="top"  
+
|- valign="top"
|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):  
+
| Using the [[Span and div|span and div tag]] to separate images from text (note that this may allow images to cover text):
|<pre><nowiki>Example: {| align=right
+
| <pre>Example:
|-
+
&lt;div style="display:inline;
|
+
width:220px; float:right;"&gt;
 +
Place images here &lt;/div&gt;</pre>
 +
|- valign="top"
 +
| 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):  
 +
| <pre>Example: {&#124; align=right
 +
&#124;-
 +
&#124;
 
Place images here
 
Place images here
 +
&#124;}
 +
</pre>
 
|}
 
|}
</nowiki></pre>
 
  
|}
+
See the Wikipedia's [[wikipedia:Image use policy|image use policy]] as a guideline used on Wikipedia.
  
See the Wikipedia's [[Wikipedia:Image use policy|image use policy]] as a guideline used on Wikipedia.
+
For further help on images, including some more versatile abilities, see the [[WP:PIC|picture tutorial]].  
  
For further help on images, including some more versatile abilities, see the [[WP:PIC|picture tutorial]].
+
=== Lists  ===
  
==Section headings==
+
Bullet or numbered lists can be created using Wiki text.
{{further|[[Help:Section]]}}
+
Use headings to split articles into sections. Put a heading on a separate line. A level-two heading is the highest level editors use in an article.
+
  
{| class="wikitable" border="1"
+
[[Help:Formatting]]
! style="width: 50%" | What it looks like
+
! style="width: 50%" | What you type
+
|-
+
|
+
<div style="font-size:150%;border-bottom:1px solid rgb(170,170,170);">Section headings</div>
+
  
''Headings'' organize your writing into sections.
+
== Section headings  ==
The Wiki software can automatically generate
+
a [[Help:Section|table of contents]] from them.
+
  
<div style="font-size:132%;font-weight:bold;">Subsection</div>
+
Headings are used to split articles into sections.
Using more equals signs creates a subsection.
+
  
<div style="font-size:116%;font-weight:bold;">A smaller subsection</div>
+
[[Help:Section]]
  
Start with 2 equals signs.
+
== Text formatting  ==
Don't skip levels, like from two to four equals signs.
+
  
|<pre>
+
You can format your text using wiki markup.
==Section headings==
+
  
''Headings'' organize your writing into sections.
+
[[Help:Formatting]]
The Wiki software can automatically generate
+
a table of contents from them.
+
  
==Subsection==
+
=== Special characters  ===
  
Using more equals signs creates a subsection.
+
Symbols and other special characters can be inserted using Wiki text.
  
===A smaller subsection===
+
[[Help:Special characters]]
Start with 2 equals signs.
+
Don't skip levels, like from two to four equals signs.
+
</pre>
+
|-
+
|'''Horizontal line'''
+
Separating with a horizontal dividing line:<br/>
+
:this is above it...
+
----
+
:...and this is below it.
+
  
If you don't use a section header, you don't get a TOC entry.
+
== No or limited formatting  ==
|<pre><nowiki>A horizontal dividing line:
+
'''''—showing exactly what is being typed'''''
this is above it...
+
A few different kinds of formatting will tell the Wiki to display things as you typed them — what you see, is what you get!
----
+
...and this is below it.
+
</nowiki></pre>
+
|}
+
  
==Text formatting==
 
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
! style="width: 50%" | What it looks like
 
! style="width: 50%" | What you type
 
 
|-
 
|-
|
+
! What it looks like  
; [[w:Newline|Newline]]:
+
 
+
A single
+
newline
+
has no
+
effect on the
+
layout.
+
 
+
But an empty line
+
starts a new paragraph,
+
or ends a list or indented part.
+
(<nowiki><p></nowiki> disables this paragraphing until <nowiki></p></nowiki> or the end  of the section)
+
 
+
A semicolon at the start of a line is not displayed, but has the effect of rendering the newline. A colon in such a line is not rendered, but has the effect of starting a new, indented line.
+
 
+
You can make the wikitext more readable by putting in newlines, but see [[Wikipedia:Don't use line breaks]] for possible problems.
+
 
+
* When used in a list, a newline ''does'' affect the layout (See [[Help:List]]).
+
|<pre><nowiki>
+
 
+
A single
+
newline
+
has no
+
effect on the
+
layout.
+
 
+
But an empty line
+
starts a new paragraph.</nowiki></pre>
+
|-
+
|You can break lines<br />
+
without starting a new paragraph.<p>
+
(The HTML tag <nowiki><br /></nowiki> is sufficient. The system produces the XHTML code <nowiki><br&nbsp;/></nowiki>.)</p>
+
 
+
* Please use this sparingly.
+
* Close markup between lines; do not start a [[Help:link|link]] or ''italics'' or '''bold''' on one line and close it on the next.
+
|<pre><nowiki>You can break lines<br />
+
without starting a new paragraph.</nowiki></pre>
+
|-
+
|
+
When there is a need for separating a block of text
+
<blockquote>
+
the '''blockquote''' command will indent both margins when needed instead of the left margin only as the colon does.
+
</blockquote>
+
This is useful for (as the name says) inserting blocks of quoted (and cited) text.
+
|
+
<pre><nowiki>
+
<blockquote>
+
The '''blockquote''' command will indent
+
both margins when needed instead of the
+
left margin only as the colon does.
+
</blockquote>
+
</nowiki></pre>
+
|-
+
|<center>Centered text.</center>
+
|<pre><nowiki><center>Centered text.</center></nowiki></pre>
+
|}
+
 
+
===Lists===
+
{| class="wikitable" border="1"
+
! style="width: 50%" | What it looks like
+
! style="width: 50%" | What you type
+
|- id="lists"
+
|
+
* ''Unordered [[Help:List|list]]s'' are easy to do:
+
** Start every line with a star.
+
*** More stars indicate a deeper level.
+
*: Previous item continues.
+
** A new line
+
* in a list
+
marks the end of the list.
+
*Of course you can start again.
+
|<pre>
+
* ''Unordered lists'' are easy to do:
+
** Start every line with a star.
+
*** More stars indicate a deeper level.
+
*: Previous item continues.
+
** A new line
+
* in a list
+
marks the end of the list.
+
* Of course you can start again.
+
</pre>
+
|-
+
|
+
# ''Numbered lists'' are:
+
## Very organized
+
## Easy to follow
+
#: Previous item continues
+
A new line marks the end of the list.
+
# New numbering starts with 1.
+
 
+
|<pre>
+
# ''Numbered lists'' are:
+
## Very organized
+
## Easy to follow
+
#: Previous item continues
+
A new line marks the end of the list.
+
# New numbering starts with 1.
+
</pre>
+
|}
+
 
+
==Character formatting==
+
{| class="wikitable" border="1"
+
|- valign="top"
+
! What it looks like
+
 
! What you type
 
! What you type
|- id="emph" valign="top"
 
|You can ''italicize text'' by putting 2
 
apostrophes on each side.
 
 
3 apostrophes will '''bold the text'''.
 
 
5 apostrophes will '''bold''' and ''italicize''
 
'''''the text'''''.
 
|<pre>
 
You can ''italicize text'' by putting 2
 
apostrophes on each side.
 
 
3 apostrophes will '''bold the text'''.
 
 
5 apostrophes will '''bold''' and ''italicize''
 
'''''the text'''''.
 
</pre>
 
|- valign="top"
 
|
 
[[mw:Extension:SyntaxHighlight GeSHi|Syntax highlighting]] for source code.
 
 
Computer code has a colored background
 
and more stringent formatting. Suppose we
 
want to define <code>int main()</code>:
 
<source lang=cpp>#include <iostream>
 
int main ( int argc,  char **argv ) {
 
    std::cout << "Hello World!";
 
    return 0;
 
}</source>
 
|
 
<pre><nowiki>
 
Computer code has a colored background
 
and more stringent formatting. Suppose we
 
want to define &lt;code&gt;int  main()&lt;/code&gt;:
 
 
<source lang=cpp>#include <iostream>
 
int main ( int argc,  char **argv ) {
 
    std::cout << "Hello World!";
 
    return 0;
 
}</source>
 
</nowiki></pre>
 
|- valign=top
 
|
 
You can use <small>small text</small> for captions.
 
|
 
<pre><nowiki>
 
You can use <small>small text</small> for captions.
 
</nowiki></pre>
 
|- valign="top"
 
|
 
Better stay away from <big>big text</big>, unless
 
<small> it's <big>within</big> small</small> text.
 
|
 
<pre><nowiki>
 
Better stay away from <big>big text</big>, unless
 
<small> it's <big>within</big> small</small> text.
 
</nowiki></pre>
 
|- valign="top"
 
|
 
You can <s>strike out deleted material</s>
 
and <u>underline new material</u>. <small>([[Template:Double underline|{{du|Double underlining}}]] is also possible.)</small>
 
 
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 Wikipedia 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.
 
|
 
<pre><nowiki>
 
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.
 
</nowiki></pre>
 
 
|-
 
|-
|
+
| '''&lt;nowiki&gt; tag:'''<br>
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.&nbsp;Smith'' or ''400&nbsp;km/h'' using '''<code>&amp;nbsp;</code>''' in place of a regular space between the two "words" that need to behave as a single word (never be separated on different lines).
+
 
+
|
+
<br />
+
<pre>Mr.&amp;nbsp;Smith or 400&amp;nbsp;km/h.</pre>
+
|-
+
|
+
'''Extra spacing''' within text can best be achieved using the [[Template:Pad|pad]] template:
+
 
+
Mary {{pad|4em}} had a little lamb.
+
|
+
<br />
+
<pre><nowiki>Mary {{pad|4em}} had a little lamb.
+
</nowiki></pre>
+
|-
+
|
+
'''Typewriter font'''
+
(does not work beyond the end of a paragraph):<br>
+
<tt>arrow      &rarr;</tt>
+
 
+
<tt>''italics''</tt>
+
<tt>[[link]]
+
 
+
New paragraph.</tt>
+
|
+
<pre><nowiki><tt>arrow      &amp;rarr;</tt>
+
 
+
<tt>''italics''</tt>
+
<tt>[[link]]</nowiki>
+
 
+
New paragraph.</tt></pre>
+
|}
+
 
+
===Special characters===
+
{| class="wikitable" border="1"
+
|- valign="top"
+
! What it looks like
+
! What you type
+
|- valign="top"
+
|
+
'''<span id="diacritics">Diacritical marks:</span>'''
+
<br/>
+
À Á Â Ã Ä Å <br/>
+
Æ Ç È É Ê Ë <br/>
+
Ì Í
+
Î Ï Ñ Ò <br/>
+
Ó Ô Õ
+
Ö Ø Ù <br/>
+
Ú Û Ü ß
+
à á <br/>
+
â ã ä å æ
+
ç <br/>
+
è é ê ë ì í<br/>
+
î ï ñ ò ó ô <br/>
+
œ õ
+
ö ø ù ú <br/>
+
û ü ÿ
+
 
+
* See [[Help:Special characters]].
+
|
+
<br/>
+
<pre><nowiki>
+
&amp;Agrave; &amp;Aacute; &amp;Acirc; &amp;Atilde; &amp;Auml; &amp;Aring;
+
&amp;AElig; &amp;Ccedil; &amp;Egrave; &amp;Eacute; &amp;Ecirc; &amp;Euml;
+
&amp;Igrave; &amp;Iacute; &amp;Icirc; &amp;Iuml; &amp;Ntilde; &amp;Ograve;
+
&amp;Oacute; &amp;Ocirc; &amp;Otilde; &amp;Ouml; &amp;Oslash; &amp;Ugrave;
+
&amp;Uacute; &amp;Ucirc; &amp;Uuml; &amp;szlig; &amp;agrave; &amp;aacute;
+
&amp;acirc; &amp;atilde; &amp;auml; &amp;aring; &amp;aelig; &amp;ccedil;
+
&amp;egrave; &amp;eacute; &amp;ecirc; &amp;euml; &amp;igrave; &amp;iacute;
+
&amp;icirc; &amp;iuml; &amp;ntilde; &amp;ograve; &amp;oacute; &amp;ocirc;
+
&amp;oelig; &amp;otilde; &amp;ouml; &amp;oslash; &amp;ugrave; &amp;uacute;
+
&amp;ucirc; &amp;uuml; &amp;yuml;
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Punctuation:'''
+
<br/>
+
¿ ¡ § ¶<br/>
+
† ‡ • &ndash; &mdash;<br/>
+
‹ › « »<br/>
+
‘ ’ “ ”
+
|
+
<br/>
+
<pre><nowiki>
+
&amp;iquest; &amp;iexcl; &amp;sect; &amp;para;
+
&amp;dagger; &amp;Dagger; &amp;bull; &amp;ndash; &amp;mdash;
+
&amp;lsaquo; &amp;rsaquo; &amp;laquo; &amp;raquo;
+
&amp;lsquo; &amp;rsquo; &amp;ldquo; &amp;rdquo;
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Commercial symbols:'''
+
<br/>
+
™ © ® ¢ € ¥<br/>
+
£ ¤
+
|
+
<br/>
+
<pre><nowiki>
+
&amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;
+
&amp;pound; &amp;curren;
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Subscripts:'''
+
<br/>
+
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₉
+
 
+
'''Superscripts:'''
+
<br/>
+
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⁹
+
 
+
'''Combined:'''
+
<br/>
+
ε<sub>0</sub> = 8.85 &times; 10<sup>&minus;12</sup> C² / J m.
+
<br/>
+
1 [[hectare]] = [[1 E4 m&sup2;]]
+
 
+
*The [[Wikipedia:Manual of Style (mathematics)#Superscripts and subscripts|Manual of Style]] prefers the <nowiki>x<sub>1</sub></nowiki> format.
+
*The latter methods of sub/superscripting cannot be used in the most general context, as they rely on Unicode support which may not be present on all users' machines. For the 1-2-3 superscripts, it is nevertheless preferred when possible (as with units of measurement) because most browsers have an easier time formatting lines with it.
+
 
+
|
+
<br/>
+
<pre><nowiki>
+
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or
+
x&amp;#8320; x&amp;#8321; x&amp;#8322; x&amp;#8323; x&amp;#8324;
+
x&amp;#8325; x&amp;#8326; x&amp;#8327; x&amp;#8328; x&amp;#8329;
+
</nowiki></pre>
+
 
+
<pre><nowiki>
+
x<sup>1</sup> x<sup>2</sup> x<sup>3</sup> or
+
x&amp;#8304; x&amp;sup1; x&amp;sup2; x&amp;sup3; x&amp;#8308;
+
x&amp;#8309; x&amp;#8310; x&amp;#8311; x&amp;#8312; x&amp;#8313;
+
</nowiki></pre>
+
 
+
<pre><nowiki>
+
&amp;epsilon;<sub>0</sub> = 8.85 &amp;times;
+
10<sup>&amp;minus;12</sup> C&amp;sup2; / J m.
+
 
+
1 [[hectare]] = [[1 E4 m&amp;sup2;]]
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Greek characters:'''
+
<br/>
+
α β γ δ ε ζ<br/>
+
η θ ι κ λ μ ν<br/>
+
ξ ο π ρ σ ς<br/>
+
τ υ φ χ ψ ω<br/>
+
Γ Δ Θ Λ Ξ Π<br/>
+
Σ Φ Ψ Ω
+
|
+
<br/>
+
<pre><nowiki>
+
&amp;alpha; &amp;beta; &amp;gamma; &amp;delta; &amp;epsilon; &amp;zeta;
+
&amp;eta; &amp;theta; &amp;iota; &amp;kappa; &amp;lambda; &amp;mu; &amp;nu;
+
&amp;xi; &amp;omicron; &amp;pi; &amp;rho; &amp;sigma; &amp;sigmaf;
+
&amp;tau; &amp;upsilon; &amp;phi; &amp;chi; &amp;psi; &amp;omega;
+
&amp;Gamma; &amp;Delta; &amp;Theta; &amp;Lambda; &amp;Xi; &amp;Pi;
+
&amp;Sigma; &amp;Phi; &amp;Psi; &amp;Omega;
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Mathematical characters:'''
+
<br/>
+
∫ ∑ ∏ √ &minus; ± ∞<br/>
+
≈ ∝ ≡ ≠ ≤ ≥<br/>
+
&times; · ÷ ∂ &prime; &Prime;<br/>
+
∇ ‰ ° ∴ ℵ ø<br/>
+
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇<br/>
+
¬ ∧ ∨ ∃ ∀<br/>
+
⇒ ⇐ ⇓ ⇑ ⇔<br/>
+
→ ↓ ↑ ← ↔<br/>
+
* See also [[Wikipedia:WikiProject Mathematics|WikiProject Mathematics]] and [[TeX]].
+
|
+
<br/>
+
<pre><nowiki>
+
&amp;int; &amp;sum; &amp;prod; &amp;radic; &amp;minus; &amp;plusmn; &amp;infin;
+
&amp;asymp; &amp;prop; &amp;equiv; &amp;ne; &amp;le; &amp;ge;
+
&amp;times; &amp;middot; &amp;divide; &amp;part; &amp;prime; &amp;Prime;
+
&amp;nabla; &amp;permil; &amp;deg; &amp;there4; &amp;alefsym; &amp;oslash;
+
&amp;isin; &amp;notin; &amp;cap; &amp;cup; &amp;sub; &amp;sup; &amp;sube; &amp;supe;
+
&amp;not; &amp;and; &amp;or; &amp;exist; &amp;forall;
+
&amp;rArr; &amp;lArr; &amp;dArr; &amp;uArr; &amp;hArr;
+
&amp;rarr; &amp;darr; &amp;uarr; &amp;larr; &amp;harr;
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Mathematical formulae:'''
+
<br/>
+
<math>\,\! \sin x + \ln y</math><br>
+
{{math|sin ''x'' + ln ''y''}}
+
 
+
<math>\mathbf{x} = \mathbf{0}</math><br>
+
{{math|<b>x</b> {{=}} <b>0</b>}}
+
 
+
* Complex formulae should use [[Help:Displaying a formula|<code>&lt;math&gt;</code> markup]].
+
* Simple formulae may use either <code>&lt;math&gt;</code> markup or HTML/wiki markup using the <code >{{tl|math}}</code > template with <code>&lt;i&gt;</code> and <code>&lt;b&gt;</code> or <code><nowiki>''</nowiki></code> and <code><nowiki>'''</nowiki></code> for formatting.  Make sure to replace <code>=</code> with <code>{{tl|{{=}}}}</code>.
+
* Ordinary text should use [[#emph|wiki markup for emphasis]]. However, mathematical formulae often use italics, and sometimes use bold, for reasons unrelated to emphasis. Per [[Wikipedia:Manual of Style (mathematics)#Using HTML|Wikipedia:Manual of Style (mathematics)]], wiki markup (<code><nowiki>''</nowiki></code> and <code><nowiki>'''</nowiki></code>) is preferred over HTML markup (<code>&lt;i&gt;</code> and <code>&lt;b&gt;</code>), but both are allowed.
+
|
+
<br/>
+
<pre><nowiki>
+
<math>\,\! \sin x + \ln y</math><br>
+
{{math|sin ''x'' + ln ''y''}}
+
 
+
<math>\mathbf{x} = \mathbf{0}</math><br>
+
{{math|<b>x</b> {{=}} <b>0</b>}}
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Spacing in simple math formulae:'''
+
<br/>
+
Obviously, {{math|''x''<sup>2</sup> ≥ 0}} is true when {{math|''x''}} is a real number.
+
* Using '''<code>&amp;nbsp;</code>''' to prevent linebreak is not needed; the <code>{{tl|math}}</code> template will prevent line breaks anyway; you can use <code>&lt;br></code> if you need an explicit line break inside a formula. 
+
|
+
<br/>
+
<pre><nowiki>
+
Obviously, {{math|''x<''<sup>2</sup> ≥ 0}} is true
+
when {{math|<VAR >x</VAR >}} is a real number.
+
</nowiki></pre>
+
|- valign="top"
+
|
+
'''Complicated formulae:'''
+
<br/>
+
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
+
* See [[Help:Displaying a formula]] for how to use <tt>&lt;math></tt>.
+
* A formula displayed on a line by itself should probably be indented by using the colon (:) character.
+
|
+
<br/>
+
<pre><nowiki>
+
: <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
+
</nowiki></pre>
+
|}
+
''(see also: [[Chess symbols in Unicode]])''
+
 
+
==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!
+
 
+
{| class="wikitable" border="1"
+
|-
+
!What it looks like
+
!What you type
+
|-
+
|'''&lt;nowiki&gt; tag:'''<br/>
+
 
<nowiki>
 
<nowiki>
 
The nowiki tag ignores [[Wiki]] ''markup''.
 
The nowiki tag ignores [[Wiki]] ''markup''.
It reformats text by removing newlines   and multiple spaces.
+
It reformats text by removing newlines and multiple spaces.
 
It still interprets special characters: &rarr;
 
It still interprets special characters: &rarr;
 
</nowiki>
 
</nowiki>
|<pre><nowiki>
+
 
&lt;nowiki&gt;
+
| <pre>&lt;nowiki&gt;
 
The nowiki tag ignores [[Wiki]] ''markup''.
 
The nowiki tag ignores [[Wiki]] ''markup''.
 
It reformats text by removing newlines  
 
It reformats text by removing newlines  
Line 998: Line 564:
 
characters: &amp;rarr;
 
characters: &amp;rarr;
 
&lt;/nowiki&gt;
 
&lt;/nowiki&gt;
</nowiki></pre>
+
</pre>
 
|-
 
|-
|'''&lt;pre&gt; tag:'''</br>
+
| '''&lt;pre&gt; tag:'''<br><pre>The pre tag ignores [[Wiki]] ''markup''.
<pre>
+
The pre tag ignores [[Wiki]] ''markup''.
+
 
It also doesn't    reformat text.
 
It also doesn't    reformat text.
It still interprets special characters: &rarr;
+
It still interprets special characters:
 
</pre>
 
</pre>
|<pre>&lt;pre&gt;<nowiki>
+
| <pre>&lt;pre&gt;
 
The pre tag ignores [[Wiki]] ''markup''.
 
The pre tag ignores [[Wiki]] ''markup''.
 
It also doesn't    reformat text.
 
It also doesn't    reformat text.
 
It still interprets special characters:
 
It still interprets special characters:
 
  &amp;rarr;
 
  &amp;rarr;
</nowiki>&lt;/pre&gt;</pre>
+
&lt;/pre&gt;</pre>
 
|-
 
|-
|'''Leading space:'''<br/>
+
| '''Leading space:'''<br>
Leading spaces are another way  
+
Leading spaces are another way to preserve formatting.  
to preserve formatting.
+
  
 +
<br>
  
 
  Putting a space at the beginning of each line
 
  Putting a space at the beginning of each line
Line 1,022: Line 586:
 
  It still interprets [[Wiki]] ''markup'' and
 
  It still interprets [[Wiki]] ''markup'' and
 
  special characters: →
 
  special characters: →
|<pre><nowiki>
+
 
Leading spaces are another way  
+
| <pre>Leading spaces are another way  
 
to preserve formatting.
 
to preserve formatting.
 
  Putting a space at the beginning of each line
 
  Putting a space at the beginning of each line
Line 1,029: Line 593:
 
  It still interprets [[Wiki]] ''markup'' and
 
  It still interprets [[Wiki]] ''markup'' and
 
  special characters: &amp;rarr;
 
  special characters: &amp;rarr;
</nowiki></pre>
+
</pre>
 
|}
 
|}
  
==Invisible text (comments)==
+
== Invisible text (comments) ==
It's uncommon, but on occasion acceptable for notes to other editors ( see [[Wikipedia:Manual of Style#Invisible comments|MOS]] ), to add a hidden comment within the text of an article. These comments are only visible when editing or viewing the source of a page. Most comments should go on the appropriate [[Wikipedia:Talk page|Talk page]]. <!-- This is an example of text that won't normally be visible except in "edit" mode. --> The format is to surround the hidden text with '<!--' and '-->' and may cover several lines, e.g.:
+
 
 +
It's uncommon, but on occasion acceptable for notes to other editors ( see [[wikipedia:Manual of Style|MOS]] ), to add a hidden comment within the text of an article. These comments are only visible when editing or viewing the source of a page. Most comments should go on the appropriate [[wikipedia:Talk page|Talk page]]. <!-- This is an example of text that won't normally be visible except in "edit" mode. -->The format is to surround the hidden text with '<!--' and '-->' and may cover several lines, e.g.:  
 +
 
 
  <nowiki><!-- An example of hidden comments
 
  <nowiki><!-- An example of hidden comments
 
  This won't be visible except in "edit" mode. --></nowiki>
 
  This won't be visible except in "edit" mode. --></nowiki>
 +
  
==Table of contents==
+
== Table of contents ==
When a page has at least four headings, a table of contents (TOC) will appear in front of the first header (after the lead). Putting <nowiki>__TOC__</nowiki> anywhere forces the TOC to appear at that point (instead of just before the first heading). Putting <nowiki>__NOTOC__</nowiki> anywhere forces the TOC to disappear. See also [[Wikipedia:Section#Compact_TOC|Compact TOC]] for alphabet and year headings.
+
 
 +
When a page has at least four headings, a table of contents (TOC) will appear in front of the first header (after the lead). Putting <nowiki>__TOC__</nowiki> anywhere forces the TOC to appear at that point (instead of just before the first heading). Putting <nowiki>__NOTOC__</nowiki> anywhere forces the TOC to disappear. See also [[wikipedia:Section|Compact TOC]] for alphabet and year headings.  
 +
 
 +
== Tables  ==
  
==Tables==
 
 
There are two ways to build tables:  
 
There are two ways to build tables:  
*in special Wiki-markup (see [[Help:Table|Table]])
+
 
 +
*in special Wiki-markup (see [[Help:Table|Table]])  
 
*Using HTML elements: &lt;table&gt;, &lt;tr&gt;, &lt;td&gt; or &lt;th&gt;.
 
*Using HTML elements: &lt;table&gt;, &lt;tr&gt;, &lt;td&gt; or &lt;th&gt;.
  
For the latter, and a discussion on when tables are appropriate, see [[Wikipedia:When to use tables|When to use tables]].
+
For the latter, and a discussion on when tables are appropriate, see [[wikipedia:When to use tables|When to use tables]].  
  
==Variables==
+
== Templates and Transcluding Pages  ==
''(See also [[mw:help:magic_words|Variable]])''
+
{| style="text-align:center"
+
|-
+
! Code
+
! Effect
+
|-
+
| <nowiki>{{CURRENTWEEK}}</nowiki> || {{CURRENTWEEK}}
+
|-
+
| <nowiki>{{CURRENTDOW}}</nowiki> || {{CURRENTDOW}}
+
|-
+
| <nowiki>{{CURRENTMONTH}}</nowiki> || {{CURRENTMONTH}}
+
|-
+
| <nowiki>{{CURRENTMONTHNAME}}</nowiki>
+
| {{CURRENTMONTHNAME}}
+
|-
+
| <nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki>
+
| {{CURRENTMONTHNAMEGEN}}
+
|-
+
| <nowiki>{{CURRENTDAY}}</nowiki> || {{CURRENTDAY}}
+
|-
+
| <nowiki>{{CURRENTDAYNAME}}</nowiki> || {{CURRENTDAYNAME}}
+
|-
+
| <nowiki>{{CURRENTYEAR}}</nowiki> || {{CURRENTYEAR}}
+
|-
+
| <nowiki>{{CURRENTTIME}}</nowiki> || {{CURRENTTIME}}
+
|-
+
| <nowiki>{{NUMBEROFARTICLES}}</nowiki>
+
| {{NUMBEROFARTICLES}}
+
|-
+
| <nowiki>{{NUMBEROFUSERS}}</nowiki>
+
| {{NUMBEROFUSERS}}
+
|-
+
| <nowiki>{{PAGENAME}}</nowiki> || {{PAGENAME}}
+
|-
+
| <nowiki>{{NAMESPACE}}</nowiki> || {{NAMESPACE}}
+
|-
+
| <nowiki>{{REVISIONID}}</nowiki> || {{REVISIONID}}
+
|-
+
| <nowiki>{{localurl:pagename}}</nowiki>
+
| {{localurl:pagename}}
+
|-
+
| <nowiki>{{localurl:</nowiki>''Wikipedia:Sandbox''<nowiki>|action=edit}}</nowiki>
+
| {{localurl:Wikipedia:Sandbox|action=edit}}
+
|-
+
| <nowiki>{{fullurl:pagename}}</nowiki>
+
| {{fullurl:pagename}}
+
|-
+
| <nowiki>{{fullurl:pagename|</nowiki>''query_string''<nowiki>}}</nowiki>
+
| {{fullurl:pagename|query_string}}
+
|-
+
| <nowiki>{{SERVER}}</nowiki> || {{SERVER}}
+
|-
+
| <nowiki>{{ns:1}}</nowiki> || {{ns:1}}
+
|-
+
| <nowiki>{{ns:2}}</nowiki> || {{ns:2}}
+
|-
+
| <nowiki>{{ns:3}}</nowiki> || {{ns:3}}
+
|-
+
| <nowiki>{{ns:4}}</nowiki> || {{ns:4}}
+
|-
+
| <nowiki>{{ns:5}}</nowiki> || {{ns:5}}
+
|-
+
| <nowiki>{{ns:6}}</nowiki> || {{ns:6}}
+
|-
+
| <nowiki>{{ns:7}}</nowiki> || {{ns:7}}
+
|-
+
| <nowiki>{{ns:8}}</nowiki> || {{ns:8}}
+
|-
+
| <nowiki>{{ns:9}}</nowiki> || {{ns:9}}
+
|-
+
| <nowiki>{{ns:10}}</nowiki> || {{ns:10}}
+
|-
+
| <nowiki>{{ns:11}}</nowiki> || {{ns:11}}
+
|-
+
| <nowiki>{{ns:12}}</nowiki> || {{ns:12}}
+
|-
+
| <nowiki>{{ns:13}}</nowiki> || {{ns:13}}
+
|-
+
| <nowiki>{{ns:14}}</nowiki> || {{ns:14}}
+
|-
+
| <nowiki>{{ns:15}}</nowiki> || {{ns:15}}
+
|-
+
| <nowiki>{{SITENAME}}</nowiki> || {{SITENAME}}
+
|}
+
  
'''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.
+
{{main|Wikipedia:Transclusion}}
  
'''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.
+
'''[[Help:Template|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 <nowiki>{{double braces}}</nowiki>. It is also possible to transclude other pages by using <nowiki>{{:colon and double braces}}</nowiki>.  
  
In languages where it makes a difference, you can use constructs like <nowiki>{{grammar:case|word}}</nowiki> to convert a word from the nominative case to some other case. For example, <nowiki>{{grammar:genitive|{{CURRENTMONTHNAME}}}}</nowiki> means the same as <nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki>. <!-- Is there a reference for this, other than the source code (for example, phase3/languages/Lnaguage*.php) ? -->
+
There are three pairs of [[Html element|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'''".  
  
==Templates and Transcluding Pages==
+
*'''<nowiki><noinclude></nowiki>: '''the content '''will not be rendered ''there'''''. These tags have no effect ''here''.
{{main|Wikipedia:Transclusion}}
+
*'''<nowiki><includeonly></nowiki>: '''the content '''will render only ''there''''', and '''will not render ''here''''' (like [[Invisible ink]] made visible by means of transclusion).
 +
*'''<nowiki><onlyinclude></nowiki>: '''the content '''will render ''here''''' and '''will render ''there''''', but it will only render ''there'' what is between these tags.
  
'''[[Help:Template|Templates]]''' are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page.
+
There can be several such section "[[HTML#Elements|elements]]". Also, they can be nested. All possible renderings are achievable. For example, to render ''there'' one or more sections of the page ''here'' use '''<nowiki><onlyinclude></nowiki>''' tags. To append text ''there'', wrap the addition in '''<nowiki><includeonly></nowiki>''' tags above, within, or below the section. To omit portions of the section, nest '''<nowiki><noinclude></nowiki>''' tags within it.  
You add them by putting the template's name in <nowiki>{{double braces}}</nowiki>. It is also possible to transclude other pages by using <nowiki>{{:colon and double braces}}</nowiki>.
+
  
There are three pairs of [[html element|tags]] that can be used in [[wikitext]] to control how transclusion affects parts of a template or article.
+
If a page is transcluded without transclusion markup, it may cause an unintentional [[Help:Category#Putting_pages_in_categories|categorization]]. Any page transcluding it will contain the same category as the original page. Wrap the category markup with '''<nowiki><noinclude></nowiki>''' tags to prevent incorrect categorization.  
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'''".
+
*'''<nowiki><noinclude></nowiki>: ''' the content '''will not be rendered ''there'''''. These tags have no effect ''here''.
+
*'''<nowiki><includeonly></nowiki>: ''' the content  '''will render only ''there''''', and  '''will not render ''here''''' (like [[invisible ink]] made visible by means of transclusion).
+
*'''<nowiki><onlyinclude></nowiki>: '''the content '''will render ''here''''' and '''will render ''there''''', but it will only render ''there'' what is between these tags.
+
There can be several such section "[[HTML#Elements|elements]]". Also, they can be nested.  All possible renderings are achievable. For example, to render ''there'' one or more sections of the page ''here'' use '''<nowiki><onlyinclude></nowiki>''' tags.  To append text ''there'', wrap the addition in '''<nowiki><includeonly></nowiki>''' tags  above, within, or below the section. To omit portions of the section, nest '''<nowiki><noinclude></nowiki>''' tags within it.
+
  
If a page is transcluded without transclusion markup,
+
Some templates take ''parameters'', as well, which you separate with the pipe character.  
it may cause an unintentional [[Help:Category#Putting_pages_in_categories|categorization]].
+
Any page transcluding it will contain the same category as the original page.
+
Wrap the category markup with '''<nowiki><noinclude></nowiki>''' tags to prevent incorrect categorization.
+
 
+
Some templates take ''parameters'', as well, which you separate with the pipe character.
+
  
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
!width="1000"|What it looks like
 
!width="500"|What you type
 
 
|-
 
|-
|
+
! width="1000" | What it looks like
{{Transclusion demo}}
+
! width="500" | What you type
|<pre>
+
|-
 +
|  
 
{{Transclusion demo}}
 
{{Transclusion demo}}
 +
 +
| <pre>{{Transclusion demo}}
 
</pre>
 
</pre>
 
|-
 
|-
|
+
|  
{{Help:Transclusion Demo}}
+
|<pre>
+
 
{{Help:Transclusion Demo}}
 
{{Help:Transclusion Demo}}
 +
 +
| <pre>{{Help:Transclusion Demo}}
 
</pre>
 
</pre>
 
|-
 
|-
|
+
|  
 
+
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:
+
  
 
{{H:title|This is the hover text|
 
{{H:title|This is the hover text|
Hover your mouse over this text}}
+
Hover your mouse over this text}}  
  
Go to this page to see the H:title template
+
Go to this page to see the H:title template itself: {{tl|H:title}}
itself: {{tl|H:title}}
+
  
|<pre>
+
| <pre>This template takes two parameters, and
This template takes two parameters, and
+
 
creates underlined text with a hover box
 
creates underlined text with a hover box
 
for many modern browsers supporting CSS:
 
for many modern browsers supporting CSS:
  
{{H:title|This is the hover text|
+
{{H:title&#124;This is the hover text&#124;
 
Hover your mouse over this text}}
 
Hover your mouse over this text}}
  
 
Go to this page to see the H:title template
 
Go to this page to see the H:title template
itself: {{tl|H:title}}
+
itself: {{tl&#124;H:title}}
 
</pre>
 
</pre>
 
|}
 
|}
  
==HTML==
+
== Variables  ==
Many [[HTML]] tags can be used in in Wiki markup, see [[Help:HTML in wikitext]] for a list.
+
 
 +
Variables are supported. They are often used in creating [[Help:Templates|templates]]. See a list at [[Help:Magic words#Variables|Help:Magic words]].
 +
 
 +
== HTML  ==
 +
 
 +
Many {{Wpd|HTML}} tags can be used in in Wiki markup, see [[Help:Formatting#HTML|Help:Formatting]] for a list.  
 +
 
 +
{{Call Support}}{{Contributor Help badge}}<br><br>
 +
 
 +
{{Contributor help-navbox}} {{Editing help}}
  
 
[[Category:Help|{{PAGENAME}}]]
 
[[Category:Help|{{PAGENAME}}]]

Revision as of 21:03, 8 August 2012

Return to Contributor Help



How to ...
Edit
Basic editing
Simple edits
Editing tool
Advanced editing
Links
Using Rich Editor
Internal links
External links
Advanced linking
Pages
Naming
Moving (renaming)
Deleting
Redirects
Style guide
Formatting
Wiki markup
Wikitext cheatsheet
Collaborate
User page
Talk pages
Updates
Tracking changes
Recent changes
Watchlist
Images
Selecting images
Uploading
Getting approved
Adding to articles
Tables
Advanced tables
Spreadsheets
Categories
Categorization
Advanced
categorization
Templates
Quick guide
Advanced templates
Help-content.png This help article will guide you as you edit in the Wiki. See Contributor Help for more help articles.


Wiki markup is the text you use to format a FamilySearch Wiki page.

Colored Pencils.jpg

Contents

Links and URLs

The following characters are used to create links: [[ ]], [ ], ~~~~, ~~~, http, ISBN, RFC & {{ }}, as denoted by the following sections:

To Do: Change the examples to be more relevant to FamilySearch Wiki
What it looks like What you type

(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:

User:Patricia Zhang 13:40, Jan 14, 2007 (UTC)

Adding three tildes (~~~) will add just your user name:

User: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 [[United States]]


#REDIRECT [[United States#History]] will redirect to the [[United States]] page, to the History section, if it exists

(Linked and why)

What links here and Related changes pages can be linked as:
Special:Whatlinkshere/Help:Wiki markup and Special:Recentchangeslinked/Help:Wiki markup

'''What links here''' and '''Related changes''' pages can be linked as:
Special:WhatLinkshere/Help:Wiki markup and
Special:RecentChangeslinked/ Help:Wiki markup

Dates

Use links for dates, so everyone can set their own display order. Use Special:Preferences to change your own date display setting.
July 20 1969 20 July 1969 and 1969-07-20

[[July 20]] [[1969]]
[[20 July]] [[1969]]
and [[1969]]-[[07-20]]
Linking to old revisions of pages, diffs, and specific history pages

External link function is used for these as [[page]] will not work.
Open an old revision or diff and copy the url, pasting it where you want it, e.g. previous edit

[http://en.wikipedia.org/w/index.php?
title=Help:Wiki_markup&diff=330350877&oldid=330349143 previous edit]

(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: [[Special:Contributions/UserName]] or [[Special:Contributions/192.0.2.0]]

(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:Character sets]]

(Book sources)

ISBN 012345678X

ISBN 0-12-345678-X

Link to a book using alternate text, such as its title.

  • 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.
  • To create a link to Book Sources using alternate text (e.g. the book's title), use the internal link style with the appropriate namespace.

ISBN 012345678X

ISBN 0-12-345678-X

[[Special:BookSources/0670037818|alternate text, such as its title]]

(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.

“[[WP:As of|As of]]” tags like "{{As of|2009|4|df=us}}" and "{{As of|2009|4|df=us|lc=on}}" categorize info that will need updating.

Images

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:

Wiki.png

A picture: 
[[Image:wiki.png]]
With alternative text:

Puzzle globe logo

With alternative text:
[[Image:wiki.png|alt=Puzzle globe logo]]
  • 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:
Wiki.png

Floating to the right side of the page 
using the ''frame'' attribute and a caption:
[[Image:wiki.png|frame|alt=Puzzle globe logo|Wikipedia Encyclopedia]]
  • The frame tag automatically floats the image right.
  • The last parameter is the caption that appears below the image.
Floating to the right side of the page using the thumb attribute and a caption:
Wiki.png

Floating to the right side of the page 
using the ''thumb'' attribute and a caption:
[[Image:wiki.png|thumb|alt=Puzzle globe logo|Wikipedia Encyclopedia]]
  • The thumb tag automatically floats the image right.
  • An enlarge icon is placed in the lower right corner.
Floating to the right side of the page without a caption:
Wikipedia Encyclopedia
Floating to the right side of the page
''without'' a caption:
[[Image:wiki.png|right|Wikipedia Encyclopedia]]
A picture resized to 30 pixels...

Wikipedia Encyclopedia

A picture resized to 30 pixels...
[[Image:wiki.png|30 px|Wikipedia Encyclopedia]]
Linking directly to the description page of an image:

Image:wiki.png

Linking directly to the description page
of an image:
[[:Image:wiki.png]]
  • 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:
[[Media:wiki.png|Image of the jigsaw globe logo]]
  • 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 Wikipedia's image use policy as a guideline used on Wikipedia.

For further help on images, including some more versatile abilities, see the picture tutorial.

Lists

Bullet or numbered lists can be created using Wiki text.

Help:Formatting

Section headings

Headings are used to split articles into sections.

Help:Section

Text formatting

You can format your text using wiki markup.

Help:Formatting

Special characters

Symbols and other special characters can be inserted using Wiki text.

Help:Special characters

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 [[Wiki]] ''markup''. It reformats text by removing newlines and multiple spaces. It still interprets special characters: →

<nowiki>
The nowiki tag ignores [[Wiki]] ''markup''.
It reformats text by removing newlines 
and multiple spaces.
It still interprets special
characters: &rarr;
</nowiki>
<pre> tag:
The pre tag ignores [[Wiki]] ''markup''.
It also doesn't     reformat text.
It still interprets special characters: →
<pre>
The pre tag ignores [[Wiki]] ''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 [[Wiki]] ''markup'' and
 special characters: &rarr;

Invisible text (comments)

It's uncommon, but on occasion acceptable for notes to other editors ( see MOS ), to add a hidden comment within the text of an article. These comments are only visible when editing or viewing the source of a page. Most comments should go on the appropriate Talk page. The format is to surround the hidden text with and may cover several lines, e.g.:

<!-- An example of hidden comments
 This won't be visible except in "edit" mode. -->

Table of contents

When a page has at least four headings, a table of contents (TOC) will appear in front of the first header (after the lead). Putting __TOC__ anywhere forces the TOC to appear at that point (instead of just before the first heading). 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)
  • Using HTML elements: <table>, <tr>, <td> or <th>.

For the latter, and a discussion on when tables are appropriate, see When to use tables.

Templates and Transcluding Pages

Main article: Wikipedia:Transclusion


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 {{double braces}}. It is also possible to transclude other pages by using {{:colon and double braces}}.

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".

  • <noinclude>: the content will not be rendered there. These tags have no effect here.
  • <includeonly>: the content will render only there, and will not render here (like Invisible ink made visible by means of transclusion).
  • <onlyinclude>: the content will render here and will render there, but it will only render there what is between these tags.

There can be several such section "elements". Also, they can be nested. All possible renderings are achievable. For example, to render there one or more sections of the page here use <onlyinclude> tags. To append text there, wrap the addition in <includeonly> tags above, within, or below the section. To omit portions of the section, nest <noinclude> tags within it.

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 <noinclude> tags to prevent incorrect categorization.

Some templates take parameters, as well, which you separate with the pipe character.

What it looks like What you type

Template:Transclusion demo

{{Transclusion demo}}

Help:Transclusion Demo

{{Help:Transclusion Demo}}

This template takes two parameters, and creates underlined text with a hover box for many modern browsers supporting CSS:

Hover your mouse over this text

Go to this page to see the H:title template itself: {{H:title}}

This template takes two parameters, and
creates underlined text with a hover box
for many modern browsers supporting CSS:

{{H:title|This is the hover text|
Hover your mouse over this text}}

Go to this page to see the H:title template
itself: {{tl|H:title}}

Variables

Variables are supported. They are often used in creating templates. See a list at Help:Magic words.

HTML

Many HTML tags can be used in in Wiki markup, see Help:Formatting for a list.

Support button14.png
Help-content.png Questions?
Visit the Wiki Contributor Help Forum to receive help with contributing to the Wiki.