Help:Wiki University Wikitext--Broken Links

From FamilySearch Wiki
Jump to: navigation, search
MAIN PAGE
WIKI
WIKITEXT
HTML/CSS
FAMILY HISTORY CENTERS
VISUAL EDITOR

Lessons


Intermediate


Advanced


Flexbox


Additional Helps

Broken link2.jpg

In the following material are examples of links that were entered incorrectly. Some links actually work but they don't look right. We refer to them as "broken" links.

In this lesson, you will see some of the mistakes people make in entering links and how to correct them.

1. External link with no name

[1].

  • NOTICE there is only a number rather than a name.
  • NOTICE by clicking on the link, it will take you to what was intended, however, you just don't know what the link is for or to what site it will take you.

This is how it was entered:

[https://wikipedia.org]

Error.jpgThe error: the external link was not given a name, so the browser gave it a number.
Repair icon .pngCorrection: insert a space after the initial URL [1] and enter a name you want to appear for the link.

This is how it should be entered:

[https://wikipedia.org Wikipedia]

  • NOTICE the space between org and Wikipedia.

The corrected link will now appear this way:

Wikipedia

2. Another example of link with no name

[2]

  • NOTICE that it created a numbered link.
  • NOTICE however, when you click on the number it takes you to a page that does not exist[2]

This is how it was entered:

[https://wikipedia.orgWikipedia]

Error.jpgThe error: there was NO SPACE between the URL and the name of the link.
Repair icon .pngCorrection: insert a space between the URL and the name of the link.

This how it should be entered:

[https://wikipedia.org Wikipedia]

  • NOTICE the space between org and Wikipedia.

The corrected link will now appear this way:

Wikipedia

3. External link with URL as the name

https://wikipedia.org

  • NOTICE this link does not look like an external link should. Unless insructed to do so, a name should be used for display, not the URL.

This is how it was entered:

[https://wikipedia.org https://wikipedia.org]

Error.jpgThe error: the URL was used as the name of the link rather than a proper name.
Repair icon .pngCorrection: replace the second URL with an appropriate name.

This is how it should be entered:

[https://wikipedia.org Wikipedia]

The corrected link will now appear this way:

Wikipedia

4. External link shows in HTML coding

<a href="https://wikipedia.org">Wikipedia</a>

  • NOTICE this is how an external link looks on the internet.

This is how it was entered:

<a href="https://wikipedia.org">Wikipedia</a>

Error.jpgThe error: the external link was entered as HTML coding, not Wikitext.
Repair icon .pngCorrection: place the URL inside the proper Wikitext external link brackets.

This is how it should be entered:

[https://wikipedia.org Wikipedia]

Broken Internal Links

There are a lot of different ways to break an internal link.

5. Using a space instead of a pipe

Missouri, United States Genealogy Missouri

  • NOTICE the link is red. This means the link will take you to a page that does not exist.

This is how it was entered

[[Missouri, United States Genealogy Missouri]]

Error.jpgThe error: there was no pipe between the page name and the name of the link if it was different than the page name
Repair icon .pngCorrection: place a pipe between the page name and the name of the link

This is how it should be entered:

[[Missouri, United States Genealogy|Missouri]]

The corrected link will now appear this way:

Missouri

6. Not having enough square brackets

[Missouri Genealogy|Missouri]

  • NOTICE this time the link is not even red. The browser thinks this coding is a normal sentence.

This was how it was entered

[Missouri, United States Genealogy|Missouri]

Error.jpgThe error: there was only one set of square brackets used instead of two opening and closing square brackets.
Repair icon .pngCorrection: add another set of square brackets to the single opening and closing square brackets.

This is how it should be entered:

[[Missouri, United States Genealogy|Missouri]]

The corrected link will now appear this way:

Missouri

7. Wrong kind of brackets

Template:Missouri, United States Genealogy
  • NOTICE the link is in red which means the page does not exist.
  • NOTICE the word template: with a colon. This indicates that the browser thinks this is a template. We will talk about templates in a later lesson.

This is how it was entered:

{{Missouri, United States Genealogy}}

Error.jpgThe error: curly brackets were used instead of square brackets.
Repair icon .pngCorrection: replace the curly brackets with square brackets.

This is how it should be entered:

[[Missouri, United States Genealogy|Missouri]]

The corrected link will now appear this way:

Missouri

Try these out

Tests.gif
Exercises

Copy and paste these codes for broken links in your sandbox and see if you can fix them:

[https://en.wikipedia.org/wiki/Main_PageWikipedia]
[Missouri, United States Genealogy|Missouri]
<ref="https://www.familysearch.com/wiki/California_Genealogy"|>California Geneology
[Missouri, United States Genealogy Additional ResourcesMissouri Aditional Resourses]]
[Glamorgan#Topics Glamorgan Topics]]
[[http://home.ancestry.com/ Ancestry.com]]

Quick Quiz
  • How can links be broken?
A. Too many brackets.
B. Not enough brackets.
C. Wrong kind of brackets.
D. No space in an external link between URL and name of link.
E. No pipe in an internal link between name of page and name of link.
F. Using the URL as the name of the link.
G. All of the above.
  1. URLs are always a string of letters, numbers and symbols with NO SPACES. Often an underscore is used to separate words to keep it as a string. As you have probably seen, some strings can be very long.
  2. The reason that it takes you to a non-existent website, is that the browser thinks the URL and the name are parts of the same link. As a result, your browser looks for a site with that combined name, which, of course, does not exist.

Navigation menu