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)
 
m
(30 intermediate revisions by 9 users not shown)
Line 1: Line 1:
'''Wiki markup''' is the {{wpd|Wikitext|text}} you use to format a FamilySearch Wiki page.
+
{| width="200" cellspacing="1" cellpadding="1" border="0" align="right"
 +
|-
 +
| [[Help:Contributor Help|Return to Contributor Help]]
 +
|}
  
==Links and URLs==
+
<br><br>
The following characters are used to create links: <code><nowiki>[[ ]], [ ], ~~~~, ~~~, http, ISBN, RFC & {{ }}</nowiki></code>, as denoted by the following sections:
+
 
{|
+
{{how-to-articles}} {{Help article}}
|
+
 
 +
<br> '''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|Colored Pencils.jpg]]</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 36:
  
 
*[[#wikimedialink|Wikimedia link]]
 
*[[#wikimedialink|Wikimedia link]]
||
+
 
 +
|  
 
*[[#linkedandwhy|Linked and why]]
 
*[[#linkedandwhy|Linked and why]]
  
Line 46: Line 59:
  
 
*[[#editlinks|Edit links]]
 
*[[#editlinks|Edit links]]
 +
 
|}
 
|}
  
{| class="wikitable" border="1"  
+
{{ToDo|Change the examples to be more relevant to FamilySearch Wiki}}
 +
 
 +
{| border="1" class="wikitable"
 
|- 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"
+
|- valign="top" id="articlelink"
| width=“50%”|
+
|  
London has [[public transport]]. (Article link)
+
United States has [[Cemeteries]]. (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]] for https://familysearch.org/learn/wiki/en/Cemeteries which is the FamilySearch wiki article with the name "Cemeteries". 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>United States has [[Cemeteries]].</nowiki></code>  
|- id="renamedlink" valign="top"
+
| width=“50%”|
+
San Francisco also has [[public transport|public transportation]]. (Renamed link)
+
  
* Same target, different name.
+
|- valign="top" id="renamedlink"
* The target ("piped") text must be placed '''first''', then the text to be displayed,  '''second'''.
+
|  
| width=“50%” valign="top"|
+
California also has [[California Cemeteries|cemeteries]]. (Renamed link)  
<code><nowiki>San Francisco also has [[public transport|public transportation]].</nowiki></code>
+
|- id="blendlink" valign="top"
+
| width=“50%”|
+
San Francisco also has
+
[[public transport]]ation. (Blend link)
+
  
Examples include [[bus]]es, [[taxicab]]s,
+
*Same target, different name.
and [[tram]]s.
+
*The target ("piped") text must be placed '''first''', then the text to be displayed, '''second'''.
  
* Endings are blended into the link.
+
| valign="top" |
**''Exception'': a trailing [[apostrophe]] (') and any characters following the apostrophe are ''not'' blended.
+
<code><nowiki>California also has [[California Cemeteries|cemeteries]].</nowiki></code>
* 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>.
+
|- valign="top" id="blendlink"
| width=“50%”|
+
|
 +
California also has [[Cemeteries]]. (Blend link)
 +
 
 +
Examples include [[:Category:Death Records]].
 +
 
 +
*Endings are blended into the link.  
 +
**''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.  
 +
*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>.
 +
 
 +
|  
 
<code><nowiki>San Francisco also has
 
<code><nowiki>San Francisco also has
[[public transport]]ation.</nowiki></code>
+
[[cemeteries]]</nowiki></code>  
  
<code><nowiki>Examples include [[bus]]es,
+
<code><nowiki>Examples include  
  [[taxicab]]s, and [[tram]]s.</nowiki></code>
+
  [[:Category:Death Records]s.</nowiki></code>  
  
<code><nowiki>a [[micro-]]<nowiki>second</nowiki></nowiki></code>
+
<code><nowiki>a [[micro-]]<nowiki>second</nowiki>&lt;/nowiki&gt;</code>  
|- id="otherpagelink" valign="top"
+
| width=“50%”|
+
  
See the [[Wikipedia:Manual of Style]]. (Other page link)
+
|- valign="top" id="otherpagelink"
 +
|
 +
See the [[Wanted pages]]. (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>
+
|
|- id="link-to-section" valign="top"
+
<code><nowiki>See the [[FamilySearch Wiki:Manual of Style]].</nowiki></code>  
| width=“50%”|
+
[[Wikipedia:Manual of Style#Italics]] 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.
+
|- valign="top" id="link-to-section"
 +
|
 +
[[FamilySearch Wiki:Manual of Style]] is a link to a [[Section editing#Creation_and_numbering_of_sections|section]] within another page.  
  
[[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page.
+
[[#Links_and_URLs]] is a link to another section on the current 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.
+
[[FamilySearch Wiki:Manual of Style#Italics|Italics]] is a piped link to a section within another page.  
* Include "| 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".
+
  
| width=“50%”|
+
*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.
<code><nowiki>[[Wikipedia:Manual of Style#Italics]] is a link to a section within another page.</nowiki></code>
+
*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".
  
<code><nowiki>[[#Links and URLs]] is a link to another section on the current page.</nowiki></code>
+
|
 +
<code><nowiki>[[FamilySearch Wiki: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>[[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page.</nowiki></code>
+
<br><code><nowiki>[[FamilySearch_Wiki:Manual_of_Style#Italics|Italics]] is a piped link to a section within another page.</nowiki></code>  
|- id="examplerenamedlinks" valign="top"
+
| width=“50%”|
+
(Example renamed links)
+
  
Automatically hide stuff in parentheses:
+
|- valign="top" id="examplerenamedlinks"
[[kingdom (biology)|kingdom]].
+
|
 +
(Example renamed links)  
  
Automatically hide namespace:
+
Automatically hide stuff in parentheses: [[FamilySearch Wiki:Maintenance|Maintenance]].  
[[Wikipedia:Village pump|Village pump]].  
+
  
Or both:
+
Automatically hide namespace: [[FamilySearch Wiki:Maintenance|Maintenance]].
[[Wikipedia:Manual of Style|Manual of Style]]
+
  
But not:
+
Or both: [[FamilySearch Wiki:Manual of Style|Manual of Style]]  
[[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%”|
+
But not: [[FamilySearch Wiki:Manual of Style#Italics|Italics]]  
<code><nowiki>Automatically hide stuff in parentheses: [[kingdom (biology)|]].</nowiki></code>
+
  
 +
*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]]).
 +
*See [[Help:Pipe trick|Pipe trick]] for details.
  
 +
|
 +
<code><nowiki>Automatically hide stuff in parentheses: [[FamilySearch Wiki:Maintenance|]].</nowiki></code>
  
<code><nowiki>Automatically hide namespace: [[Wikipedia:Village pump|]].</nowiki></code>
+
<br>  
  
 +
<code><nowiki>Automatically hide namespace: [[FamilySearch Wiki:Maintenance|]].</nowiki></code>
  
 +
<br>
  
<code><nowiki>Or both:[[Wikipedia:Manual of Style (headings)|]]</nowiki></code>
+
<code><nowiki>Or both:[[FamilySearch_Wiki:Manual_of_Style#Naming_subheadings_within_articles|Naming_subheadings_within_articles]]</nowiki></code>  
  
 +
<br>
  
 +
<code><nowiki>But not:[[FamilySearch Wiki:Linking|Linking]]</nowiki></code>
  
<code><nowiki>But not:[[Wikipedia:Manual of Style#Links|]]</nowiki></code>
+
|- valign="top" id="createpagelink"
|- 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: [[FamilySearch Wiki:Maintenance and Patrolling|RTENOTITLE]]  
[[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 [[Help:How to create an article|starting an article]] and check out Wikipedia's [[FamilySearch Wiki:Manual of Style#Naming|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"
+
| width=“50%”|
+
(Signing comments)
+
  
The character '''tilde''' (~) is used when adding a comment to a Talk page.
+
|- valign="top" id="signingcomments"
You should sign your comment by appending four tildes (<nowiki>~~~~</nowiki>)
+
|
to the comment so as to add your user name plus date/time:
+
(Signing comments)  
: User:Patricia Zhang 13:40, Jan 14, 2007 (UTC)
+
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:
+
: 13:40, Jan 14, 2007 (UTC)
+
  
* The first two both provide a link to your [[Wikipedia:user page|user 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:  
| 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"
+
| width=“50%”|
+
(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]]").
+
:User:Patricia Zhang 13:40, Jan 14, 2007 (UTC)
* 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>
+
  
 +
Adding three tildes (<nowiki>~~~</nowiki>) will add just your user name:
  
 +
:User:Patricia Zhang
  
<code><nowiki>#REDIRECT [[United States#History]] will redirect to the [[United States]] page, to the History section, if it exists</nowiki></code>
+
and adding five tildes (<nowiki>~~~~~</nowiki>) gives the date/time alone:
|- id="wikimedialink" valign="top"
+
| width=“50%”|
+
(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.
+
:13:40, Jan 14, 2007 (UTC)
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>
+
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.
+
* 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]].
+
| width=“50%”|
+
<code><nowiki>
+
[[:de:Plankton]]
+
[[:es:Plancton]]
+
[[:ru:Планктон]]
+
[[:simple:Plankton]]
+
</nowiki></code>
+
|- id="linkedandwhy" valign="top"
+
| width=“50%”|
+
(Linked and why)
+
  
'''What links here''' and '''Related changes'''
+
*The first two both provide a link to your [[Help:User page|user page]].
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"
+
| width=“50%”|
+
; 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]]
+
[[20 July]] [[1969]]
+
and [[1969]]-[[07-20]]
+
|<pre><nowiki>
+
[[July 20]] [[1969]]
+
[[20 July]] [[1969]]
+
and [[1969]]-[[07-20]]
+
</nowiki></pre>
+
|- id="linkversion" valign="top"
+
| width=“50%”|
+
; 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 />
+
|<pre><nowiki>
+
[http://en.wikipedia.org/w/index.php?title=Help:Wiki_markup&diff=330350877&oldid=330349143 previous edit]</nowiki></pre>
+
|- id="useredits" valign="top"
+
| width=“50%”|
+
(User edits)
+
  
A user's '''Contributions''' page can be linked as:
+
|
[[Special:Contributions/UserName]]
+
<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>
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>
+
|- id="categorize" valign="top"
+
| width=“50%”|
+
(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.
+
|- valign="top" id="redirects"
| width=“50%”|
+
|  
<code><nowiki>[[Category:Character sets]]</nowiki></code>
+
(Redirects)  
|- id="categorypagelink" valign="top"
+
| width=“50%”|
+
(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%”|
+
<code><nowiki>[[:Category:Character sets]]</nowiki></code>
+
|- id="link-external" valign="top"
+
| width=“50%”|
+
(External links)
+
  
Three ways to link to external (non-wiki) sources:
+
*[[Help: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]]").
# Bare URL: http://www.wikipedia.org/ (bad style)
+
*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.
# 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.
+
|
 +
<code><nowiki>#REDIRECT [[United States]] </nowiki></code>
  
* 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.
+
<br>  
* 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'''.
+
* 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">
+
[http://www.sysinternals.com/
+
ntw2k/freeware/winobj.shtml WinObj]</span></nowiki>
+
** Display: <span class="plainlinks neverexpand"> [http://www.sysinternals.com/ntw2k/freeware/winobj.shtml WinObj]</span>
+
* 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># 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"
+
| width=“50%”|
+
(Wikimedia text link)
+
  
Linking to other wikis:
+
<code><nowiki>#REDIRECT [[United States#History]] will redirect to the [[United States]] page, to the History section, if it exists</nowiki></code>
# [[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
+
|- valign="top" id="wikimedialink"
* Note that interwiki links use the ''internal'' link style.
+
|
* 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]]).
+
(Wikimedia link)  
* See also [[Wikipedia:Wikimedia sister projects|Wikimedia sister projects]].
+
  
