Difference between revisions of "Template:Label/doc"
Jump to navigation
Jump to search
imported>Zyxw m (add links) |
|||
| Line 17: | Line 17: | ||
* [[Template:Wikidata entity link]] | * [[Template:Wikidata entity link]] | ||
* [[Template:Wikidata property link]] | * [[Template:Wikidata property link]] | ||
| + | * [[Module:Wikidata label]] | ||
<includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default= | <includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default= | ||
[[Category:Wikidata templates]] | [[Category:Wikidata templates]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 02:37, 27 January 2018
| This is a documentation subpage for Template:Label. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
This template gets the label of a Wikidata item or property.
Usage examples
- Standard usage
{{Label|Q5}}→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).{{Label|P31}}→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
- Leading/trailing whitespace
{{Label | Q5 }}→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).{{Label | P31 }}→ Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).
See also
- Wikidata:Template:Label
- Template:Wikidata entity link
- Template:Wikidata property link
- Module:Wikidata label