Template:Interwiki from Wikidata

Template documentation[view · edit · history · purge]

Category:Main message boxesCategory:Lua-based templates This template adds interlanguage links (also known as interwiki links) to the categories which are linked to Wikidata category items.

Usage


{{Interwiki from wikidata}}

Deutsch: Die folgende Logik wird verwendet:
  • Wenn der Wikidata-Kategorieeintrag Sitelinks zu Wikipedia-Kategorien enthält, werden diese verwendet.
  • Wenn die Eigenschaft Thema der Kategorie (P301) verwendet wird, wird die QID des Artikelelements wiederhergestellt.
  • Für Wikipedias ohne Kategorie-Interlanguage-Links werden Interlanguage-Links zu Wikipedia-Artikeln hinzugefügt.
English: The following logic is used:
  • If the Wikidata category item has some sitelinks to Wikipedia categories those are used
  • If property category's main topic (P301) is used then the article item's QID is recovered
  • For Wikipedias without category interlanguage links, interlanguage links to Wikipedia articles are added
Español: Se usa la siguiente lógica:
  • Si el elemento de la categoría Wikidata tiene algunos enlaces de sitio a categorías de Wikipedia, estos se utiliza
  • Si se usa la propiedad tema principal de la categoría (P301), se recupera el QID del artículo del artículo
  • Para Wikipedias sin enlaces de interlengua de categorías, se agregan enlaces interlenguaje a artículos de Wikipedia
Français: La logique suivante est utilisée:
  • Si l'élément de la catégorie Wikidata a des liens annexes vers les catégories Wikipedia, ceux-ci sont utilisés
  • Si la propriété sujet de la catégorie (P301) est utilisée, le QID de l'article est récupéré
  • Pour les Wikipédias sans liens de catégorie interlangues, des liens interlangues vers des articles de Wikipédia sont ajoutés

Template parameters

ParameterDescriptionDefaultStatus
1
Wikidata
wikidata
QIDWikidata's item QID starting with "Q". It should not be needed in the pages linked to Wikidata.emptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Category:Templates using TemplateData

Template adds interlanguage links (also known as interwiki links) to the categories which are linked to Wikidata category items.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
QID1 Wikidata wikidata

Wikidata's item QID starting with "Q". It should not be needed in the pages linked to Wikidata.

Lineoptional

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: all users

Relies on:
Module:Interwiki

Example

{{Interwiki from wikidata|Q1281}}

renders as:

Localization

This template is not intended to be localized.

Category:Templates not requiring internationalization Category:Wikidata templates
Category:Lua-based templates Category:Main message boxes Category:Templates not requiring internationalization Category:Templates using TemplateData Category:Wikidata templates