Module:WikidataIB/sandbox1/doc: Difference between revisions

Content deleted Content added
Line 333:
 
=== Function getLabel ===
getLabel returnshas the labelqid forof a Qid.Wikidata Ifentity labelpassed doesn'tas exist,the itfirst returnsunnamed theparameter or as Qid.|qid=
 
Note that this is the label given to the Wikidata entry in the same language as the current Wikipedia, if the label exists.
It returns the Wikidata label for the local language as plain text.
If there is no label in the local language, it displays the qid instead.
Note that this is the label given to the Wikidata entry in the same language as the current WikipediaWiki, if the label exists.
: Wikidata: {{q|Q29016906}} and {{q|Q3621491}}
* <code><nowiki>{{#invoke:WikidataIB |getLabel |Q29016906}}</nowiki></code> → {{#invoke:WikidataIB |getLabel |Q29016906}}