Linking to another language's wiktionary:
+
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 "[[Germany]]", which is available on a lot of other wikis, the interwiki link to the [[German Wikipedia]] looks like:
# [[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
+
:<tt><nowiki>[[:de:Plankton]]</nowiki></tt>
| 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 />
+
where the "de" is the language-code for ''"Deutsch"'' (the [[German language]]).
  
<code><nowiki># [[Wiktionary:fr:bonjour]]</nowiki></code><br />
+
*It is recommended interwiki links be placed at the very end of the article.
<code><nowiki># [[Wiktionary:fr:bonjour|bonjour]]</nowiki></code><br />
+
*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").
<code><nowiki># [[Wiktionary:fr:bonjour|]]</nowiki></code><br />
+
*Please see [[Help:Interlanguage links|Interlanguage links]] and the [[wikipedia:Complete%20list%20of%20language%20wikis%20available|Complete list of language wikis available]].
|- id="booksources" valign="top"
+
| width=“50%”|
+
(Book sources)
+
  
ISBN 012345678X
+
|
 +
<code><nowiki>
 +
[[:de:Deutschland]]
 +
[[:es:Alemania]]
 +
[[:ru:Германия]]
 +
[[:simple:Germany]]
 +
</nowiki></code>
  
ISBN 0-12-345678-X
+
|- valign="top" id="linkedandwhy"
 +
