Module talk:WikidataIB/sandbox1/testing

Local parameter, fetchwikidata, suppressfields


† Note that when a blacklist is supplied, a field name is also needed, otherwise the call returns nothing.

getValue for dates



 * For, :
 * For, :
 * For, :
 * For, :
 * For, :
 * For, :
 * For, :

Quantity handling
,

Getting value and qualifiers

 * for
 * Qualifiers: and


 * for


 * for
 * Qualifiers: is handled to include "before "

Scaling quantities

 * for and

Ranks
Fetching the names of the from  (one value preferred):

Fetching the values of from  (no values preferred):

Using template – Fetching the names of the from  (one value preferred):

getQualifierValue

 * Date precision is month:
 * In : property equal to  has a  qualifier


 * Date precision is day:
 * In : property equal to  has a  qualifier


 * Multiple date values:
 * In : property equal to  has  qualifiers


 * Qualifier value is an article:
 * In : property equal to  has an  qualifier

getValueByQual
In, the value of the property which has qualifier  equal to  is:

getValueByLang
In, the value of the property which has the fixed qualifier "language of work or name" equal to a given language code (or default) is:

location




But for the USA, we normally miss off the "US" part. So put it back and change Wikidata's "USA" to enwiki's "US" when skip is true.

For British locations, it would skip to which is the first instance of. Unfortunately is not an instance of a country, but an instance of a, according to Wikidata. So also test for Q3336843 when skip is true.

examine

 * Examining


 * Using wrapper template

Format Dates
Some test cases for the function formatDate. Call like