Modul Diskussion:WikidataIB/testing

Local parameter, fetchwikidata, suppressfields ändere

Article Code Result
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50}}
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |Fred Bloggs}} Fred Bloggs
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=author; number_of_pages |name=author}} George Orwell  
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=title; number_of_pages |name=author}}
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL}} George Orwell  
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |Freda Bloggs}} Freda Bloggs
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author}} 
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author}}
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=title |name=author}} George Orwell  
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author |Freda Bloggs}}

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

Only sourced ändere

Article Code Result
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=no}} George Orwell  
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=yes}} George Orwell  
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=no}} Hugo Award for Best Novella, Modern Library 100 Best Novels, NPR Top 100 Science Fiction and Fantasy Books, Prometheus Award - Ruhmeshalle  
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=yes}}
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=}}

No icon ändere

Article Code Result
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=no}} George Orwell  
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=yes}} George Orwell
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=}} George Orwell  

getValue for dates ändere

Article Code Result
Marcus Antonius Creticus (Q357585) {{#invoke:WikidataIB |getValue |qid=Q357585 |P569 |fwd=ALL |osd=no}} 2. Jahrhundert v. Chr.  
Marcus Antonius (Q51673) {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no}} 14. Jänner 83 v. Chr., 83 v. Chr.  
Marcus Antonius (Q51673) {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BC}} 14. Jänner 83 v. Chr., 83 v. Chr.  
Marcus Antonius (Q51673) {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BCE}} 14. Jänner 83 v. Chr., 83 v. Chr.  
Marcus Antonius (Q51673) {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=mdy}} 14. Jänner 83 v. Chr., 83 v. Chr.  
Marcus Antonius (Q51673) {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=y}} 83 v. Chr., 83 v. Chr.  
Marcus Antonius (Q51673) {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |lang=fr}} 14 janvier 83 av. J.-C., 83 av. J.-C.  
Richard Burton (Q151973) {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no}} 10. Novämber 1925  
Richard Burton (Q151973) {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |bc=BC}} 10. Novämber 1925  
Richard Burton (Q151973) {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=mdy}} 10. Novämber 1925  
Richard Burton (Q151973) {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=y}} 1925  
Philippus Arabs (Q1817) {{#invoke:WikidataIB |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no}} etwa 204  
Philippus Arabs (Q1817) {{#invoke:WikidataIB |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no |pd=yes}} 204  
Philippus Arabs (Q1817) {{#invoke:WikidataIB |getValue |qid=Q1817 |P570 |fwd=ALL |osd=no}} 249  

maxvals ändere

Bruef (P106)

Article Code Result
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |locally supplied value}} locally supplied value
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=locally supplied value}} locally supplied value
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller, Musiker  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller, Musiker  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller, Musiker  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=1}} Dramatiker  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=4}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=99}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller, Musiker  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=0}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller, Musiker  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=yes |qid=Q42 |maxvals=0}} Drehbuchautor, Romanschriftsteller, Science-Fiction-Schriftsteller, Schriftsteller, Musiker  

Quantity handling ändere

Flechi (P2046), Hechi iber em Meeresspiegel (P2044)

