FamilySearch Wiki:WikiProject Creating Interwiki Links

From FamilySearch Wiki
Adding Interwiki Links

Purpose[edit | edit source]

We have a new Wiki extension that allows us to move the link (located on the left side bar) indicating if that Wiki page is available in different languages. We will be editing the former Language template at the bottom of the page to create this new link. This will improve visibility and accessibility to Wiki articles in multiple languages.

Task List[edit | edit source]

Project Instructions[edit | edit source]

Step 1 - Sign up for a page to fix[edit | edit source]

1. From the list above, choose a task list to work and click on the link. This will open up a Google Sheet.

2. Choose a Wiki page and put your name in column A next. Once you have completed the task, you will return to the Google Sheet and put the date beside your name.

3. Click on the link to go to that Wiki page. On a google sheet, after you click on the link, a small dialogue box with the URL will appear. You must click that link to open the Wiki page you will work on.

Step 2 - Find the Language Link[edit | edit source]

1. Once on the Wiki page, make sure you are logged into the Wiki. You will know if you are logged into the Wiki if you can see your FamilySearch username in the top right hand corner of the screen, as seen below with the username, Batsondl.

Sign in boxes.PNG

2. Once you are logged in, you will see a tab in the top right corner of the screen, labeled, "Edit Source." Click on that tab and you will now see the wikitext code for the page.

3. Use the scroll bar on the wikitext box and go to the bottom of the page. You will see some wikitext code that looks something like this:

{{H-langs|en=United States Genealogy|es=Estados Unidos - Genealogía|pt=Estados Unidos}}

This code creates two language Wiki links for the Wiki page, United States Genealogy: one link to the Spanish Wiki (Estados Unidos - Genealogía) and one link to the Portuguese Wiki (pt=Estados Unidos). That link looks like this when displayed on the Wiki page:

Language old link 2.PNG

Step 3 - Fix the Language Link[edit | edit source]

1. Once you locate the code at the bottom of the page, you will now alter it to match the coding for an Interwiki link by doing the following:

Original wikitext code:

{{H-langs|en=United States Genealogy|es=Estados Unidos - Genealogía|pt=Estados Unidos}}
a. From the above wikitext, delete the 2 curly brackets, template name and the en= and name of the page. In this example we would take out the following wikitext: {{H-langs|en=United States Genealogy
b. Also delete the curly brackets at the end of the link located after "Estados Unidos."
c. Add 2 square brackets before the "es" which stands for the Spanish Wiki and it will now look like this:
[[es=Estados Unidos - Genealogía
c. Now replace the pipe | with two square brackets facing the left. It will now look like this:
[[es=Estados Unidos - Genealogía]]
d. Because there are two links you need to create from this language template - both Spanish and Portuguese, go to the end of the Spanish word and the square brackets, "Genealogía]]" and click on the "Enter" key to make the rest of the link go to the next line.
e. Change the Portuguese link the same way you did the Spanish link by adding square brackets to the beginning and the end of the link, like this:
[[pt=Estados Unidos]]
f. The new completed wikitext code for the 2 language links should now look like this:
[[es=Estados Unidos - Genealogía]]
[[pt=Estados Unidos]]

Note: Each language has an abbreviation that will send the user to the correct language Wiki age.
Here is a key:

  • en English
  • es: Spanish
  • pt: Portuguese
  • fr: French
  • de: German
  • it: Italian
  • ru: Russian
  • ja: Japanese
  • ko: Korean
  • zh: Chinese
  • sv: Swedish

Step 4 - Review the Link[edit | edit source]

1. Now that the Interwiki templates for both Spanish and Portuguese are made, let's check to make sure it will appear on the page correctly.

2. At the bottom of the page, you should see a "Show Preview" button. Click on it.

3. Scroll up the page until you see below the Tools menu, the phrase, "In other languages"

4. Directly below it you should see links labeled, Español and Português. Below is an example of interwiki links:

Interwiki links.PNG

Step 5 - Delete the old Link and Save the Page[edit | edit source]

1. With the new link in place and displaying correctly, you need to remove the old link before saving the page.

2.

5. If all the language links appear correctly, scroll back down the page and type, "Added Interwiki" link in the "Summary" field and click the blue button, "Save Changes."