Template:Wq
Appearance
Inserts a localized Wikipedia link (or only target title) from a given Wikidata entity.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Entity ID | 1 | Wikidata item identifier
| String | required |
Link label | 2 | Link text, if you don’t want to use localized entity label from Wikidata.
| String | optional |
Target language code | lang | Short language code identifying the Wikipedia to which the link should lead. Defaults to the language of the current page.
| String | optional |
Do not format as link | nolink | If set, only return the target page title instead of a wikilink. Ever true if you use {{Wq-}} template.
| Boolean | optional |
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.