Article Code Result
Birmingham (Q2256) {{#invoke:WikidataIB |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no}} 267,77 ±0.01 Quadratkilometer  
Birmingham (Q2256) {{#invoke:WikidataIB |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes}} 267,77 ±0.01 km²  
Birmingham (Q2256) {{#invoke:WikidataIB |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes |conv=y}} Lua-Fähler: expandTemplate: template "cvt" does not exist
Capitancillo (Q18208369) {{#invoke:WikidataIB |getValue |qid=Q18208369 |P2044 |ps=1 |uabbr=y |conv=y}} Lua-Fähler: expandTemplate: template "cvt" does not exist
1970 Mount Everest disaster (Q4574072) {{#invoke:WikidataIB |getValue |qid=Q4574072 |P2044 |ps=1 |uabbr=y |conv=y}} Lua-Fähler: expandTemplate: template "cvt" does not exist
Internationale Raumstation (Q25271) {{#invoke:WikidataIB |getValue |qid=Q25271 |P2044 |ps=1 |uabbr=y |conv=y}} Lua-Fähler: expandTemplate: template "cvt" does not exist

List handling ändere

Article Code Result
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller, Musiker  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |sep=" – "}} DramatikerDrehbuchautor – Romanschriftsteller – Chinderbuechautor – Science-Fiction-Schriftsteller – Komiker – SchriftstellerMusiker  
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=hlist}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=ubl}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=prose}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller un Musiker  

Getting value and qualifiers ändere

Hoptstadt vo (P1376) for Gämf (Q71)
Qualifiers: Startzitpunkt (P580) and Änddatum (P582)
Code Result
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71}} Kanton Genf, Département Léman, Republik Genf, Republik Genf  
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P580}} Kanton Genf (1815), Département Léman (1798), Republik Genf (1534), Republik Genf (1813)  
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P582}} Kanton Genf, Département Léman (1813), Republik Genf (1798), Republik Genf (1815)  
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P1326}} Kanton Genf, Département Léman, Republik Genf, Republik Genf  
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=DATES}} Kanton Genf (1815–), Département Léman (1798–1813), Republik Genf (1534–1798), Republik Genf (1813–1815)  
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=ALL}} Kanton Genf (1815), Département Léman (1798, 1813), Republik Genf (1534, 1798), Republik Genf (1813, 1815)  
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=ALL |sep=" or " |qsep=" to "}} Kanton Genf (1815) or Département Léman (1798 to 1813) or Republik Genf (1534 to 1798) or Republik Genf (1813 to 1815)  

Hauptstadt (P36) for Frankriich (Q142)
Code Result
{{#invoke:WikidataIB |getValue |P36 |fwd=ALL |osd=no |qid=Q142 |qual=DATES |list=ubl}}
  • Paris (5. Oktober 1789 – )
  • Bayeux (Juni 1944 – Septämber 1944)
  • Vichy (Juli 1940 – 20. Augschte 1944)
  • Algier (1942–1944)
  • London (Juni 1940 – 1942)
  • Brazzaville (1940–1942)
  • Bordeaux (14. Juni 1940 – 28. Juni 1940)
  • Tours (10. Juni 1940 – 13. Juni 1940)
  • Versailles (1871–1879)
  • Versailles (1682 – 5. Oktober 1789)  

höchsti Punkt (P610) for Frankriich (Q142)
Qualifiers: spätestmöglicher Zeitpunkt (P1326) is handled to include "before "
Code Result
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142}} Mont Blanc, Barre des Écrins  
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=DATES}} Mont Blanc (24. März 1860 – ), Barre des Écrins  
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=P1326}} Mont Blanc, Barre des Écrins (vor 24. März 1860)  
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=P1326 |list=hlist}}

Scaling quantities ändere

Bruttoinlandsprodukt (P2131) for Verainigte Staate vu Amerika (Q30) and Dütschland (Q183)
Code Result
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n}} 23.315.080.560.000 US-Dollar, 25.462.700.000.000 US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |uabbr=y}} 23.315.080.560.000 US$, 25.462.700.000.000 US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=3}}} 23.315.080.560 Tuusig US-Dollar, 25.462.700.000 Tuusig US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=3 |uabbr=y}}} 23.315.080.560 Tuusig US$, 25.462.700.000 Tuusig US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=6}}} 23.315.081 Millione US-Dollar, 25.462.700 Millione US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=6 |uabbr=y}}} 23.315.081 Millione US$, 25.462.700 Millione US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=9}}} 23.315 Milliarde US-Dollar, 25.463 Milliarde US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=9 |uabbr=y}}} 23.315 Milliarde US$, 25.463 Milliarde US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=12}}} 23,32 Billione US-Dollar, 25,46 Billione US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=12 |uabbr=y}}} 23,32 Billione US$, 25,46 Billione US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=}}} 23.315.080.560.000 US-Dollar, 25.462.700.000.000 US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale= |uabbr=y}}} 23.315.080.560.000 US$, 25.462.700.000.000 US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=10}}} 23.315 Milliarde US-Dollar, 25.463 Milliarde US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=10 |uabbr=y}}} 23.315 Milliarde US$, 25.463 Milliarde US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=-10}}} 23.315.080.560.000 US-Dollar, 25.462.700.000.000 US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=-10 |uabbr=y}}} 23.315.080.560.000 US$, 25.462.700.000.000 US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 23.315 Milliarde US-Dollar, 25.463 Milliarde US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} 23.315 Milliarde US$, 25.463 Milliarde US$  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 23.315 Milliarde US-Dollar, 25.463 Milliarde US-Dollar  
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} 23.315 Milliarde US$, 25.463 Milliarde US$  
{{#invoke:WikidataIB |getValue |qid=Q183 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 4.121 Milliarde Euro  
{{#invoke:WikidataIB |getValue |qid=Q183 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} 4.121 Milliarde Euro  

Fetching the names of the Urheber (P170) from Corisca und der Satyr (Q29016906) (one value preferred):

Code Result
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione  
{{#invoke:WikidataIB |getPreferredValue |P170 |fwd=ALL |qid=Q29016906 |osd=no}} Artemisia Gentileschi  
Using getValue only:
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione  
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=p}} Artemisia Gentileschi  
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=n}} Aniella di Beltrano, Massimo Stanzione  
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} Artemisia Gentileschi  
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione  

Fetching the values of Motiv (P180) from Corisca und der Satyr (Q29016906) (no values preferred):

Code Result
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}} Corisca, Satyr, Nymphe, Perücke  
{{#invoke:WikidataIB |getPreferredValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}} Corisca, Satyr, Nymphe, Perücke  
Using getValue only:
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=}} Corisca, Satyr, Nymphe, Perücke  
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=p}}
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=n}} Corisca, Satyr, Nymphe, Perücke  
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} Corisca, Satyr, Nymphe, Perücke  
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} Corisca, Satyr, Nymphe, Perücke  

