Difference between revisions of "Template:Q"

From DiSSCo Modelling Framework
Jump to navigation Jump to search
wd>Matěj Suchánek
(Fulfilling edit request by Tacsipacsi)
 
m (2 revisions imported: Import of useful Templates and Modules from Wikidata)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{label|{{{1|}}}|capitalization={{{capitalization|}}} |show_id=1 |link=wikidata}}<noinclude>{{documentation}}</noinclude>
+
<includeonly>{{#ifeq: {{padleft:|1|{{#if:1|{{{1|}}}}}}} | Q 
 +
| [[{{MediaWiki:ItemNamespace}}{{{1|}}}|{{#invoke:Wikibase|label|{{{1|}}}}} <small>{{int:parentheses|{{{1|}}}}}</small>]]
 +
| [[{{MediaWiki:ItemNamespace}}Q{{{1|}}}|{{#invoke:Wikibase|label|Q{{{1|}}}}} <small>{{int:parentheses|Q{{{1|}}}}}</small>]]
 +
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 20:47, 6 January 2022

50px Template:Documentation/getText[[[Template:Q/doc|Template:Documentation/getText]] · [[Special:EditPage/Template:Q/doc|Template:Documentation/getText]] · [[Special:PageHistory/Template:Q/doc|Template:Documentation/getText]] · [[Special:Purge/Template:Q#|Template:Documentation/getText]] ]

Usage

{{Q}} is used to get an automatically localized link to an item; {{QT}} links to the item's talk page; {{QB}} links to both. A variety of alternative templates is also available; see list below.

For example:

Q

QT


QB

TemplateData

Displays an item label in user language and a link to its wikipage

Template parameters

ParameterDescriptionTypeStatus
item1

The item to show

Pagerequired
capitalizationcapitalization

no description

Lineoptional

See also

Page Module:Message box/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "CSS").