Módulo:Interwiki/doc
Esta es la página de documentación de Módulo:Interwiki
Purpose. This module provides a way to supply interwiki links to pages that cannot be fully served by Wikidata for a variety of reasons, such as:
- Two pages are substantially identical, but only one can be directly linked to Wikidata.
- Example: most Hebrew-script pages on this wiki, which are substantially identical to corresponding Latin-script pages.
- Pages that have exact analogues in only a few wikis, but near analogues in many wikis.
- This commonly happens in Template (Xablón), Project/Wikipedia (Vikipedya), and Help (Ayudo) name spaces.
- Page does not have its own entry in Wikidata.
- All pages are allowed to have entries in Wikidata, but in some of the cases above, it may or may not seem entirely necessary to create them.
Instructions
trocarIn case of reason 1 above
trocar- Open tabs in your browser for the following pages:
- The page having Wikidata links (example: Astronomiya)
- The substantially identical page without its own Wikidata links (example: אסטרונומייה)
- The Wikidata item of the first page (example: d:Q333)
- The Wikidata item of the second page (example: d:Q20819872)
- In the Wikidata item of the second page, add the following to "Statements": "permanent duplicated item" with the value of the Wikidata item of the first page. (Note: "permanent duplicated item" is property d:Property:P2959.)
- Ideally, also add "instance of (P31)" "Wikimedia permanent duplicated page (d:Q21286738)" to that Wikidata item.
- Edit the second page on this Wiki with the following code, at the bottom, just before categories. (If the page is a template, be sure this code is included within the <noinclude></noinclude> tags.)
{{#invoke:Interwiki|interwiki}}
- Ideally, in the Wikidata item of the first page, add "permanent duplicated item" with the value of the Wikidata item of the second page.
- Save all changes.
The second page should now include all the interwiki links of the first page.
If you have any questions, please contact User:StevenJ81, who will be glad to help.
In case of reason 2 above
trocar- Open tabs in your browser for the following pages:
- The page having just a few Wikidata links (example: Xablón:Interwiki paez)
- The near-analogue page with many Wikidata links (example: Xablón:InterWiki)
- The Wikidata item of the near-analogue page (example: d:Q6275256)
- Edit the first page on this Wiki with the following code, at the bottom, just before categories. (If the page is a template, be sure this code is included within the <noinclude></noinclude> tags.)
{{#invoke:Interwiki|interwiki|qid=Qnnnnnnn}}
, where Qnnnnnnn is the Wikidata item number of the near-analogue page.
- Save all changes.
The first page should now include all the interwiki links of the second page, except where an exact analogue already exists in the first page's own Wikidata item.
In case of reason 3 above
trocar- Consider creating a Wikidata item for the page, and proceed as in reason 1 above.
- Otherwise, proceed as in reason 2 above.