Template:P: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{ | <noinclude> | ||
== Usage == | |||
This is used to show a localized label for a property, linked to the property page. It automatically uses the current user's language. {{Tlxp|P}} is a shortcut that redirects here. For example: | |||
{{Tlxp|P|25}} → {{P|25}} | |||
You can use the {{Para|show_p|no}} to hide the <small>(PXX)</small> prefix, as in: | |||
{{Tlxp|P|25|3=show_p=no}} → {{P|25|show_p=no}} | |||
</noinclude><includeonly>{{#ifeq: {{str left|{{{1|}}}|1}} | P | |||
| {{#if:{{{anchor|}}}|{{anchor|Property:{{{1|}}}}}}}[[Property:{{{1|}}}|{{label|{{{1|}}}}}{{#ifeq:{{{show_p|}}}|no|| <small dir="ltr">{{int:parentheses|{{{1|}}}}}</small>}}]] | | {{#if:{{{anchor|}}}|{{anchor|Property:{{{1|}}}}}}}[[Property:{{{1|}}}|{{label|{{{1|}}}}}{{#ifeq:{{{show_p|}}}|no|| <small dir="ltr">{{int:parentheses|{{{1|}}}}}</small>}}]] | ||
| {{#if:{{{anchor|}}}|{{anchor|Property:P{{{1|}}}}}}}[[Property:P{{{1|}}}|{{label|P{{{1|}}}}}{{#ifeq:{{{show_p|}}}|no|| <small dir="ltr">{{int:parentheses|P{{{1|}}}}}</small>}}]] | | {{#if:{{{anchor|}}}|{{anchor|Property:P{{{1|}}}}}}}[[Property:P{{{1|}}}|{{label|P{{{1|}}}}}{{#ifeq:{{{show_p|}}}|no|| <small dir="ltr">{{int:parentheses|P{{{1|}}}}}</small>}}]] | ||
}}</includeonly> | }}</includeonly> |
Revision as of 09:54, 17 December 2024
Usage
This is used to show a localized label for a property, linked to the property page. It automatically uses the current user's language. <templatestyles src="Template:Mono/styles.css"/><templatestyles src="Template:Nowrap/styles.css"/>{{P}} is a shortcut that redirects here. For example:
<templatestyles src="Template:Mono/styles.css"/><templatestyles src="Template:Nowrap/styles.css"/>{{P|25}} → has characteristic (P25)
You can use the |show_p=no
to hide the (PXX) prefix, as in:
<templatestyles src="Template:Mono/styles.css"/><templatestyles src="Template:Nowrap/styles.css"/>{{P|25|show_p=no}} → has characteristic