Template:Q: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#ifeq: {{str left|{{{1|}}}|1}} | Q | <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|| <small dir="ltr">{{int:parentheses|{{{1|}}}}}</small>}}]] | | {{#if:{{{anchor|}}}|{{anchor|Item:{{{1|}}}}}}}[[Item:{{{1|}}}|{{label|{{{1|}}}}}{{#ifeq:{{{show_q|}}}|no|| <small dir="ltr">{{int:parentheses|{{{1|}}}}}</small>}}]] | ||
| {{#if:{{{anchor|}}}|{{anchor|Item:Q{{{1|}}}}}}}[[Item:Q{{{1|}}}|{{label|Q{{{1|}}}}}{{#ifeq:{{{show_q|}}}|no|| <small dir="ltr">{{int:parentheses|Q{{{1|}}}}}</small>}}]] | | {{#if:{{{anchor|}}}|{{anchor|Item:Q{{{1|}}}}}}}[[Item:Q{{{1|}}}|{{label|Q{{{1|}}}}}{{#ifeq:{{{show_q|}}}|no|| <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