FamilySearch Wiki:WikiProject Creating Interwiki Links: Difference between revisions

Line 41: Line 41:


=== Step 3 - Fix the Language Link ===
=== Step 3 - Fix the Language Link ===
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:
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:<br><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>


:a. From the above wikitext, delete the 2 curly brackets, template name and the en= and name of the page. In this example would take out the following:<br>
: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: <nowiki>{{H-langs|en=United States Genealogy</nowiki><br>
<nowiki>{{H-langs|en=United States Genealogy</nowiki><br>
:b. Also delete the curly brackets at the end of the link located after "Estados Unidos."
: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, like this:<br>  
:c. Add 2 square brackets before the "es" which stands for the Spanish Wiki and it will now look like this:<br>  
  <nowiki>[[es=Estados Unidos - Genealogía</nowiki><br>
  <nowiki>[[es=Estados Unidos - Genealogía</nowiki><br>
:c. Now replace the pipe <nowiki>|</nowiki> with two square brackets facing the left. It will look like this:<br>
:c. Now replace the pipe <nowiki>|</nowiki> with two square brackets facing the left. It will now look like this:<br>
  <nowiki>[[es=Estados Unidos - Genealogía]]</nowiki><br>
  <nowiki>[[es=Estados Unidos - Genealogía]]</nowiki><br>
:d. Because there are two links you need to create from this language template, go 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.<br>
: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.<br>
: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:<br>  
: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:<br>  
  <nowiki>[[pt=Estados Unidos]]</nowiki><br>
  <nowiki>[[pt=Estados Unidos]]</nowiki><br>
Line 61: Line 61:
'''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>
Here is a key:<br>
Here is a key:<br>
{|
*en English<br>
*en English<br>
*es: Spanish<br>
*es: Spanish<br>
Line 73: Line 72:
*zh: Chinese<br>
*zh: Chinese<br>
*sv: Swedish<br>
*sv: Swedish<br>
|}


=== Step 4 - Preview and Save the page ===
=== Step 4 - Preview and Save the page ===
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