Jump to content

Template:Interwiki extra/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Example: editing this section to reflect that Fibonacci sequence is now the article title
Emk (talk | contribs)
Example: Changed the example because ltwiki moved the article
 
Line 8: Line 8:


=== Example ===
=== Example ===
The article [[Fibonacci sequence]] is in Wikidata connected to {{Q|Q23835349}}. The redirect [[Fibonacci number]] goes to the same article, but {{Q|Q47577}} cannot connect there. Other languages have chosen the other way around, such as ''[[:lt:Fibonačio skaičius]]''. From Wikidata perspective they are different concepts though, and should not be merged.
The article [[Fibonacci sequence]] is in Wikidata connected to {{Q|Q23835349}}. The redirect [[Fibonacci number]] goes to the same article, but {{Q|Q47577}} cannot connect there. Other languages have chosen the other way around, such as ''[[:simple:Fibonacci number]]''. From Wikidata perspective they are different concepts though, and should not be merged.


The main article for each language can get extra links from the secondary concept by including the template with the other qid. E.g.
The main article for each language can get extra links from the secondary concept by including the template with the other qid. E.g.

Latest revision as of 08:44, 29 November 2024

Purpose

[edit]

Get extra interwiki links from a specified Wikidata object, to complement existing links for the including article.

Note: The page is normally also itself linked directly from Wikidata. Only languages that do not already have a link will display the extra link.

Example

[edit]

The article Fibonacci sequence is in Wikidata connected to Fibonacci sequence (Q23835349). The redirect Fibonacci number goes to the same article, but Fibonacci number (Q47577) cannot connect there. Other languages have chosen the other way around, such as simple:Fibonacci number. From Wikidata perspective they are different concepts though, and should not be merged.

The main article for each language can get extra links from the secondary concept by including the template with the other qid. E.g.

{{Interwiki extra|qid=Q47577}}

This automatically adds sitelinks to the article, from d:Q47577 when needed. Each Wikipedia variant can choose which qid to include without any interwiki conflict, but more conveniently than maintaining specific language links.

Usage

[edit]

{{Interwiki extra|qid=Q<Wikidata item number>}}

Parameters

[edit]
  • qid Mandatory - The <Wikidata item Q-number>

Associated category

[edit]

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Interwiki extra in articles based on its TemplateData.

TemplateData for Interwiki extra

Get ''extra'' interwiki links from a specified Wikidata object, to complement existing links for the including article.

Template parameters

ParameterDescriptionTypeStatus
qidqid

Wikidata item Q-number

Example
Q23835349
Unknownrequired