Help:Advanced LinkingEdit This Page

From FamilySearch Wiki

(Difference between revisions)
m (added link)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<br>{{Contributor Help badge}}<br><br>
+
{{Help article}}  
  
 +
__TOC__
  
<u>'''Quick Reference:'''</u>  
+
{{Quick Reference|<br><br>
 +
*<u>Internal Link:</u> On the page where you want the link to appear, type:'''<nowiki>[[pagetitle|visibletext]]</nowiki> '''where "'''pagetitle'''" is the name of the article you want to link to, and "'''visibletext'''" is the text users see on the page and will click on to be directed to the linked article.
 +
*<u>External Link:</u> On the page where you want the link to appear, type:''' <nowiki>[http://hyperlink visibletext]</nowiki> '''where "'''<nowiki>http://hyperlink</nowiki>'''" is the url of the website you want to link to (including <nowiki>http://</nowiki>), and "'''visibletext'''" the text users see on the page and will click on to be directed to the other website or url.
 +
}}
  
{{how-to-articles}}
+
== Linking with Wikitext  ==
  
*<u>Internal Link:</u> On the page where&nbsp;you want the link to appear, type:'''&nbsp;<nowiki>[[pagetitle|visibletext]]</nowiki> '''where "'''pagetitle'''" = the name of the article you want to link to, and "'''visibletext'''" = the text users see on the page and will click on to be directed to the linked article.
+
=== How to create an internal link using Wikitext  ===
*<u>External Link:</u> On the page where&nbsp;you want the link to appear, type:'''&nbsp;<nowiki>[http://hyperlink visibletext]</nowiki> '''where "'''<nowiki>http://hyperlink</nowiki>'''" = the url of the website you want to link to (including <nowiki>http://</nowiki>), and "'''visibletext'''" the text users see on the page and will click on to be directed to the other website or url.<br>
+
  
== How to create an internal link using Wikitext  ==
+
To create internal links using the "Rich Editor", see [[Help:Create an internal link|Create an internal link]].
  
 
#Type double square brackets '''[['''.  
 
#Type double square brackets '''[['''.  
Line 18: Line 21:
 
''Tip:'' To enter the pipe symbol (|), hold the "Shift" key down and then press the \ (the shift and the backslash keys).  
 
''Tip:'' To enter the pipe symbol (|), hold the "Shift" key down and then press the \ (the shift and the backslash keys).  
  
'''Example:'''  
+
'''Examples:'''  
  
:<nowiki>[[African American Resources|African American Research]]</nowiki>
+
{| border="1" class="wikitable"
 +
|-
 +
! Description
 +
! You type
 +
! You get
 +
|-
 +
| Internal link
 +
| <pre>[[Main Page]]</pre>
 +
| [[Main Page]]
 +
|-
 +
| Piped link
 +
| <pre>[[Main Page|different text]]</pre>
 +
| [[Main Page|different text]]
 +
|-
 +
| Shortened sort-of-piped link
 +
| <pre>[[Main Page]]s</pre>
 +
| [[Main Page]]s
 +
|-
 +
| Redirect<br><br>See also [[Help:Redirects|Redirects]]
 +
| <pre>#REDIRECT [[Main Page]]</pre>
 +
| → [[Main Page]]
 +
|-
 +
| Internal link to an anchor at another page
 +
| <pre>[[Help:User page#See also]]</pre>  
 +
| [[Help:User page#See_also]]
 +
|-
 +
| Internal link to a subpage<br><br>See also [[Help:Subpages|Subpages]].
 +
| <pre>[[Help:Advanced Linking/example]]</pre>
 +
| [[Help:Advanced Linking/example]]
 +
|-
 +
| Internal link to a category page
 +
| <pre>[[:Category:Help]]</pre>
 +
| [[:Category:Help]]
 +
|-
 +
| Internal link to an image or a file of other types
 +
| <pre>[[media:example.jpg]]
 +
[[Media:Swedish Parishes.pdf]] </pre>
 +
| [[Media:Example.jpg]]
 +
[[Media:Swedish_Parishes.pdf]]
  
The text above will appear as: [[African American Resources|African American Research]] even thought the actual title of the article is "African American Resources."  
+
|-
 +
! colspan="3" | <center>Shortcut links related to the current page</center>
 +
|-
 +
| Internal link to an anchor on the current page<br><br>[[Help:Section|Section headings]] and the [[#top|top]] of the page are automatically anchored.
 +
| <pre>[[#See also]]</pre>
 +
| [[#See_also]]
 +
|-
 +
| Internal link to the current page's talk page<br><br>See also [[Help:Magic words#Variables|Magic words]]
 +
| <pre>[[{{TALKPAGENAME}}]]</pre>
 +
| [[{{TALKPAGENAME}}]]
 +
|}
 +
 
 +
=== How to create an external link using Wikitext  ===
 +
 
 +
To create external links using the "Rich Editor" see [[Help:Create an external link|Create an external link]].
 +
 
 +
#If you want the url visible on the page, type or paste it or the website on the page. Remember, the url MUST begin with "http://" or "https://".
 +
#If you want the url masked on the page, continue with the next 4 steps.
 +
#Type a single right-facing square bracket '''['''
 +
#Type or paste the url or website immediately after the single square bracket, without leaving a space between the bracket and the first letter or symbol of the url (website address). Remember, the url MUST begin with "http://" or "https://".  
 +
#After typing or pasting the exact url (website address) you are linking to, hit the spacebar once'', ''and then type the text that you want to appear as the link on the page.
 +
#Next type a single, left-facing square bracket ''']''' without leaving a space between the bracket and the last letter or symbol of the url or text.
 +
 
 +
'''Examples:'''
 +
 
 +
{| border="1" class="wikitable"
 +
|-
 +
! style="width: 15%" | Description
 +
! style="width: 45%" | You type
 +
! style="width: 40%" | You get
 +
|-
 +
| External link
 +
| <pre>http://mediawiki.org</pre>
 +
| http://mediawiki.org
 +
|-
 +
| External link with different label
 +
| <pre>[http://mediawiki.org MediaWiki]</pre>
 +
| [http://mediawiki.org MediaWiki]
 +
|-
 +
| External link numbered
 +
| <pre>[http://mediawiki.org]</pre>
 +
| [http://mediawiki.org]
 +
|-
 +
| External link to the same host
 +
| <pre>[http://{{SERVERNAME}}/pagename]</pre>
 +
| [http://{{SERVERNAME}}/pagename]
 +
|-
 +
| External link to other host passing the pagename
 +
| <pre>[http://google.com/search?q={{PAGENAME}}]</pre>
 +
| [http://google.com/search?q={{PAGENAME}}]
 +
|-
 +
| Mailto link
 +
| <pre>[mailto:info@example.org email me]</pre>
 +
| [mailto:info@example.org email me]
 +
|-
 +
| Mailto named with subject line and body
 +
| <pre>[mailto:info@example.org?Subject=URL%20Encoded%20Subject&amp;body=Body%20Text info]</pre>
 +
| [mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]
 +
|}
 +
 
 +
== Other links  ==
  
 
=== Linking to a category  ===
 
=== Linking to a category  ===
  
To create a link to a category, use a leading colon before the category name. (Without this colon, it will add the current page to the category.) To change the link text, write the text inside the link tag after a pipe.
+
To create a link to a category, use a leading colon before the category name. (Without this colon, it will add the current page to the category.)  
  
 
  <nowiki>[[</nowiki>:{{ns:category}}:''NAME'']]
 
  <nowiki>[[</nowiki>:{{ns:category}}:''NAME'']]
<nowiki>[[</nowiki>:{{ns:category}}:''NAME''|''TEXT'']]
 
 
  
For example, to link to "{{ns:category}}:Help", write "<code><nowiki>[[</nowiki>:{{ns:category}}:Help]]</code>", which will result in [[:<span class=|{{ns:category}}:Help"&gt;:{{ns:category}}:Help]].  
+
<br> To change the display text, write the text inside the link tag after a pipe.  
  
[[Help:Redirect|Redirect pages]] must also use the colon, otherwise it will be added to the category instead of redirecting.
+
<nowiki>[[</nowiki>:{{ns:category}}:''NAME''|''DISPLAY TEXT'']]
  
== How to create an external link using Wikitext  ==
+
<br> Redirected categories must also use the colon, otherwise they will be added to the category instead of redirecting.
  
#Type&nbsp;a single&nbsp;right-facing square bracket '''['''
+
=== Interlanguage Links  ===
#Type or paste the url or website&nbsp;immediately after the single&nbsp;square bracket, without leaving a space between the bracket and the first letter or symbol of the url (website address).&nbsp;Remember, the url MUST begin with "http://"&nbsp;or "https://"
+
#If you want the url visible&nbsp;on the page, skip to step 5. If you want the&nbsp;url masked&nbsp;on the page, continue with step 4.
+
#After typing or pasting the exact url (website address) you are linking to, hit the spacebar once'', ''and then type the text that you want to appear as the link on the page.
+
#Next type&nbsp;a single, left-facing&nbsp;square bracket ''']''' without leaving a space between the bracket and the last letter&nbsp;or symbol of the url&nbsp;or text.
+
  
'''Example:'''
+
Links to other [[FamilySearch Wiki:Non-English versions of the wiki|language versions]] of this wiki can be created using the {{tl|H-langs}} template.
  
:<nowiki>[http://www.familysearch.org FamilySearch]</nowiki>
+
=== Interwiki Links  ===
  
The text above will appear as:[http://www.familysearch.org FamilySearch] even though the actual website url is "http://www.familysearch.org."
+
Interwiki links to other wikis are generally not used on this wiki. Links to other wikis are usually created by using the standard methods for creating external links or by using the templates listed below under Creating Links Using Templates.  
  
== Other links ==
+
{{admin tip|tip=See {{mediawiki|Manual:Interwiki}} for the management of interwiki links of your wiki.}}
  
=== Internal Websites ===
+
=== Creating Links Using Templates ===
  
*For links within the Research Wiki, see [[Create an internal link|Basic internal linking]].
+
Templates for creating common links are available, each with their own set of instructions:<br>
  
=== External Links  ===
+
External links:
  
*For those external links not listed below, see [[Create an external link|Basic external linking]].
+
:*'''Family History Library Catalog''' (FHLC). Instructions: {{tl|FHL}}
 
+
:*'''Record Search'''. Instructions: {{tl|RecordSearch}}
=== Interwiki Links  ===
+
:*'''WorldCat/OCLC''' (English Language). Instructions: {{tl|WorldCat}}
 +
:*'''Wikipedia''' (English Language) - Inline link. Instructions: {{tl|Wpd}}
 +
:*'''Wikipedia''' (English Language) - Wikipedia box. Instructions: {{tl|Wikipedia}}
 +
:*'''Internet Archive''' (Wayback machine). Instructions: {{tl|Wayback}}
  
*Instructions for using the {{tl|Wpd}} template for creating interwiki links to articles in the English-language [[wikipedia:Wikipedia|Wikipedia]].
+
=== Creating Image Links  ===
  
=== Family History Library Catalog (FHLC) Links  ===
+
'''Single link'''
  
*Instructions for using the {{tl|FHL}} template for creating links to the Family History Library Catalog.
+
The text below will make a 100px width picture with a link to the page [[FamilySearch]]:
  
=== Record Search Links ===
+
  <nowiki>[[</nowiki>File:FamilySearch Logo.jpg|100px|link=FamilySearch]]
  
*Instructions for using the {{tl|RecordSearch}} template for creating links to [{{RecordSearch}} Record Search].
+
<br> [[Image:FamilySearch Logo.jpg|100px|FamilySearch Logo.jpg]]
  
=== WorldCat/OCLC Links  ===
+
'''Multiple links from the same image'''
  
*Instructions for using the {{tl|WorldCat}} template for creating links to the English-language [http://www.WorldCat.org WorldCat/OCLC] catalog.
+
An image can also be used to link to different pages when a user clicks on different parts of the image. See [[Help:Image maps]] for more information.  
  
=== Wikipedia Links  ===
+
<br> {{Contributor help-navbox}} {{Editing help}}
  
*Instructions for using the {{tl|Wikipedia}} template for creating interwiki links to articles in the English-language [[wikipedia:Wikipedia|Wikipedia]].
+
{{H-langs|es=Ayuda:Enlaces avanzados|en=Help:Advanced Linking}}
  
[[Category:Help|{{PAGENAME}}]]
+
[[Category:Help]]

Latest revision as of 22:21, 14 November 2013

Help-content.png This help article will guide you as you edit in the Wiki. See Contributor Help for more help articles.


Contents


Linking with Wikitext

How to create an internal link using Wikitext

To create internal links using the "Rich Editor", see Create an internal link.

  1. Type double square brackets [[.
  2. Type the name of the article you want to link to immediately after the two square brackets, without leaving a space between the brackets. This is the actual article you will link to. If you want the text on the page to show the actual article title, skip to step 4. If you want the text on the page to read differently from the actual article title, continue with step 3.
  3. After typing the exact name of the article you are linking to, type the pipe symbol |, and then type the text that you want to appear as the link on the page.
  4. Next type double square brackets ]] without leaving a space between the bracket and the last letter of the title or text.

Tip: To enter the pipe symbol (|), hold the "Shift" key down and then press the \ (the shift and the backslash keys).

Examples:

Description You type You get
Internal link
[[Main Page]]
Main Page
Piped link
[[Main Page|different text]]
different text
Shortened sort-of-piped link
[[Main Page]]s
Main Pages
Redirect

See also Redirects
#REDIRECT [[Main Page]]
Main Page
Internal link to an anchor at another page
[[Help:User page#See also]]
Help:User page#See_also
Internal link to a subpage

See also Subpages.
[[Help:Advanced Linking/example]]
Help:Advanced Linking/example
Internal link to a category page
[[:Category:Help]]
Category:Help
Internal link to an image or a file of other types
[[media:example.jpg]]
[[Media:Swedish Parishes.pdf]] 
Media:Example.jpg

Media:Swedish_Parishes.pdf

Shortcut links related to the current page
Internal link to an anchor on the current page

Section headings and the top of the page are automatically anchored.
[[#See also]]
#See_also
Internal link to the current page's talk page

See also Magic words
[[{{TALKPAGENAME}}]]
Help talk:Advanced Linking

How to create an external link using Wikitext

To create external links using the "Rich Editor" see Create an external link.

  1. If you want the url visible on the page, type or paste it or the website on the page. Remember, the url MUST begin with "http://" or "https://".
  2. If you want the url masked on the page, continue with the next 4 steps.
  3. Type a single right-facing square bracket [
  4. Type or paste the url or website immediately after the single square bracket, without leaving a space between the bracket and the first letter or symbol of the url (website address). Remember, the url MUST begin with "http://" or "https://".
  5. After typing or pasting the exact url (website address) you are linking to, hit the spacebar once, and then type the text that you want to appear as the link on the page.
  6. Next type a single, left-facing square bracket ] without leaving a space between the bracket and the last letter or symbol of the url or text.

Examples:

Description You type You get
External link
http://mediawiki.org
http://mediawiki.org
External link with different label
[http://mediawiki.org MediaWiki]
MediaWiki
External link numbered
[http://mediawiki.org]
[1]
External link to the same host
[http://{{SERVERNAME}}/pagename]
[2]
External link to other host passing the pagename
[http://google.com/search?q={{PAGENAME}}]
Linking
Mailto link
[mailto:info@example.org email me]
email me
Mailto named with subject line and body
[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]
info

Other links

Linking to a category

To create a link to a category, use a leading colon before the category name. (Without this colon, it will add the current page to the category.)

[[:Category:NAME]]


To change the display text, write the text inside the link tag after a pipe.

[[:Category:NAME|DISPLAY TEXT]]


Redirected categories must also use the colon, otherwise they will be added to the category instead of redirecting.

Interlanguage Links

Links to other language versions of this wiki can be created using the {{H-langs}} template.

Interwiki Links

Interwiki links to other wikis are generally not used on this wiki. Links to other wikis are usually created by using the standard methods for creating external links or by using the templates listed below under Creating Links Using Templates.

Tools.png Tip for wiki admins: See Manual:Interwiki for the management of interwiki links of your wiki.

Creating Links Using Templates

Templates for creating common links are available, each with their own set of instructions:

External links:

  • Family History Library Catalog (FHLC). Instructions: {{FHL}}
  • Record Search. Instructions: {{RecordSearch}}
  • WorldCat/OCLC (English Language). Instructions: {{WorldCat}}
  • Wikipedia (English Language) - Inline link. Instructions: {{Wpd}}
  • Wikipedia (English Language) - Wikipedia box. Instructions: {{Wikipedia}}
  • Internet Archive (Wayback machine). Instructions: {{Wayback}}

Creating Image Links

Single link

The text below will make a 100px width picture with a link to the page FamilySearch:

[[File:FamilySearch Logo.jpg|100px|link=FamilySearch]]


FamilySearch Logo.jpg

Multiple links from the same image

An image can also be used to link to different pages when a user clicks on different parts of the image. See Help:Image maps for more information.



  • This page was last modified on 14 November 2013, at 22:21.
  • This page has been accessed 3,145 times.