Difference between revisions of "Template:LinkedLabel/doc"
Jump to navigation
Jump to search
imported>Uzume |
imported>Uzume |
||
| Line 16: | Line 16: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | q5 }}</code> → {{{{BASEPAGENAME}} | q5 }} | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | q5 }}</code> → {{{{BASEPAGENAME}} | q5 }} | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | p31 }}</code> → {{{{BASEPAGENAME}} | p31 }} | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | p31 }}</code> → {{{{BASEPAGENAME}} | p31 }} | ||
| + | |||
| + | ; Complex labels in Wikidata | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|Q27931257}}</code> → {{{{BASEPAGENAME}}|Q27931257}} | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|Q102898970}}</code> → {{{{BASEPAGENAME}}|Q102898970}} | ||
== See also == | == See also == | ||
Revision as of 23:56, 20 January 2021
| 40px | This is a documentation subpage for Template:LinkedLabel. It contains usage information, categories and other content that is not part of the original template page. |
This template gets the linked label of a Wikidata item or property.
Usage examples
- Standard usage
{{LinkedLabel}}→ Template:Wikidata{{LinkedLabel|Q5}}→ Template:Wikidata{{LinkedLabel|P31}}→ Template:Wikidata
- Leading/trailing white space
{{LinkedLabel | Q5 }}→ Template:Wikidata{{LinkedLabel | P31 }}→ Template:Wikidata
- Lower case
{{LinkedLabel | q5 }}→ Template:Wikidata{{LinkedLabel | p31 }}→ Template:Wikidata
- Complex labels in Wikidata
{{LinkedLabel|Q27931257}}→ Template:Wikidata{{LinkedLabel|Q102898970}}→ Template:Wikidata
See also
{{Label}}{{Wikidata entity link}}{{Wikidata property link}}{{Wikidata}}