Using template – Fetching the names of the Urheber (P170) from Corisca und der Satyr (Q29016906) (one value preferred):

Code Result
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no}} Vorlage:Wdib
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=p}} Vorlage:Wdib
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=n}} Vorlage:Wdib
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=best}} Vorlage:Wdib
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=xyz}} Vorlage:Wdib

Language code ändere

Maddie Ziegler (Q16240603) {{#invoke:WikidataIB |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=}} Ziegler  
Maddie Ziegler (Q16240603) {{#invoke:WikidataIB |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=en}} Ziegler  
Maddie Ziegler (Q16240603) {{#invoke:WikidataIB |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=ru}} Циглер  

Monolingual text handling ändere

Testing getValue using Geburtsname (P1477) for Bebe Rexha (Q16185856)
Bebe Rexha (Q16185856) {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no}} Bleta Rexha  
Bebe Rexha (Q16185856) {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=}} Bleta Rexha  
Bebe Rexha (Q16185856) {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en}} Bleta Rexha  
Bebe Rexha (Q16185856) {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en-gb}} Bleta Rexha  
Bebe Rexha (Q16185856) {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=de}} Bleta Rexha  
Bebe Rexha (Q16185856) {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=zh-mo}} Bleta Rexha  
Testing getValue using Geburtsname (P1477) for Mao Zedong (Q5816)
Mao Zedong (Q5816) {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no}} 毛澤東  
Mao Zedong (Q5816) {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=}} 毛澤東  
Mao Zedong (Q5816) {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en}} 毛澤東  
Mao Zedong (Q5816) {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en-gb}} 毛澤東  
Mao Zedong (Q5816) {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=gu}} 毛澤東  
Mao Zedong (Q5816) {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=zh-mo}} 毛澤東  
Testing getValue using Geburtsname (P1477) for Mohandas Karamchand Gandhi (Q1001)
Mohandas Karamchand Gandhi (Q1001) {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no}} મોહનદાસ ગાંધી  
Mohandas Karamchand Gandhi (Q1001) {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=}} મોહનદાસ ગાંધી  
Mohandas Karamchand Gandhi (Q1001) {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en}} મોહનદાસ ગાંધી  
Mohandas Karamchand Gandhi (Q1001) {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en-gb}} મોહનદાસ ગાંધી  
Mohandas Karamchand Gandhi (Q1001) {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=gu}} મોહનદાસ ગાંધી  
Mohandas Karamchand Gandhi (Q1001) {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=zh-mo}} મોહનદાસ ગાંધી  

Coordinates ändere

