Template:Llink/doc
This is a documentation subpage for Template:Llink. It contains usage information, categories, and other content that is not part of the original template page. |
This template provides the label of a Wikidata Item in another language.
Modules Used[edit]
- . Wikidata
- . Linguistic
- . Fallback
- . I18n/wikidata
- . I18n/linguistic
Usage[edit]
{{Llink | Wikidata QID | languagecode }} If second parameter (language) is not given, the Wikidata label in local language is generated.
Example[edit]
- . {{Llink |Q1|hi}} gives ब्रह्माण्ड
- . {{Llink |Q1}} gives Universe in home language.
Note[edit]
The Wikidata label in a language is not necessarily the sitelink of the Wikiipedia page for that Wikidata item in that language. Therefore, using the labels to provide site links (even with a interwiki preface) may not work in several cases like:
- . When the site is linked but a label in that language is not entered in the Wikidata page for that item.
- . When the label is entered but there is not a corresponding Wikipedia page in that language.
- . When there is a page with the same title as the label but the page itself is a disambiguation page.