|
 +
(Linked and why)
  
Link to a book using [[Special:BookSources/0670037818|alternate text, such as its title]].
+
'''What links here''' and '''Related changes''' pages can be linked as:<br>[[Special:Whatlinkshere/Help:Wiki markup]] and [[Special:Recentchangeslinked/Help:Wiki markup]]  
  
* 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.
+
<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>  
| width=“50%”|
+
<code><nowiki>ISBN 012345678X</nowiki></code>
+
  
<code><nowiki>ISBN 0-12-345678-X</nowiki></code>
+
|- valign="top" id="linkeddate"
 +
|
 +
;Dates
 +
:
  
<code><nowiki>[[Special:BookSources/0670037818|alternate text, such as its title]]</nowiki></code>
+
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]]
|- id="rfcnumber" valign="top"
+
| width=“50%”|
+
(RFC number)
+
  
Text mentioning an RFC number anywhere, e.g. RFC 4321.
+
| <pre>[[July 20]] [[1969]]
 +
[[20 July]] [[1969]]
 +
and [[1969]]-[[07-20]]
 +
</pre>
 +
|- valign="top" id="linkversion"
 +
|
 +
;Linking to old revisions of pages, diffs, and specific history pages
  
* Link to [[Internet Engineering Task Force]] [[Request for Comments|Request for Comments (RFCs)]].
+
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>
| width=“50%”|
+
<code><nowiki>Text mentioning an RFC number anywhere, e.g. RFC 4321.</nowiki></code>
+
|- id="asoftag" valign="top"
+
| width=“50%”|
+
(“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.
+
| <pre>[http://en.wikipedia.org/w/index.php?
| width=“50%”|
+
title=Help:Wiki_markup&amp;diff=330350877&amp;oldid=330349143 previous edit]</pre>
<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>
+
|- valign="top" id="useredits"
|- id="medialink" valign="top"
+
|  
| width=“50%”|
+
(User edits)  
(Media link)
+
  
[[media:Classical guitar scale.ogg|Sound]]
+
A user's '''Contributions''' page can be linked as: [[Special:Contributions/UserName]] or [[Special:Contributions/192.0.2.0]]  
  
*To include links to non image uploads such as sounds, use a "media" link. For images, [[#Images|see next section]].
+
|
 +
<code><nowiki>A user's '''Contributions''' page can be linked as: [[Special:Contributions/UserName]] or [[Special:Contributions/192.0.2.0]]</nowiki></code>
  
Some uploaded sounds are listed at [[Commons:Sound]].
+
|- valign="top" id="categorize"
| width=“50%”|
+
|  
<code><nowiki>[[media:Classical guitar scale.ogg|Sound]]</nowiki></code>
+
(Categorize)  
|- id="editlinks" valign="top"
+
| width=“50%”|
+
(Edit links)
+
  
Link directly to '''edit''' for an existing page, or apply other link attributes.
+
*To put an article in a [[Help: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.
* use <nowiki>{{fullurl:}}</nowiki> 
+
* or use [[template:edit|<nowiki>{{template:edit}}</nowiki>]] which conceals the edit label for page printing
+
| width=“50%”|
+
<code><nowiki>{{fullurl:page name|action=edit}}</nowiki></code>
+
|}
+
  
==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]].
+
<code><nowiki>[[Category:Character sets]]</nowiki></code>
  
{| class="wikitable" border="1"
+
|- valign="top" id="categorypagelink"
|-
+
|  
! What it looks like
+
(Category page link)
! What you type
+
|- valign="top"
+
|A picture:
+
[[Image:wiki.png]]
+
|<pre>A picture:
+
<nowiki>[[Image:wiki.png]]</nowiki></pre>
+
  
|- valign="top"
+
*To ''link'' to a [[Help: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]].
|With alternative text:
+
[[Image:wiki.png|alt=Puzzle globe logo]]
+
|<pre>With alternative text:
+
<nowiki>[[Image:wiki.png|alt=Puzzle globe logo]]</nowiki></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"
+
|  
|Floating to the right side of the page using the ''frame'' attribute and a caption:
+
<code><nowiki>[[:Category:Character sets]]</nowiki></code>  
[[Image:wiki.png|frame|alt=Puzzle globe logo|Wikipedia Encyclopedia]]<br clear=all>
+
|<pre>Floating to the right side of the page
+
using the ''frame'' attribute and a caption:
+
<nowiki>[[Image:wiki.png|frame|alt=Puzzle globe logo|Wikipedia Encyclopedia]]</nowiki></pre>
+
* The frame tag automatically floats the image right.
+
* The last parameter is the caption that appears below the image.
+
  
|- valign="top"
+
|- valign="top" id="link-external"
|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>
+
(External links)
|<pre>Floating to the right side of the page
+
using the ''thumb'' attribute and a caption:
+
<nowiki>[[Image:wiki.png|thumb|alt=Puzzle globe logo|Wikipedia Encyclopedia]]</nowiki></pre>
+
* The thumb tag automatically floats the image right.
+
* An enlarge icon is placed in the lower right corner.
+
  
|- valign="top"
+
Three ways to link to external (non-wiki) sources:  
|Floating to the right side of the page ''without'' a caption:
+
[[Image:wiki.png|right|Wikipedia Encyclopedia]]
+
|<pre>Floating to the right side of the page
+
''without'' a caption:
+
<nowiki>[[Image:wiki.png|right|Wikipedia Encyclopedia]]</nowiki></pre>
+
* The [[WP:PIC|picture tutorial]] explains more options.
+
  
|- valign="top"
+
#Bare URL: https://familysearch.org/ (bad style)
|A picture resized to 30 pixels...
+
#Unnamed link: [https://familysearch.org/] (only used within article body for footnotes)
[[Image:wiki.png|30 px|Wikipedia Encyclopedia]]
+
#Named link: [https://familysearch.org/ FamilySearch]
|<pre>A picture resized to 30 pixels...
+
<nowiki>[[Image:wiki.png|30 px|Wikipedia Encyclopedia]]</nowiki></pre>
+
* The [[WP:PIC|picture tutorial]] explains more options.
+
  
|- valign="top"
+
:See [[wikipedia:InterWikimedia%20links|RTENOTITLE]] for the list of shortcuts.
|Linking directly to the description page of an image:
+
[[:Image:wiki.png]]
+
|<pre>Linking directly to the description page
+
of an image:
+
<nowiki>[[:Image:wiki.png]]</nowiki></pre>
+
* Clicking on an image displayed on a page (such as any of the ones above) also leads to the description page.
+
  
|- valign="top"
+
*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.
|Linking directly to an image without displaying it:
+
*In the [[Uniform Resource Locator|URL]], all symbols must be among:<br>'''A-Z a-z 0-9 . _ \ / ~&nbsp;% - + &amp; #&nbsp;?&nbsp;! = ( ) @'''
[[Media:wiki.png|Image of the jigsaw globe logo]]
+
*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'''.
|<pre>Linking directly to an image
+
*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.
without displaying it:
+
*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:  
<nowiki>[[Media:wiki.png|Image of the jigsaw globe logo]]</nowiki></pre>
+
**Markup: <nowiki><span
* To include links to images shown as links instead of drawn on the page, use a "media" link.
+
class="plainlinks neverexpand">
 +
[http://www.sysinternals.com/
 +
ntw2k/freeware/winobj.shtml WinObj]</span></nowiki>  
 +
**Display: <span class="plainlinks neverexpand">[http://www.sysinternals.com/ntw2k/freeware/winobj.shtml WinObj]</span>  
 +
*See [[FamilySearch Wiki:External links|External links]] for style issues.
  
|- valign="top"
+
|  
|Using the [[Span and div|span and div tag]] to separate images from text (note that this may allow images to cover text):
+
<code><nowiki>Three ways to link to external (non-wiki) sources:</nowiki></code><br><code><nowiki># Bare URL: https://familysearch.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: [https://familysearch.org/ FamilySearch]</nowiki></code><br>  
|<pre><nowiki>Example:
+
<div style="display:inline;
+
width:220px; float:right;">
+
Place images here </div></nowiki></pre>
+
  
|- valign="top"  
+
|- valign="top" id="wikimediatextlink"
|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><nowiki>Example: {| align=right
+
|-
+
 
|  
 
|  
Place images here
+
(Wikimedia text link)
|}
+
</nowiki></pre>
+
  
|}
+
Linking to other wikis:
  
See the Wikipedia's [[Wikipedia:Image use policy|image use policy]] as a guideline used on Wikipedia.
+
#[[InterWiki]] link: [[wiktionary:Hello|RTENOTITLE]]
 +
#Interwiki link without prefix: [[wiktionary:Hello|Hello]]
 +
#Named interwiki link: [[wiktionary:Hello|Wiktionary definition of 'Hello']]
  
For further help on images, including some more versatile abilities, see the [[WP:PIC|picture tutorial]].
+
*All of these forms lead to the URL http://en.wiktionary.org/wiki/Hello
 +
*Note that interwiki links use the ''internal'' link style.
 +
*See [[metawikipedia:Interwiki%20map|RTENOTITLE]] 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]]).
 +
*See also [[wikipedia:Wikimedia%20sister%20projects|Wikimedia sister projects]].
  
==Section headings==
+
Linking to another language's wiktionary:
{{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"
+
#[[wiktionary:fr:bonjour|RTENOTITLE]]
! style="width: 50%" | What it looks like
+
#[[wiktionary:fr:bonjour|bonjour]]
! style="width: 50%" | What you type
+
#[[wiktionary:fr:bonjour|fr:bonjour]]
|-
+
|
+
<div style="font-size:150%;border-bottom:1px solid rgb(170,170,170);">Section headings</div>
+
  
''Headings'' organize your writing into sections.
+
*All of these forms lead to the URL http://fr.wiktionary.org/wiki/bonjour
The Wiki software can automatically generate
+
a [[Help:Section|table of contents]] from them.
+
  
<div style="font-size:132%;font-weight:bold;">Subsection</div>
+
|
Using more equals signs creates a subsection.
+
<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>  
  
<div style="font-size:116%;font-weight:bold;">A smaller subsection</div>
+
<code><nowiki>Linking to another language's wiktionary:</nowiki></code><br>  
  
Start with 2 equals signs.
+
<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>
Don't skip levels, like from two to four equals signs.
+
  
|<pre>
+
|- valign="top" id="booksources"
==Section headings==
+
|
 +
(Book sources)
  
''Headings'' organize your writing into sections.
+
ISBN 012345678X
The Wiki software can automatically generate
+
a table of contents from them.
+
  
==Subsection==
+
ISBN 0-12-345678-X
  
Using more equals signs creates a subsection.
+
Link to a book using [[Special:BookSources/0670037818|alternate text, such as its title]].  
  
===A smaller subsection===
+
*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.  
Start with 2 equals signs.
+
*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.
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.
+
|
|<pre><nowiki>A horizontal dividing line:
+
<code><nowiki>ISBN 012345678X</nowiki></code>  
this is above it...
+
----
+
...and this is below it.
+
</nowiki></pre>
+
|}
+
  
==Text formatting==
+
<code><nowiki>ISBN 0-12-345678-X</nowiki></code>
{| class="wikitable" border="1"
+
! style="width: 50%" | What it looks like
+
! style="width: 50%" | What you type
+
|-
+
|
+
; [[w:Newline|Newline]]:
+
  
A single
+
<code><nowiki>[[Special:BookSources/0670037818|alternate text, such as its title]]</nowiki></code>
newline
+
has no
+
effect on the
+
layout.
+
  
But an empty line
+
|- valign="top" id="rfcnumber"
starts a new paragraph,
+
|
or ends a list or indented part.
+
(RFC number)  
(<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.
+
Text mentioning an RFC number anywhere, e.g. RFC 4321.  
  
You can make the wikitext more readable by putting in newlines, but see [[Wikipedia:Don't use line breaks]] for possible problems.
+
*Link to [[Internet Engineering Task Force]] [[Request for Comments|Request for Comments (RFCs)]].
  
* When used in a list, a newline ''does'' affect the layout (See [[Help:List]]).
+
|  
|<pre><nowiki>
+
<code><nowiki>Text mentioning an RFC number anywhere, e.g. RFC 4321.</nowiki></code>  
  
A single
+
|- valign="top" id="asoftag"
newline
+
|
has no
+
(“As of” tag)
effect on the
+
layout.
+
  
But an empty line
+
“[[WP:As of|As of]]” tags like "As of April 2009" and "as of April 2009" categorize info that will need updating.  
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.
+
<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>  
|<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===
+
|- valign="top" id="medialink"
{| class="wikitable" border="1"
+
|  
! style="width: 50%" | What it looks like
+
(Media link)
! 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>
+
[[Media:Family_Group_Record.pdf|Family Group Record PDF File]]
# ''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==
+
*To include links to non image uploads such as PDF files, use a "media" link. For images, [[#Images|see next section]].
{| class="wikitable" border="1"
+
|- valign="top"
+
! What it looks like
+
! What you type
+
|- id="emph" valign="top"
+
|You can ''italicize text'' by putting 2
+
apostrophes on each side.
+
  
3 apostrophes will '''bold the text'''.
+
Some uploaded sounds are listed at [[commons:Sound|RTENOTITLE]].  
  
5 apostrophes will '''bold''' and ''italicize''
+
|
'''''the text'''''.
+
<code><nowiki>[[media:Family Group Record.pdf|Family Group Record PDF file]]</nowiki></code>  
|<pre>
+
You can ''italicize text'' by putting 2
+
apostrophes on each side.
+
  
3 apostrophes will '''bold the text'''.
+
|- valign="top" id="editlinks"
 +
|
 +
(Edit links)
  
5 apostrophes will '''bold''' and ''italicize''
+
Link directly to '''edit''' for an existing page, or apply other link attributes.  
'''''the text'''''.
+
</pre>
+
|- valign="top"
+
|
+
[[mw:Extension:SyntaxHighlight GeSHi|Syntax highlighting]] for source code.
+
  
Computer code has a colored background
+
*use <nowiki>{{fullurl:}}</nowiki>  
and more stringent formatting. Suppose we
+
*or use [[Template:Edit|<nowiki>{{template:edit}}</nowiki>]] which conceals the edit label for page printing
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 ) {
+
<code><nowiki>{{fullurl:page name|action=edit}}</nowiki></code>  
    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.
+
== Images  ==
* 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
+
Only images that have been uploaded to FamilySearch can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]].  
<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>
+
|-
+
|
+
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).
+
  
|
+
{| border="1" class="wikitable"
<br />
+
<pre>Mr.&amp;nbsp;Smith or 400&amp;nbsp;km/h.</pre>
+
 
|-
 
|-
|
+
! What it looks like
'''Extra spacing''' within text can best be achieved using the [[Template:Pad|pad]] template:
+
! What you type
 +
|- valign="top"
 +
| A picture:
 +
[[Image:Wiki.png]]  
  
Mary {{pad|4em}} had a little lamb.
+
| <pre>A picture:
|
+
[[Image:wiki.png]]</pre>
<br />
+
|- valign="top"
<pre><nowiki>Mary {{pad|4em}} had a little lamb.
+
| With alternative text:
</nowiki></pre>
+
[[Image:Wiki.png|Puzzle globe logo]]
|-
+
|
+
'''Typewriter font'''
+
(does not work beyond the end of a paragraph):<br>
+
<tt>arrow      &rarr;</tt>
+
  
<tt>''italics''</tt>
+
| <pre>With alternative text:
<tt>[[link]]
+
[[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%20text%20for%20images|Alternative text for images]] for help on choosing it.
  
New paragraph.</tt>
+
|- valign="top"
|
+
| Floating to the right side of the page using the ''frame'' attribute and a caption:
<pre><nowiki><tt>arrow      &amp;rarr;</tt>
+
[[Image:Wiki.png|frame|Wiki.png]]<br>  
  
<tt>''italics''</tt>
+
| <pre>Floating to the right side of the page
<tt>[[link]]</nowiki>
+
using the ''frame'' attribute and a caption:
 +
[[Image:wiki.png|frame|alt=Puzzle globe logo|Wikipedia Encyclopedia]]</pre>  
 +
*The frame tag automatically floats the image right.
 +
*The last parameter is the caption that appears below the image.
  
New paragraph.</tt></pre>
+
|- valign="top"
|}
+
| Floating to the right side of the page using the ''thumb'' attribute and a caption:
 +
[[Image:Wiki.png|thumb|Wiki.png]]<br>  
 +
 
 +
| <pre>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]]</pre>
 +
*The thumb tag automatically floats the image right.
 +
*An enlarge icon is placed in the lower right corner.
  
===Special characters===
 
{| class="wikitable" border="1"
 
 
|- valign="top"
 
|- valign="top"
! What it looks like
+
| Floating to the right side of the page ''without'' a caption:
! What you type
+
[[Image:Wiki.png|right|Wikipedia Encyclopedia]]
 +
 
 +
| <pre>Floating to the right side of the page
 +
''without'' a caption:
 +
[[Image:wiki.png|right|Wikipedia Encyclopedia]]</pre>
 +
*The [[WP:PIC|picture tutorial]] explains more options.
 +
 
 
|- valign="top"
 
|- valign="top"
|
+
| A picture resized to 30 pixels...
'''<span id="diacritics">Diacritical marks:</span>'''
+
[[Image:Wiki.png|30px|Wikipedia Encyclopedia]]
<br/>
+
 
À Á Â Ã Ä Å <br/>
+
| <pre>A picture resized to 30 pixels...
Æ Ç È É Ê Ë <br/>
+
[[Image:wiki.png|30 px|Wikipedia Encyclopedia]]</pre>  
Ì Í
+
*The [[WP:PIC|picture tutorial]] explains more options.
Î Ï Ñ Ò <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"
 
|- valign="top"
|
+
| Linking directly to the description page of an image:
'''Punctuation:'''
+
[[:Image:wiki.png]]
<br/>
+
 
¿ ¡ § ¶<br/>
+
| <pre>Linking directly to the description page
† ‡ • &ndash; &mdash;<br/>
+
of an image:
‹ › « »<br/>
+
[[: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.
|
+
 
<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"
 
|- valign="top"
|
+
| Linking directly to an image without displaying it:
'''Commercial symbols:'''
+
[[Media:Wiki.png|Image of the jigsaw globe logo]]
<br/>
+
 
™ © ® ¢ € ¥<br/>
+
| <pre>Linking directly to an image
£ ¤
+
without displaying it:
|
+
[[Media:wiki.png|Image of the jigsaw globe logo]]</pre>  
<br/>
+
*To include links to images shown as links instead of drawn on the page, use a "media" link.
<pre><nowiki>
+
 
&amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;
+
&amp;pound; &amp;curren;
+
</nowiki></pre>
+
 
|- valign="top"
 
|- valign="top"
|
+
| Using the [[Span and div|span and div tag]] to separate images from text (note that this may allow images to cover text):  
'''Subscripts:'''
+
| <pre>Example:
<br/>
+
&lt;div style="display:inline;
x<sub>1</sub> x<sub>2</sub> x<sub>3</sub> or
+
width:220px; float:right;"&gt;
<br/>
+
Place images here </div></pre>
x₀ x₁ x₂ x₃ x₄
+
|- valign="top"
<br/>
+
| 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):
x₅ x₆ x₇ x₈ x₉
+
| <pre>Example: {&#124; align=right
 +
&#124;-
 +
&#124;
 +
Place images here
 +
&#124;}
 +
</pre>
 +
|}
  
'''Superscripts:'''
+
See the Wikipedia's [[wikipedia:Image%20use%20policy|image use policy]] as a guideline used on Wikipedia.
<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:'''
+
For further help on images, including some more versatile abilities, see the [[WP:PIC|picture tutorial]].
<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.
+
=== Lists  ===
*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.
+
  
|
+
Bullet or numbered lists can be created using Wiki text.
<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>
+
[[Help:Formatting]]
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>
+
== Section headings  ==
&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;]]
+
Headings are used to split articles into sections.  
</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>
+
[[Help:Section]]
{{math|<b>x</b> {{=}} <b>0</b>}}
+
  
