Template:Q: Difference between revisions

From wikibase
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{label|{{{1|}}}|capitalization={{{capitalization|}}} |show_id=1 |link=wikidata}}
<noinclude>
== Usage ==
This is used to show a localized label for an item, linked to the item page. It automatically uses the current user's language. For example:
 
{{Tlxp|Q|10}} → {{Q|10}}
 
You can use the {{Para|show_q|no}} to hide the <small>(QXX)</small> prefix, as in:
 
{{Tlxp|Q|10|3=show_q=no}} → {{Q|10|show_q=no}}
</noinclude><includeonly>{{#ifeq: {{str left|{{{1|}}}|1}} | Q 
| {{#if:{{{anchor|}}}|{{anchor|Item:{{{1|}}}}}}}[[Item:{{{1|}}}|{{label|{{{1|}}}}}{{#ifeq:{{{show_q|}}}|no||&#32;<small dir="ltr">{{int:parentheses|{{{1|}}}}}</small>}}]]
| {{#if:{{{anchor|}}}|{{anchor|Item:Q{{{1|}}}}}}}[[Item:Q{{{1|}}}|{{label|Q{{{1|}}}}}{{#ifeq:{{{show_q|}}}|no||&#32;<small dir="ltr">{{int:parentheses|Q{{{1|}}}}}</small>}}]]
}}</includeonly>

Latest revision as of 09:57, 17 December 2024

Usage[edit source]

This is used to show a localized label for an item, linked to the item page. It automatically uses the current user's language. For example:

<templatestyles src="Template:Mono/styles.css"/><templatestyles src="Template:Nowrap/styles.css"/>{{Q|10}}Along the Briny Beach (Q10)

You can use the |show_q=no to hide the (QXX) prefix, as in:

<templatestyles src="Template:Mono/styles.css"/><templatestyles src="Template:Nowrap/styles.css"/>{{Q|10|show_q=no}}Along the Briny Beach