FamilySearch Wiki:WikiProject Creating Interwiki Links: Difference between revisions

Line 58: Line 58:


: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>
: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>
:b. Also delete the curly brackets at the end of the link located after "Estados Unidos."
The resulting wikitext code is:<br><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|pt=Estados Unidos}}</nowiki>
:b. Remove the pipe and 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>
:d. Change the equal sign to a colon and it will now look like this:<br>
:c. Change the equal sign to a colon and it will now look like this:<br>
  <nowiki>[[es:Estados Unidos - Genealogía</nowiki><br>
  <nowiki>[[es:Estados Unidos - Genealogía</nowiki><br>
:e. Now replace the pipe <nowiki>|</nowiki> with two square brackets facing the left. It will now look like this:<br>
:d. 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><br>
  <nowiki>[[es:Estados Unidos - Genealogía]]</nowiki><br><br>


'''Change other Link'''
'''Change other Link'''<br>
:f. 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. 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. The remaining wikitext should be:<br>
  <nowiki>pt=Estados Unidos}}</nowiki>
  <nowiki>pt=Estados Unidos}}</nowiki><br>
:g. 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>  
:f. 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>  
  <nowiki>[[pt:Estados Unidos]]</nowiki><br>
  <nowiki>[[pt:Estados Unidos]]</nowiki><br>
:h. The new completed wikitext code for the 2 language links should now look like this:<br>
:g. The new completed wikitext code for the 2 language links should now look like this:<br>
  <nowiki>[[es:Estados Unidos - Genealogía]]</nowiki><br>
  <nowiki>[[es:Estados Unidos - Genealogía]]</nowiki><br>
  <nowiki>[[pt:Estados Unidos]]</nowiki><br>
  <nowiki>[[pt:Estados Unidos]]</nowiki><br>
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