Template:Wikidata property link
Appearance
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the discussion page before implementing them. |
Template:Wikidata property link displays a link to Wikidata property.
Usage examples
[edit source]- Standard usage
{{Wikidata property link|123}}→ [[d:Special:EntityPage/P123|QLABEL (Qlabel) (P123)]]{{Wikidata property link|P123}}→ [[d:Special:EntityPage/P123|QLABEL (Qlabel) (P123)]]
- Leading/trailing whitespace
{{Wikidata property link | 123 }}→ [[d:Special:EntityPage/P123|QLABEL (Qlabel) (P123)]]{{Wikidata property link | P123 }}→ [[d:Special:EntityPage/P123|QLABEL (Qlabel) (P123)]]
- Lower case
{{Wikidata property link|p123}}→ [[d:Special:EntityPage/P123|QLABEL (Qlabel) (P123)]]{{Wikidata property link | p123 }}→ [[d:Special:EntityPage/P123|QLABEL (Qlabel) (P123)]]
- id = n(one)
{{Wikidata property link|123|id=n}}→ [[d:Special:EntityPage/P123|QLABEL (Qlabel)]]{{Wikidata property link|P123|id=none}}→ [[d:Special:EntityPage/P123|QLABEL (Qlabel)]]
- 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: QLABEL (Qlabel){{Wikidata property link|P123|id=first}}→ P123: QLABEL (Qlabel)
- Template shortcuts
{{prop|123}}→ Template:Prop{{property|P123}}→ Template:Property{{wpl|123}}→ Template:Wpl{{WPL|P123}}→ Template:WDPL
Supporting template and module
[edit source]{{wikidata|label}}which uses Template:Mlx