Template:Sitelink/doc

will retrieve the foreign language article title (sitelink) given the Wikidata Qid or local article title. If none is supplied, it uses the current page's Qid.

Parameters
lang – ISO-639 language code of the foreign Wikipedia page to be interrogated (required; alias: 1)

title – title of the English Wikipedia page (requred if qid is missing; and only one of qid and title may be specified)

qid – Wikidata id (item Q-number) of the wikidata item that the English Wikipedia page is linked to (required if title is missing)

linked – if present, the foreign Wikipedia title is linked (optional; default is plain text, no link)

shortlinked - if present, the foreign Wikipedia title is linked but displayed as the language code. This can be used in place of or in conjunction with linked

Examples

 * (name of the 'German Empire' article at Spanish Wikipedia, as linked by Wikidata item Q43287)
 * (param name not required for lang as long as it is the first/only unnamed param)
 * (same as above)
 * (fails; param name required for qid)
 * (English assumed if no lang)
 * ( is the ISO-639 language code for Croatian)
 * (linked to Croatian Wikipedia article)
 * (linked to Croatian Wikipedia article with 'hr' as display link)
 * (Croatian Wikipedia page for this very template)
 * (Croatian Wikipedia page for this very template)