Difference between revisions of "Template:Interwiki extra/doc"
imported>Fayenatic london (Update link) |
imported>Jonesey95 |
||
(One intermediate revision by one other user not shown) | |||
Line 21: | Line 21: | ||
=== Parameters === | === Parameters === | ||
− | * < | + | * <code>qid</code> Mandatory - The <Wikidata item Q-number> |
=== Associated category === | === Associated category === | ||
* [[:en:Category:Module:Interwiki extra: additional interwiki links|Tracking category for pages with additional interwiki links]] | * [[:en:Category:Module:Interwiki extra: additional interwiki links|Tracking category for pages with additional interwiki links]] | ||
Line 41: | Line 41: | ||
</templatedata> | </templatedata> | ||
− | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Interwiki link templates]] | [[Category:Interwiki link templates]] | ||
[[Category:Wikidata templates]] | [[Category:Wikidata templates]] | ||
− | </includeonly> | + | }}</includeonly> |
Latest revision as of 14:18, 31 May 2020
![]() | This is a documentation subpage for Template:Interwiki extra. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
Purpose
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 does not already have a link will display the extra link.
Example
The article Fibonacci number is in Wikidata connected to Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q47577). The redirect Fibonacci Sequence goes to the same article, but Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q23835349) cannot connect there. Other languages has chosen the other way around, such as es:Sucesión de Fibonacci. 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=Q23835349}}
This automatically adds sitelinks to the article, from d:Q23835349 when needed. Each Wikipedia variant can choose which qid to include without any interwiki conflict, but more conveniently than maintaining specific language links.
Usage
{{Interwiki extra|qid=Q<Wikidata item number>}}
Parameters
qid
Mandatory - The <Wikidata item Q-number>
Associated category
TemplateData
TemplateData for Interwiki extra
Get ''extra'' interwiki links from a specified Wikidata object, to complement existing links for the including article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Qid | qid | Wikidata item Q-number
| Unknown | required |