* Complex formulae should use [[Help:Displaying a formula|<code>&lt;math&gt;</code> markup]].
+
== Text formatting  ==
* 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>
+
You can format your text using wiki markup.  
{{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==
+
[[Help:Formatting]]
  
A few different kinds of formatting will tell the Wiki to display things as you typed them — what you see, is what you get!
+
=== Special characters  ===
  
{| class="wikitable" border="1"
+
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!
 +
 
 +
{| border="1" class="wikitable"
 
|-
 
|-
!What it looks like
+
! What it looks like  
!What you type
+
! What you type
 
|-
 
|-
|'''&lt;nowiki&gt; tag:'''<br/>
+
| '''&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  
 
and multiple spaces.
 
and multiple spaces.
 
It still interprets special
 
It still interprets special
characters: &amp;rarr;
+
characters:
 
&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;
+
 
</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 589:
 
  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
 
  stops the text  from being reformatted.  
 
  stops the text  from being reformatted.  
 
  It still interprets [[Wiki]] ''markup'' and
 
  It still interprets [[Wiki]] ''markup'' and
  special characters: &amp;rarr;
+
  special characters:
</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%20of%20Style|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%20page|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%20to%20use%20tables|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.
+
{| border="1" class="wikitable"
 +
|-
 +
! width="1000" | What it looks like
 +
! width="500" | What you type
 +
|-
 +
|
 +
{{Transclusion demo}}
  
{| class="wikitable" border="1"
+
| <pre>{{Transclusion demo}}
!width="1000"|What it looks like
+
!width="500"|What you type
+
|-
+
|
+
{{Transclusion demo}}
+
|<pre>
+
{{Transclusion demo}}
+
 
</pre>
 
</pre>
 
|-
 
|-
|
+
|  
{{Help:Transclusion Demo}}
+
{{Help:Transclusion Demo}}  
|<pre>
+
 
{{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.  
 +
 
 +
{{Contributor Help badge
 +
| link = https://familysearch.org/ask/
 +
| name = Get Help}}<br><br>
 +
 
 +
{{Contributor help-navbox}} {{Editing help}}
 +
 
 +
{{H-langs|es=Ayuda:Wikitexto|en=Help:Wiki markup}}
  
 
[[Category:Help|{{PAGENAME}}]]
 
[[Category:Help|{{PAGENAME}}]]

Revision as of 22:51, 27 January 2014

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 FamilySearch 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: →
</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:
 →
</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: →

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.

Help-content.png Questions?
Visit the Get Help to receive help with contributing to the Wiki.