Template:Q

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Documentationviewedithistorypurge
This documentation is transcluded from Template:Q/doc.

This template returns localized link to a particular Wikidata item. {{Q|Q1}} gives universe (Q1)

Usage

{{Q |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1
item
item IDItem ID (aka. Q-code) number in form "Q" + item number, or just a numberemptyrequired
2
lang
languageLanguage code (only needs to be provided if the language displayed is to be fixed and independent of the user’s preferences).emptyoptional
capitalizationcapitalizationcan be:
uc: upper case
lc: lower case
ucfirst: upper case for the first letter
lcfirst: lower case for the first letter
none: to leave it as is
noneoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Relies on:
{{Label}} and Module:Wikidata label

Example

See also

This template display a link to a particular Wikidata item.

Template parameters

ParameterDescriptionTypeStatus
Item ID1 Item ID Item number Q number Wikidata item Wikidata item Q code number

Number of the Wikidata item you want to show, without the preceding Q

Example
42
Stringrequired
Language2 lang language

Language code – only needs to be provided if the language displayed is to be fixed and independent of the user's preferences

Example
es
Stringoptional
Langlang

no description

Unknownoptional
Capitalizationcapitalization

can be: uc (upper case), lc (lower case), ucfirst (upper case for the first letter), lcfirst (lower case for the first letter), none (to leave it as is)

Example
uc
Stringoptional