Difference between revisions of "Template:Wikidata property link/doc"
Jump to navigation
Jump to search
en>Tom.Reding m (→Usage examples: Diversity) |
(No difference)
|
Revision as of 17:38, 7 December 2018
This is a documentation subpage for Template:Wikidata property link. It contains usage information, categories and other content that is not part of the original template page. |
Template:Wikidata property link displays a link to Wikidata property.
Usage examples
- Standard usage
{{Wikidata property link|123}}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P123){{Wikidata property link|P123}}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P123)
- Leading/trailing whitespace
{{Wikidata property link | 123 }}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P123){{Wikidata property link | P123 }}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P123)
- id = n(one)
{{Wikidata property link|123|id=n}}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value).{{Wikidata property link|P123|id=none}}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value).
- 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: Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value).{{Wikidata property link|P123|id=first}}
→ P123: Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value).
- Template shortcuts
{{property|123}}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P123){{property|P123}}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P123){{wpl|123}}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P123){{WPL|P123}}
→ Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P123)
Supporting template and module
- Template:Label which uses Module:Wikibase
See also
- Wikidata:Template:Property
- Template:Wikidata property
- Template:Wikidata entity link
- Template:Wikidata URL