Code Result
{{coord |-24.627333 |-70.404167 |display=inline}} 24° 37′ 38″ S, 70° 24′ 15″ W / 24.627333°S,70.404167°W / -24.627333; -70.404167
{{coord |-24.627333 |-70.404167 |display=inline |format=dms}} 24° 37′ 38″ S, 70° 24′ 15″ W / 24.627333°S,70.404167°W / -24.627333; -70.404167
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628}} 24°37′38.4″S 70°24′15″W  
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline}} 24° 37′ 38″ S, 70° 24′ 15″ W / 24.62733°S,70.40417°W / -24.62733; -70.40417
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dms}} 24°37′38.4″S 70°24′15″W  
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dms}} 24° 37′ 38″ S, 70° 24′ 15″ W / 24.62733°S,70.40417°W / -24.62733; -70.40417
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dec}} 24.62733°S 70.40417°W  
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dec}} 24° 37′ 38″ S, 70° 24′ 15″ W / 24.62733°S,70.40417°W / -24.62733; -70.40417
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=long}} -70.40417
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=lat}} -24.62733
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=longlat}} -70.40417, -24.62733

getQualifierValue ändere

Date precision is month
In South Pole Telescope (Q1513315): property Schlisselereignis (P793) equal to Bauausführung (Q385378) has a Startzitpunkt (P580) qualifier
Code Result
{{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q385378 |qual=P580 |fwd=ALL |qid=Q1513315}} Novämber 2006  
{{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q385378 |qual=P580 |fwd=ALL |qid=Q1513315 |osd=no}} Novämber 2006  
Date precision is day
In Richard Burton (Q151973): property Ehpartner (P26) equal to Sally Burton (Q3469983) has a Startzitpunkt (P580) qualifier
Code Result
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q3469983 |qual=P580 |fwd=ALL |qid=Q151973}}
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q3469983 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no}} 3. Juli 1983  
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q3469983 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no |df=mdy}} 3. Juli 1983  
Multiple date values
In Richard Burton (Q151973): property Ehpartner (P26) equal to Elizabeth Taylor (Q34851) has Startzitpunkt (P580) qualifiers
Code Result
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q34851 |qual=P580 |fwd=ALL |qid=Q151973}} 15. März 1964  
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q34851 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no}} 15. März 1964, 10. Oktober 1975  
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q34851 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no |df=mdy}} 15. März 1964, 10. Oktober 1975  
Qualifier value is an article
In South Pole Telescope (Q1513315): property enthält Elemente von (P2670) equal to Montierung (Q1205231) has an isch e (P31) qualifier
Code Result
{{#invoke:WikidataIB |getQualifierValue |P2670 |pval=Q1205231 |qual=P31 |fwd=ALL |qid=Q1513315}} Altazimut  
{{#invoke:WikidataIB |getQualifierValue |P2670 |pval=Q1205231 |qual=P31 |fwd=ALL |qid=Q1513315 |osd=no}} Altazimut  

getValueByQual ändere

In Fleisch (Q10990), the value of the property Aussprache (Audiodatei) (P443) which has qualifier Sproch vom ene Werk (P407) equal to britisches Englisch (Q7979) is:

{{#invoke:WikidataIB |getValueByQual |qid=Q10990 |P443 |qualID=P407 |qvalue=Q7979 |fwd=ALL |osd=no |noicon=true}}

getValueByLang ändere

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

{{#invoke:WikidataIB |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true}}
{{#invoke:WikidataIB |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=sv}}
{{#invoke:WikidataIB |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en}}
{{#invoke:WikidataIB |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-gb}}
{{#invoke:WikidataIB |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-us}}

getDescription ändere

Testing getDescription
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription |qid=}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription |qid=Q42}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription |qid=Q42 |}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription |qid=Q42 |1=}}
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription |qid=Q42 |wikidata}} britischer Schriftsteller
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription |qid=Q42 |1=wikidata}} britischer Schriftsteller
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription |qid=Q42 |locally supplied description}} locally supplied description
Douglas Adams (Q42) {{#invoke:WikidataIB |getDescription |qid=Q42 |none}}

getAliases ändere

Expensive call if using arbitrary access.

Testing getAliases
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid= |fwd=ALL}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=alias}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=alias |Tramadol}} Tramadol
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |spf=alias}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |spf=alias |Tramadol}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |list=hlist}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |list=ubl}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |lang=de}}
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |lang=fr}}

location ändere

