Jump to content

FamilySearch Wiki:WikiProject Creating Interwiki Links: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 27: Line 27:
=== Step 1 - Sign up for a page to fix  ===
=== Step 1 - Sign up for a page to fix  ===


1. From the list above, choose a task list to work and click on the link. We suggest starting with the English Wiki. You will not need to know the language to fix the language Wiki pages.<br>
1. From the list above, choose a task list to work and click on the link. We suggest starting with the English Wiki. You will not need to know the language to fix the language Wiki pages.<br><br>


2. This will open a Google Sheet. Choose a Wiki page to work on 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.<br>  
2. This will open a Google Sheet. Choose a Wiki page to work on 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.<br> <br>


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 the dialogue box link to open the Wiki page you will work on.<br>
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 the dialogue box link to open the Wiki page you will work on.<br><br>


[[File:Google sheet.PNG|700px]]<br>
[[File:Google sheet.PNG|700px]]<br><br>


=== Step 2 - Find the Language Link===
=== Step 2 - Find the Language Link===
Line 41: Line 41:
[[File:Sign in boxes.PNG|600px]]<br><br>
[[File:Sign in boxes.PNG|600px]]<br><br>


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


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:
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:<br><br>


  <nowiki>{{H-langs|en=United States Genealogy|es=Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki>
  <nowiki>{{H-langs|en=United States Genealogy|es=Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki><br>


This code creates two language Wiki links for the English 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 at the bottom of the Wiki page:<br><br>
This code creates two language Wiki links for the English 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 at the bottom of the Wiki page:<br><br>
Line 55: Line 55:


'''Original wikitext code:'''<br>
'''Original wikitext code:'''<br>
  <nowiki>{{H-langs|en=United States Genealogy|es=Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki>
  <nowiki>{{H-langs|en=United States Genealogy|es=Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki><br><br>


1. 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: <nowiki>{{H-langs|en=United States Genealogy</nowiki><br>
1. 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: <nowiki>{{H-langs|en=United States Genealogy</nowiki><br><br>
The resulting wikitext code is:<br><br>
The resulting wikitext code is:<br><br>
  <nowiki>|es=Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki>
  <nowiki>|es=Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki><br><br>
2. Remove the pipe or vertical bar ("<nowiki>|</nowiki>") and add 2 square brackets before the "es" which stands for the Spanish Wiki and it will now look like this:<br>  
2. Remove the pipe or vertical bar ("<nowiki>|</nowiki>") and add 2 square brackets before the "es" which stands for the Spanish Wiki and it will now look like this:<br> <br>
  <nowiki>[[es=Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki><br>
  <nowiki>[[es=Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki><br><br>
3. Change the equal sign to a colon and it will now look like this:<br>
3. Change the equal sign to a colon and it will now look like this:<br><br>
  <nowiki>[[es:Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki><br>
  <nowiki>[[es:Estados Unidos - Genealogía|pt=Estados Unidos}}</nowiki><br><br>
4. Now replace the pipe with two square brackets facing the left. It will now look like this:<br>
4. Now replace the pipe with two square brackets facing the left. It will now look like this:<br><br>
  <nowiki>[[es:Estados Unidos - Genealogía]]pt=Estados Unidos}}</nowiki><br><br>
  <nowiki>[[es:Estados Unidos - Genealogía]]pt=Estados Unidos}}</nowiki><br><br>
5. If there was only one language link, you would skip the next part to Step 4.<br><br>
5. If there was only one language link, you would skip the next part to Step 4.<br><br>


'''Change other Link'''<br>
'''Change other Link'''<br>
6. Because there are two links in this example (Spanish and Portuguese), you need to create the other language template. Do this by going 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. The remaining wikitext should be:<br>
6. Because there are two links in this example (Spanish and Portuguese), you need to create the other language template. Do this by going 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. The remaining wikitext should be:<br><br>
  <nowiki>pt=Estados Unidos}}</nowiki><br>
  <nowiki>pt=Estados Unidos}}</nowiki><br><br>
7. Change the Portuguese link the same way you did the Spanish link by changing the equal sign to a colon, removing the curly brackets at the end of the link, and by adding square brackets to the beginning and the end of the link, like this:<br>  
7. Change the Portuguese link the same way you did the Spanish link by changing the equal sign to a colon, removing the curly brackets at the end of the link, and by adding square brackets to the beginning and the end of the link, like this:<br>v
  <nowiki>[[pt:Estados Unidos]]</nowiki><br>
  <nowiki>[[pt:Estados Unidos]]</nowiki><br><br>
8. The new completed wikitext code for the 2 language links should now look like this:<br>
8. The new completed wikitext code for the 2 language links should now look like this:<br><br>
  <nowiki>[[es:Estados Unidos - Genealogía]]</nowiki><br>
  <nowiki>[[es:Estados Unidos - Genealogía]]</nowiki><br><br>
  <nowiki>[[pt:Estados Unidos]]</nowiki><br>
  <nowiki>[[pt:Estados Unidos]]</nowiki><br><br>


'''Note:''' Each language has an abbreviation that will send the user to the correct language Wiki age.<br>
'''Note:''' Each language has an abbreviation that will send the user to the correct language Wiki age.<br>
Line 93: Line 93:
=== Step 4 - Review the Link  ===  
=== Step 4 - Review the Link  ===  


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.<br>
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.<br><br>
   
   
2. At the bottom of the page, you should see a "Show Preview" button. Click on it.<br>
2. At the bottom of the page, you should see a "Show Preview" button. Click on it.<br><br>


[[File:Preview button.PNG|400px]]<br><br>
[[File:Preview button.PNG|400px]]<br><br>


3. Scroll up the page until you see below the Tools menu on the left side of the screen, the phrase, "In other languages"<br>
3. Scroll up the page until you see below the Tools menu on the left side of the screen, the phrase, "In other languages"<br><br>


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


[[File:Interwiki links box.PNG|200px]]<br><br>
[[File:Interwiki links box.PNG|200px]]<br><br>


5. If the links do not appear on the page, review the above instructions and make any necessary adjustments to the wikitext code.<br>
5. If the links do not appear on the page, review the above instructions and make any necessary adjustments to the wikitext code.<br>v


=== Step 5 - Save the Page ===
=== Step 5 - Save the Page ===
1. With the old template now converted into the 2 new templates and it displaying correctly, you can now save the page.<br>
1. With the old template now converted into the 2 new templates and it displaying correctly, you can now save the page.<br><br>


2. Scroll back down the page and type, "Added Interwiki link" in the "Summary" field and click the blue button, "Save Changes."<br>
2. Scroll back down the page and type, "Added Interwiki link" in the "Summary" field and click the blue button, "Save Changes."<br><br>


3. Return to the task list and put the date you fixed the link beside your name.<br>
3. Return to the task list and put the date you fixed the link beside your name.<br><br>


4. You can now choose another Wiki page and repeat the above steps.<br>
4. You can now choose another Wiki page and repeat the above steps.<br><br>
<br>
<br>




[[Category:WikiProjects]]
[[Category:WikiProjects]]
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, smwadministrator, smwcurator, smweditor, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
795,753

edits