Module:WikidataIB/doc: Difference between revisions

Content deleted Content added
Function formatDate: another example
Coding into an infobox: update documentation
Line 109:
 
Since Wikidata labels are normally lower case, the sentence case function from [[Module:String2]] can be used to capitalise the first letter of the returned text, e.g.
* <code><nowiki>{{#invoke:String2 | sentence | {{#invoke:WikidataIB |getValue |P136 |name=genre |fetchwikidata=ALL |onlysourced=false}} }}</nowiki></code> in {{Q|Q1396889}} produces:
* {{#invoke:String2 | sentence | {{#invoke:WikidataIB |getValue |P136 |name=genre |fetchwikidata=ALL |onlysourced=false |qid=Q1396889}} }}
 
=== Coodinates ===
Line 126:
=== Verifiability ===
 
Where it will always be essential for a particular field to only contain values that are referenced, use getSourcedValue<code>getValue</code>, insteadmaking ofsure getValuethat {{para|onlysourced}} is ''not'' set to 'false', '0' or 'no'. ItBy default it will exclude values that are unsourced or only sourced to a Wikipedia, thus making the job of checking easier at the article level. If unsourced data is acceptable (!), set {{para|onlysourced|true}}. As it is beyond my wit to produce an automated mechanism that knows whether aan existing source is reliable or not in a given context, that job must still be performed at the article level by an editor familiar with the subject. It should always be done when first enabling Wikidata for that article.
 
== Examples ==