Milton Keynes Dons (Q248188)
Milton Keynes, Borough of Milton Keynes, Buckinghamshire, Südostengland, England
Milton Keynes, Borough of Milton Keynes, Buckinghamshire, Südostengland, England
Milton Keynes Dons, Milton Keynes, Borough of Milton Keynes, Buckinghamshire, Südostengland, England
Taj Mahal (Q9141)
{{#invoke:WikidataIB |location |Q9141 |first=yes |skip=yes}}Taj Mahal, Indie
{{#invoke:WikidataIB |location |Q9141 |first=yes}}Taj Mahal, Agra, Agra, Agra (Division), Uttar Pradesh, Indie

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.

Empire State Building (Q9188)
{{#invoke:WikidataIB |location |Q9188 |first=yes |skip=yes}}Empire State Building, Verainigte Staate vu Amerika
{{#invoke:WikidataIB |location |Q9188 |first=yes}}Empire State Building, Manhattan, New York City, New York, Verainigte Staate vu Amerika

For British locations, it would skip to Grossbritannien und Nordirland (Q145) which is the first instance of Land (Q6256). Unfortunately England (Q21) is not an instance of a country, but an instance of a Länder des Vereinigten Königreichs (Q3336843), according to Wikidata. So also test for Q3336843 when skip is true.

Milton Keynes Dons (Q248188)
{{#invoke:WikidataIB |location |Q248188 |first=y |skip=y}} → Milton Keynes Dons, England
{{#invoke:WikidataIB |location |Q248188 |first=y}} → Milton Keynes Dons, Milton Keynes, Borough of Milton Keynes, Buckinghamshire, Südostengland, England

examine ändere

Examining Farm der Tiere (Q1396889) Bild (P18)
{{#invoke:WikidataIB |examine |pid=P18 |qid=Q1396889}}
table#1 {

table#2 { ["id"] = "Q1396889$152458fe-434e-a46e-299c-36f3ffdb2c6b", ["mainsnak"] = table#3 { ["datatype"] = "commonsMedia", ["datavalue"] = table#4 { ["type"] = "string", ["value"] = "Animal Farm - 1st edition.jpg", }, ["property"] = "P18", ["snaktype"] = "value", }, ["qualifiers"] = table#5 { ["P2096"] = table#6 { table#7 { ["datatype"] = "monolingualtext", ["datavalue"] = table#8 { ["type"] = "monolingualtext", ["value"] = table#9 { ["language"] = "en", ["text"] = "First edition cover", }, }, ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04", ["property"] = "P2096", ["snaktype"] = "value", }, }, }, ["qualifiers-order"] = table#10 { "P2096", }, ["rank"] = "normal", ["type"] = "statement", }, }

{{#invoke:WikidataIB |examine |P18 |qid=Q1396889}}
table#1 {
   table#2 {
       ["id"] = "Q1396889$152458fe-434e-a46e-299c-36f3ffdb2c6b",
       ["mainsnak"] = table#3 {
           ["datatype"] = "commonsMedia",
           ["datavalue"] = table#4 {
               ["type"] = "string",
               ["value"] = "Animal Farm - 1st edition.jpg",
           },
           ["property"] = "P18",
           ["snaktype"] = "value",
       },
       ["qualifiers"] = table#5 {
           ["P2096"] = table#6 {
               table#7 {
                   ["datatype"] = "monolingualtext",
                   ["datavalue"] = table#8 {
                       ["type"] = "monolingualtext",
                       ["value"] = table#9 {
                           ["language"] = "en",
                           ["text"] = "First edition cover",
                       },
                   },
                   ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04",
                   ["property"] = "P2096",
                   ["snaktype"] = "value",
               },
           },
       },
       ["qualifiers-order"] = table#10 {
           "P2096",
       },
       ["rank"] = "normal",
       ["type"] = "statement",
   },

}

{{#invoke:WikidataIB |examine |pid=P18 |Q1396889}}
table#1 {
   table#2 {
       ["id"] = "Q1396889$152458fe-434e-a46e-299c-36f3ffdb2c6b",
       ["mainsnak"] = table#3 {
           ["datatype"] = "commonsMedia",
           ["datavalue"] = table#4 {
               ["type"] = "string",
               ["value"] = "Animal Farm - 1st edition.jpg",
           },
           ["property"] = "P18",
           ["snaktype"] = "value",
       },
       ["qualifiers"] = table#5 {
           ["P2096"] = table#6 {
               table#7 {
                   ["datatype"] = "monolingualtext",
                   ["datavalue"] = table#8 {
                       ["type"] = "monolingualtext",
                       ["value"] = table#9 {
                           ["language"] = "en",
                           ["text"] = "First edition cover",
                       },
                   },
                   ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04",
                   ["property"] = "P2096",
                   ["snaktype"] = "value",
               },
           },
       },
       ["qualifiers-order"] = table#10 {
           "P2096",
       },
       ["rank"] = "normal",
       ["type"] = "statement",
   },

}

