Template:Wikidata property link: Difference between revisions
Jump to navigation
Jump to search
Richardpruen (talk | contribs) m 1 revision imported: Templates and CSS files |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#switch: {{uc: | <includeonly>{{#switch:{{str left|{{uc:{{{id|}}}}}|1}} | ||
| N <!--none--> = {{#switch: {{uc: | | N <!--none--> = {{#switch:{{str left|{{uc:{{{1|}}}}}|1}} | ||
| P = [[d:Special:EntityPage/{{ | | P = [[d:Special:EntityPage/{{uc:{{{1|}}}}}|{{wikidata|label|{{uc:{{{1|}}}}}}}]] | ||
| [[d:Special:EntityPage/P{{ | | [[d:Special:EntityPage/P{{uc:{{{1|}}}}}|{{wikidata|label|P{{uc:{{{1|}}}}}}}]] | ||
}} | }} | ||
| O <!--only--> = {{#switch: {{uc: | | O <!--only--> = {{#switch:{{str left|{{uc:{{{1|}}}}}|1}} | ||
| P = [[d:Special:EntityPage/{{ | | P = [[d:Special:EntityPage/{{uc:{{{1|}}}}}|{{uc:{{{1|}}}}}]] | ||
| [[d:Special:EntityPage/P{{ | | [[d:Special:EntityPage/P{{uc:{{{1|}}}}}|P{{uc:{{{1|}}}}}]] | ||
}} | }} | ||
| F <!--first--> = {{#switch: {{uc: | | F <!--first--> = {{#switch:{{str left|{{uc:{{{1|}}}}}|1}} | ||
| P = [[d:Special:EntityPage/{{ | | P = [[d:Special:EntityPage/{{uc:{{{1|}}}}}|{{uc:{{{1|}}}}}]]{{#if:{{wikidata|label|{{uc:{{{1|}}}}}}}|: <small>{{wikidata|label|{{uc:{{{1|}}}}}}}</small>}} | ||
| [[d:Special:EntityPage/P{{ | | [[d:Special:EntityPage/P{{uc:{{{1|}}}}}|P{{uc:{{{1|}}}}}]]{{#if:{{wikidata|label|P{{uc:{{{1|}}}}}}}|: <small>{{wikidata|label|P{{uc:{{{1|}}}}}}}</small>}} | ||
}} | }} | ||
| #default = {{#switch: {{uc: | | #default = {{#switch:{{str left|{{uc:{{{1|}}}}}|1}} | ||
| P = [[d:Special:EntityPage/{{ | | P = [[d:Special:EntityPage/{{uc:{{{1|}}}}}|{{wikidata|label|{{uc:{{{1|}}}}}}} <small>({{uc:{{{1|}}}}})</small>]] | ||
| [[d:Special:EntityPage/P{{ | | [[d:Special:EntityPage/P{{uc:{{{1|}}}}}|{{wikidata|label|P{{uc:{{{1|}}}}}}} <small>(P{{uc:{{{1|}}}}})</small>]] | ||
}} | }} | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 17:54, 4 December 2022
Template:Wikidata property link displays a link to Wikidata property.
Usage examples
- Leading/trailing whitespace
{{Wikidata property link | 123 }}→ (P123){{Wikidata property link | P123 }}→ (P123)
- id = n(one)
{{Wikidata property link|123|id=n}}→ [[d:Special:EntityPage/P123|]]{{Wikidata property link|P123|id=none}}→ [[d:Special:EntityPage/P123|]]
- id = o(nly)
{{Wikidata property link|123|id=o}}→ P123{{Wikidata property link|P123|id=only}}→ P123
- id = f(irst)
{{Wikidata property link|123|id=f}}→ P123{{Wikidata property link|P123|id=first}}→ P123
- Template shortcuts
{{prop|123}}→ (P123){{property|P123}}→ P123 (P123){{wpl|123}}→ (P123){{WPL|P123}}→ (P123)
Supporting template and module
- {{wikidata|label}} which uses
{{#invoke:wd|label}}