Jump to content

Template:Wq-

Permanently protected template
From Meta, a Wikimedia project coordination wiki

:en:Africa

Template documentation

Inserts a localized Wikipedia link (or only target title) from a given Wikidata entity.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Entity ID1

Wikidata item identifier

Example
Q15
Stringrequired
Link label2

Link text, if you don’t want to use localized entity label from Wikidata.

Example
cradle of humanity
Stringoptional
Target language codelang

Short language code identifying the Wikipedia to which the link should lead. Defaults to the language of the current page.

Example
fr
Stringoptional
Do not format as linknolink

If set, only return the target page title instead of a wikilink. Ever true if you use {{Wq-}} template.

Example
1
Booleanoptional

Examples

  • {{wq|Q15}} will render as “Africa” in English page, and as “Afrique” in French page.
  • {{wq-|Q15}} will render as “ :en:Africa” in English page, and as “ :fr:Afrique” in French page.
  • [[{{wq-|Q15}}|continent]] will render as “continent” in English page, and as “continent” in French page.

See also

  • {{wd}}: same behavior as {{wq-}}, but uses user interface language instead of page language; and ever use the same fallback chain instead of linking to actually available Wikipedia pages.
  • {{lwp}}: same behavior as {{wq}}, but takes a Wikipedia article title as input, instead of Wikidata element Id.
  • {{label}}: gets the localized label of a Wikidata item.
  • {{Wda}}: gets any property and value from Wikidata through complex request.