{{#invoke:WikidataIB |examine |P18 |Q1396889}}
table#1 {
   table#2 {
       ["id"] = "Q1396889$152458fe-434e-a46e-299c-36f3ffdb2c6b",
       ["mainsnak"] = table#3 {
           ["datatype"] = "commonsMedia",
           ["datavalue"] = table#4 {
               ["type"] = "string",
               ["value"] = "Animal Farm - 1st edition.jpg",
           },
           ["property"] = "P18",
           ["snaktype"] = "value",
       },
       ["qualifiers"] = table#5 {
           ["P2096"] = table#6 {
               table#7 {
                   ["datatype"] = "monolingualtext",
                   ["datavalue"] = table#8 {
                       ["type"] = "monolingualtext",
                       ["value"] = table#9 {
                           ["language"] = "en",
                           ["text"] = "First edition cover",
                       },
                   },
                   ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04",
                   ["property"] = "P2096",
                   ["snaktype"] = "value",
               },
           },
       },
       ["qualifiers-order"] = table#10 {
           "P2096",
       },
       ["rank"] = "normal",
       ["type"] = "statement",
   },

}

{{#invoke:WikidataIB |examine |Q1396889 |P18}}
table#1 {
   table#2 {
       ["id"] = "Q1396889$152458fe-434e-a46e-299c-36f3ffdb2c6b",
       ["mainsnak"] = table#3 {
           ["datatype"] = "commonsMedia",
           ["datavalue"] = table#4 {
               ["type"] = "string",
               ["value"] = "Animal Farm - 1st edition.jpg",
           },
           ["property"] = "P18",
           ["snaktype"] = "value",
       },
       ["qualifiers"] = table#5 {
           ["P2096"] = table#6 {
               table#7 {
                   ["datatype"] = "monolingualtext",
                   ["datavalue"] = table#8 {
                       ["type"] = "monolingualtext",
                       ["value"] = table#9 {
                           ["language"] = "en",
                           ["text"] = "First edition cover",
                       },
                   },
                   ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04",
                   ["property"] = "P2096",
                   ["snaktype"] = "value",
               },
           },
       },
       ["qualifiers-order"] = table#10 {
           "P2096",
       },
       ["rank"] = "normal",
       ["type"] = "statement",
   },

}

Using wrapper template
{{examine|Q1396889 |P18}}
Vorlage:Examine

Format Dates ändere

Some test cases for the function formatDate. Call like {{#invoke:WikidataIB |formatDate | 1 August 30 BCE |bc=BCE |df=dmy}}

Input date: 1 August 30 BCE, 12:39:56
no parameters 1 August 30 BCE
bc=BC 1 August 30 BC
bc=BCE 1 August 30 BCE
bc=bc 1 August 30 BC
bc=bce 1 August 30 BCE
bc=XYZ 1 August 30 BCE
df=dmy 1 August 30 BCE
df=DMY 1 August 30 BCE
df=mdy August 1, 30 BCE
df=MDY August 1, 30 BCE
df=ABC 1 August 30 BCE
df=y 30 BCE
bc=BCE df=dmy 1 August 30 BCE
bc=BCE df=mdy 1 August 30 BCE
bc=BCE df=y 30 BCE
bc=BC df=dmy 1 August 30 BC
bc=BC df=mdy August 1, 30 BC
bc=BC df=y 30 BC
Input date: 20 January 2017, 12:39:56
no parameters 20 January 2017
bc=BC 20 January 2017
bc=BCE 20 January 2017
bc=bc 20 January 2017
bc=bce 20 January 2017
bc=XYZ 20 January 2017
df=dmy 20 January 2017
df=DMY 20 January 2017
df=mdy January 20, 2017
df=MDY January 20, 2017
df=ABC 20 January 2017
df=y 2017
bc=BCE df=dmy 20 January 2017
bc=BCE df=mdy 20 January 2017
bc=BCE df=y 2017
bc=BC df=dmy 20 January 2017
bc=BC df=mdy January 20, 2017
bc=BC df=y 2017
Zurück zur Seite „WikidataIB/testing“.