Difference between revisions of "Help:Wiki markup"

From FamilySearch Wiki
Jump to: navigation, search
m (fixed links)
(List of Wikitext Topics Covered)
 
(63 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| width="200" cellspacing="1" cellpadding="1" border="0" align="right"
+
{{breadcrumb
|-
+
| link1=[[Get_Involved_in_Wiki_Projects|Get Involved in Wiki]]
| [[Help:Contributor Help|Return to Contributor Help]]
+
| link2=[[Help:Wiki_Help|Help:Wiki Help]]
|}
+
| link3=[[Help:Editing the Wiki|Help:Editing the Wiki]]
 
+
| link4=
<br><br>
+
| link5={{PAGENAME}}
 
+
}}
{{how-to-articles}} {{Help article}}  
+
'''Wikitext'''' is the coding you use to format a FamilySearch Wiki page.  
 
 
<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>  
 
<div style="float:right">[[Image:Colored Pencils.jpg|right|175px|Colored Pencils.jpg]]</div>  
=== Links and URLs  ===
+
<!----------list of links to sections of table----------------------------------------------------->
 
+
=== List of Wikitext Topics Covered ===
The following characters are used to create links: <code><nowiki>[[ ]], [ ], ~~~~, ~~~, http, ISBN, RFC & {{ }}</nowiki></code>, as denoted by the following sections:
 
  
{| class="FCK__ShowTableBorders"
+
<div style="display:flex">
|-
+
<div style="flex:1">
|
 
 
*[[#articlelink|Article link]]
 
*[[#articlelink|Article link]]
 
+
*[[#asoftag|“As of” tag]]
*[[#renamedlink|Renamed link]]
 
 
 
 
*[[#blendlink|Blend link]]
 
*[[#blendlink|Blend link]]
 +
*[[#booksources|Book sources]]
 +
*[[#categorize|Categorize]]
 +
*[[#categorypagelink|Category page link]]
 +
*[[#Table of contents|Contents]]
 +
*[[#createpagelink|Create page link]]
 +
*[[#editlinks|Edit links]]
 +
*[[#examplerenamedlinks|Example renamed links]]
 +
*[[#HTML|HTML]]
 +
*[[#Images|Images]]
 +
*[[#Invisible text (hidden comments)|Invisible text (hidden comments)]]
 +
*[[#No or limited formatting|Limited or no formatting]]
 +
*[[#link-external|External links]]
 +
*[[#linkedandwhy|Linked and why]]
  
 +
</div>
 +
<div style="flex:1">
 +
*[[#medialink|Media link]]
 
*[[#otherpagelink|Other page link]]
 
*[[#otherpagelink|Other page link]]
 
+
*[[#redirects|Redirects]]
 +
*[[#renamedlink|Renamed link]]
 +
*[[#rfcnumber|RFC number]]
 
*[[#link-to-section|Section link]]
 
*[[#link-to-section|Section link]]
 
+
*[[#Section headings|Section headings]]
*[[#examplerenamedlinks|Example renamed links]]
 
 
 
*[[#createpagelink|Create page link]]
 
 
 
 
*[[#signingcomments|Signing comments]]
 
*[[#signingcomments|Signing comments]]
 
+
*[[#Tables|Tables]]
*[[#redirects|Redirects]]
+
*[[#Table of contents|Table of Contents]]
 
+
*[[#Templates and Transcluding Pages|Templates and Transcluding Pages]]
 +
*[[#Text formatting|Text formatting - Special Characters]]
 +
*[[#useredits|User edits]]
 +
*[[#Variables|Variables]]
 
*[[#wikimedialink|Wikimedia link]]
 
*[[#wikimedialink|Wikimedia link]]
 
|
 
*[[#linkedandwhy|Linked and why]]
 
 
*[[#useredits|User edits]]
 
 
*[[#categorize|Categorize]]
 
 
*[[#categorypagelink|Category page link]]
 
 
*[[#link-external|External links]]
 
 
 
*[[#wikimediatextlink|Wikimedia text link]]
 
*[[#wikimediatextlink|Wikimedia text link]]
  
*[[#booksources|Book sources]]
+
</div>
 
+
</div>
*[[#rfcnumber|RFC number]]
+
<br>
 
+
<!---------------------column definition---------------------------------------------------------->
*[[#asoftag|“As of” tag]]
+
<div style="display:flex; background-color:#f2f2f2">
 
+
<div style="flex:3; border-left:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray; text-align:center; padding:2px; font-weight:bold">What it looks like </div>
*[[#medialink|Media link]]
 
 
 
*[[#editlinks|Edit links]]
 
 
 
|}
 
 
 
{{ToDo|Change the examples to be more relevant to FamilySearch Wiki}}
 
 
 
{| border="1" class="wikitable"
 
|- valign="top"
 
! What it looks like  
 
! What you type
 
|- valign="top" id="articlelink"
 
|
 
United States has [[Cemeteries]]. (Article link)
 
  
 +
<div style="flex:2; border-right:1px solid gray; border-top:1px solid gray; border-left:1px solid gray; border-bottom:1px solid gray; text-align:center; padding:3px; font-weight:bold">What you type</div>
 +
</div>
 +
<!----------------------------article link------------------------------------------------------->
 +
<div style="display:flex; background-color:#f2f2f2">
 +
<div id="articlelink" style="flex:1; border-left:1px solid gray; border-right:1px solid gray; text-align:center; padding:2px; font-weight:bold; font-size:1.3em">[[Help:Wiki markup|Article link]] </div>
 +
</div>
 +
<!----------------article link material---------------------------------------------------------->
 +
<div style="display:flex; background-color:#f2f2f2">
 +
<div style="flex:3; border-left:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray; padding:2px">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]] for https://familysearch.org/learn/wiki/en/Cemeteries which is the FamilySearch wiki article with the name "Cemeteries". See also [[Help:Link|Canonicalization]].  
+
*This an internal link to the article on US Cemeteries.
*[[Intentionally permanent red link|A red link]] is a page that doesn't exist yet, they can be created by clicking on the link.  
+
*<font color="red">A red link</font> is a page that doesn't exist yet but they can be created by clicking on the link and typing something in the edit box.  
*A [[Help:Self link|link to its own page]] will appear only as bold text.
+
*A '''link to the page you are on''' will appear only as bold text. </div>
 +
<div style="flex:2; border-right:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray; border-left:1px solid gray; padding:3px"><nowiki>United States has [[Cemeteries]].</nowiki></div>
 +
</div>
 +
<!----------------------------renamed link-------------------------------------------------->
 +
<div style="display:flex; background-color:#f2f2f2">
 +
<div id="renamedlink" style="flex:1; border-left:1px solid gray; border-right:1px solid gray; text-align:center; padding:2px; font-weight:bold; font-size:1.3em">[[Help:Wiki markup|Rename link]]</div>
 +
</div>
 +
<!----------------article link material---------------------------------------------------------->
 +
<div style="display:flex; background-color:#f2f2f2">
 +
<div style="flex:3; border-left:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray; padding:2px">California also has [[California Cemeteries|cemeteries]]. (Renamed link)
  
| valign="top" |
+
*Same target, different name.
<code><nowiki>United States has [[cemeteries]].</nowiki></code>  
+
*The target ("piped") text must be placed '''first''', then the text to be displayed, '''second'''.</div>
 
+
<div style="flex:2; border-right:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray; border-left:1px solid gray; padding:3px"><nowiki>California also has [[California Cemeteries|cemeteries]].</nowiki></div>
|- valign="top" id="renamedlink"
+
</div>
|
 
California also has [[California Cemeteries|cemeteries]]. (Renamed link)
 
  
*Same target, different name.
+
----
*The target ("piped") text must be placed '''first''', then the text to be displayed, '''second'''.
+
----
  
| valign="top" |
+
{| border="1" class="wikitable"  
<code><nowiki>California also has [[California Cemeteries|cemeteries]].</nowiki></code>
 
  
 
|- valign="top" id="blendlink"
 
|- valign="top" id="blendlink"
Line 95: Line 94:
 
California also has [[Cemeteries]]. (Blend link)  
 
California also has [[Cemeteries]]. (Blend link)  
  
Examples include [[:Category:Death Records]].  
+
Examples include [[:Category:California Vital Records]].  
  
 
*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>&lt;/nowiki&gt;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>.
  
 
|  
 
|  
Line 107: Line 106:
  
 
<code><nowiki>Examples include  
 
<code><nowiki>Examples include  
  [[:Category:Death Records]s.</nowiki></code>  
+
  [[:Category:California Vital Records]s.</nowiki></code>  
  
 
<code><nowiki>a [[micro-]]<nowiki>second</nowiki>&lt;/nowiki&gt;</code>  
 
<code><nowiki>a [[micro-]]<nowiki>second</nowiki>&lt;/nowiki&gt;</code>  
Line 113: Line 112:
 
|- valign="top" id="otherpagelink"
 
|- valign="top" id="otherpagelink"
 
|  
 
|  
See the [[Wanted pages |RTENOTITLE]]. (Other page link)  
+
See the [[Help:Navigation Basics]]. (Other page link)  
  
 
*A link to another [[Help:Namespace|namespace]].
 
*A link to another [[Help:Namespace|namespace]].
Line 122: Line 121:
 
|- valign="top" id="link-to-section"
 
|- 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.  
+
[[FamilySearch Wiki:Manual of Style]] is a link to a section within another page.  
  
 
[[#Links_and_URLs]] is a link to another section on the current page.  
 
[[#Links_and_URLs]] is a link to another section on the current page.  
  
[[FamilySearch_Wiki:Manual_of_Style#Italics|Italics]] is a piped link to a section within another page.  
+
[[FamilySearch Wiki:Manual of Style#Italics|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 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 "&#124; 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".
  
 
|  
 
|  
<code><nowiki>[[Wikipedia:Manual of Style#Italics]] is a link to a section within another 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>[[#Links and URLs]] is a link to another section on the current 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>  
+
<br><code><nowiki>[[FamilySearch_Wiki:Manual of Style#Italics|Italics]] is a piped link to a section within another page.</nowiki></code>  
  
 
|- valign="top" id="examplerenamedlinks"
 
|- valign="top" id="examplerenamedlinks"
Line 143: Line 142:
 
(Example renamed links)  
 
(Example renamed links)  
  
Automatically hide stuff in parentheses: [[Kingdom (biology)|kingdom]].  
+
Automatically hide stuff in parentheses: [[FamilySearch Wiki:Maintenance|Maintenance]].  
  
Automatically hide namespace: [[wikipedia:Village%20pump|Village pump]].  
+
Automatically hide namespace: [[FamilySearch Wiki:Maintenance|Maintenance]].  
  
 
Or both: [[FamilySearch Wiki:Manual of Style|Manual of Style]]  
 
Or both: [[FamilySearch Wiki:Manual of Style|Manual of Style]]  
  
But not: [[FamilySearch_Wiki:Manual_of_Style#Italics|Italics]]  
+
But not: [[FamilySearch Wiki:Manual of Style#Italics|Italics]]  
  
*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]]).  
+
*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 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.
+
*See [[Help:Piped link|Pipe trick]] for details.
  
 
|  
 
|  
<code><nowiki>Automatically hide stuff in parentheses: [[kingdom (biology)|]].</nowiki></code>  
+
<code><nowiki>Automatically hide stuff in parentheses: [[FamilySearch Wiki:Maintenance|]].</nowiki></code>  
  
 
<br>  
 
<br>  
  
<code><nowiki>Automatically hide namespace: [[Wikipedia:Village pump|]].</nowiki></code>  
+
<code><nowiki>Automatically hide namespace: [[FamilySearch Wiki:Maintenance|]].</nowiki></code>  
  
<br>  
+
<br> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <code><nowiki>Or both:
 
+
[[FamilySearch Wiki:Manual of Style#Naming_subheadings_within_articles| Naming_subheadings_within_articles]]</nowiki></code> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <!--------------------------------------------------------> <br>  
<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:[[FamilySearch Wiki:Linking|Linking]]</nowiki></code>  
Line 173: Line 169:
 
(Create page link)  
 
(Create page link)  
  
Links to pages that don’t exist yet look red: [[wikipedia:Community%20portal/Opentask/Requested%20articles|RTENOTITLE]]  
+
Links to pages that don’t exist yet look red: [[FamilySearch Wiki:Maintenance and Patrolling]]  
  
 
*You can create it by clicking on the link.  
 
*You can create it by clicking on the link.  
Line 180: Line 176:
 
*#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 [[Help:How to create an article|starting an article]] and check out Wikipedia's [[FamilySearch_Wiki:Manual_of_Style#Naming|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.
  
Line 212: Line 208:
 
(Redirects)  
 
(Redirects)  
  
*[[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]]").  
+
*[[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").  
 
*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.
  
Line 226: Line 222:
 
(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 "Germany", 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]]).  
+
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.  
 
*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").  
 
*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%20list%20of%20language%20wikis%20available|Complete list of language wikis available]].
+
*Please see [[Help:Advanced_Linking#Interlanguage_Links|Interlanguage links]] and the [[wikipedia:Complete%20list%20of%20language%20wikis%20available|Complete list of language wikis available]].
  
 
|  
 
|  
 
<code><nowiki>
 
<code><nowiki>
[[:de:Plankton]]
+
[[:de:Deutschland]]
[[:es:Plancton]]
+
[[:es:Alemania]]
[[:ru:Планктон]]
+
[[:ru:Германия]]
[[:simple:Plankton]]
+
[[:simple:Germany]]
 
</nowiki></code>  
 
</nowiki></code>  
  
Line 255: Line 251:
 
|- valign="top" id="linkeddate"
 
|- valign="top" id="linkeddate"
 
|  
 
|  
;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]] [[20 July]] [[1969]] and [[1969]]-[[07-20]]  
+
Use links for dates, so everyone can set their own display order. Use [[Special:Preferences]] to change your own date display setting.<br><pre>[[July 20]] [[1969]] [[20 July]] [[1969]] and [[1969]]-[[07-20]] </pre>
  
| <pre>[[July 20]] [[1969]]
+
|<pre>[[July 20]] [[1969]]
 
[[20 July]] [[1969]]
 
[[20 July]] [[1969]]
and [[1969]]-[[07-20]]
+
and [[1969]]-[[07-20]]</pre>
</pre>
+
 
 
|- valign="top" id="linkversion"
 
|- valign="top" id="linkversion"
 
|  
 
|  
;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>[http://en.wikipedia.org/w/index.php?
+
|[http://en.wikipedia.org/w/index.php?
title=Help:Wiki_markup&amp;diff=330350877&amp;oldid=330349143 previous edit]</pre>
+
title=Help:Wiki_markup&amp;diff=330350877&amp;oldid=330349143 previous edit]
 
|- valign="top" id="useredits"
 
|- valign="top" id="useredits"
 
|  
 
|  
Line 288: Line 284:
  
 
|  
 
|  
<code><nowiki>[[Category:Character sets]]</nowiki></code>  
+
<code><nowiki>[[Category:United States]]</nowiki></code>  
  
 
|- valign="top" id="categorypagelink"
 
|- valign="top" id="categorypagelink"
Line 294: Line 290:
 
(Category page link)  
 
(Category page link)  
  
*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]].
+
*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:United States]].
  
 
|  
 
|  
<code><nowiki>[[:Category:Character sets]]</nowiki></code>  
+
<code><nowiki>[[:Category:United States]]</nowiki></code>  
  
 
|- valign="top" id="link-external"
 
|- valign="top" id="link-external"
Line 305: Line 301:
 
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)  
+
#Bare URL: https://familysearch.org/ (bad style)  
#Unnamed link: [http://www.wikipedia.org/] (only used within article body for footnotes)  
+
#Unnamed link: [https://familysearch.org/] (only used within article body for footnotes)  
#Named link: [http://www.wikipedia.org/ Wikipedia]
+
#Named link: [https://familysearch.org/ FamilySearch]
  
 
:See [[wikipedia:InterWikimedia%20links|RTENOTITLE]] for the list of shortcuts.
 
:See [[wikipedia:InterWikimedia%20links|RTENOTITLE]] for the list of shortcuts.
  
 
*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.  
 
*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.  
*In the [[Uniform Resource Locator|URL]], all symbols must be among:<br>'''A-Z a-z 0-9 . _ \ / ~&nbsp;% - + &amp; #&nbsp;?&nbsp;! = ( ) @'''  
+
*In the URL, all symbols must be among:<br>'''A-Z a-z 0-9 . _ \ / ~&nbsp;% - + &amp; #&nbsp;?&nbsp;! = ( ) @'''  
*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 a URL contains a character not in this list, it should be encoded by using a percent sign (%) followed by the hex code of the character, which can be found in the table of 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.  
+
*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:  
+
*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
 
**Markup: <nowiki><span
 
class="plainlinks neverexpand">
 
class="plainlinks neverexpand">
Line 321: Line 317:
 
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%20links|External links]] for style issues.
+
*See [[FamilySearch Wiki:External links|External links]] for style issues.
  
 
|  
 
|  
<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>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>  
  
 
|- valign="top" id="wikimediatextlink"
 
|- valign="top" id="wikimediatextlink"
Line 332: Line 328:
 
Linking to other wikis:  
 
Linking to other wikis:  
  
#[[InterWiki]] link: [[wiktionary:Hello|RTENOTITLE]]  
+
#InterWiki link: [[wiktionary:Hello|RTENOTITLE]]  
 
#Interwiki link without prefix: [[wiktionary:Hello|Hello]]  
 
#Interwiki link without prefix: [[wiktionary:Hello|Hello]]  
 
#Named interwiki link: [[wiktionary:Hello|Wiktionary definition of 'Hello']]
 
#Named interwiki link: [[wiktionary:Hello|Wiktionary definition of 'Hello']]
Line 382: Line 378:
 
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 (RFCs).
  
 
|  
 
|  
Line 391: Line 387:
 
(“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.  
+
“[[Template:As of/doc|As of]]” tags like "As of April 2009" and "as of April 2009" categorize info that will need updating.  
  
 
|  
 
|  
Line 425: Line 421:
 
== 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 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]].  
  
 
{| border="1" class="wikitable"
 
{| border="1" class="wikitable"
Line 447: Line 443:
 
|- 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|Wiki.png]]<br>  
+
[[Image:Wiki.png|frame]]<br>  
  
 
| <pre>Floating to the right side of the page  
 
| <pre>Floating to the right side of the page  
Line 457: Line 453:
 
|- 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|Wiki.png]]<br>  
+
[[Image:Wiki.png|thumb]]<br>  
  
 
| <pre>Floating to the right side of the page  
 
| <pre>Floating to the right side of the page  
Line 599: Line 595:
 
|}
 
|}
  
== Invisible text (comments)  ==
+
== Invisible text (hidden comments)  ==
  
 
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.:  
 
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.:  
Line 626: Line 622:
 
'''[[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>.  
 
'''[[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>.  
  
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'''".  
+
There are three pairs of tags that can be used in [[Help:Wiki University Wikitext--Tutorial|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'''".  
  
 
*'''<nowiki><noinclude></nowiki>: '''the content '''will not be rendered ''there'''''. These tags have no effect ''here''.  
 
*'''<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><includeonly></nowiki>: '''the content '''will render only ''there''''', and '''will not render ''here''''' (like [[FamilySearch_Wiki:Redirects#Targeted_and_untargeted_redirects|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.
 
*'''<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.  
+
There can be several such section "[[Help:Wiki_University_HTML--_Introduction#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, 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.  
 
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.  
Line 644: Line 640:
 
|-
 
|-
 
|  
 
|  
{{Transclusion demo}}  
+
<nowiki>{{Transclusion demo}}</nowiki>
  
 
| <pre>{{Transclusion demo}}
 
| <pre>{{Transclusion demo}}
Line 650: Line 646:
 
|-
 
|-
 
|  
 
|  
{{Help:Transclusion Demo}}  
+
<nowiki>{{Help:Transclusion Demo}}</nowiki>
  
 
| <pre>{{Help:Transclusion Demo}}
 
| <pre>{{Help:Transclusion Demo}}
Line 689: Line 685:
 
{{Contributor help-navbox}} {{Editing help}}  
 
{{Contributor help-navbox}} {{Editing help}}  
  
{{H-langs|es=Ayuda:Wikitexto|en=Help:Wiki markup}}  
+
{{H-langs|es=Ayuda:Wikitexto|en=Help:Wiki markup|pt=Ajuda:Marcação Wiki}}
 
+
__NOTOC__
[[Category:Help|{{PAGENAME}}]]
 

Latest revision as of 17:39, 27 June 2017

Get Involved in Wiki
Help:Wiki Help
Help:Editing the Wiki
Wiki markup

Wikitext' is the coding you use to format a FamilySearch Wiki page.

Colored Pencils.jpg

List of Wikitext Topics Covered


What it looks like
What you type
United States has Cemeteries. (Article link)
  • 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).
  • This an internal link to the article on US Cemeteries.
  • A red link is a page that doesn't exist yet but they can be created by clicking on the link and typing something in the edit box.
  • A link to the page you are on will appear only as bold text.
United States has [[Cemeteries]].
California also has cemeteries. (Renamed link)
  • Same target, different name.
  • The target ("piped") text must be placed first, then the text to be displayed, second.
California also has [[California Cemeteries|cemeteries]].


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

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

  • Link to Internet Engineering Task Force Request for Comments (RFCs).

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

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