Modul Diskussion:WikidataIB/testing

Us der alemannische Wikipedia, der freie Dialäkt-Enzyklopedy
Zur Navigation springen Zur Suche springen
Dialäkt: Dialäkt alemannisch (Ort)

== Local parameter, fetchwikidata, suppressfields ==

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 Edit this on Wikidata
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 Edit this on Wikidata
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}}Vorlage:If empty
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 Edit this on Wikidata
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author |Freda Bloggs}}

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

Only sourced[Quälltäxt bearbeite]

Article Code Result
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=no}} George Orwell Edit this on Wikidata
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=yes}} George Orwell Edit this on Wikidata
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 - Hall of Fame Edit this on Wikidata
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[Quälltäxt bearbeite]

Article Code Result
Farm der Tiere (Q1396889) {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=no}} George Orwell Edit this on Wikidata
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 Edit this on Wikidata

getValue for dates[Quälltäxt bearbeite]

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

maxvals[Quälltäxt bearbeite]

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 Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=1}} Dramatiker Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=4}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=99}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=0}} Dramatiker, Drehbuchautor, Romanschriftsteller, Chinderbuechautor, Science-Fiction-Schriftsteller, Komiker, Schriftsteller Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=yes |qid=Q42 |maxvals=0}} Drehbuchautor, Science-Fiction-Schriftsteller Edit this on Wikidata

Quantity handling[Quälltäxt bearbeite]

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 Edit this on Wikidata
Birmingham (Q2256) {{#invoke:WikidataIB |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes}} 267,77 ±0.01 km² Edit this on Wikidata
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[Quälltäxt bearbeite]

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 Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |sep=" – "}} DramatikerDrehbuchautor – Romanschriftsteller – Chinderbuechautor – Science-Fiction-Schriftsteller – Komiker – Schriftsteller Edit this on Wikidata
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 un Schriftsteller Edit this on Wikidata

Getting value and qualifiers[Quälltäxt bearbeite]

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 Edit this on Wikidata
{{#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) Edit this on Wikidata
{{#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) Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P1326}} Kanton Genf, Département Léman, Republik Genf, Republik Genf Edit this on Wikidata
{{#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) Edit this on Wikidata
{{#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) Edit this on Wikidata
{{#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) Edit this on Wikidata

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) Edit this on Wikidata

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 Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=DATES}} Mont Blanc (24. März 1860 – ), Barre des Écrins Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=P1326}} Mont Blanc, Barre des Écrins (vor 24. März 1860) Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=P1326 |list=hlist}}
  • Mont Blanc
  • Barre des Écrins (vor 24. März 1860) Edit this on Wikidata

Scaling quantities[Quälltäxt bearbeite]

Bruttoinlandsprodukt (P2131) for USA (Q30) and Dütschland (Q183)
Code Result
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n}} 19.390.604.000.000 US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |uabbr=y}} 19.390.604.000.000 US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=3}}} 19.390.604.000 Tuusig US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=3 |uabbr=y}}} 19.390.604.000 Tuusig US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=6}}} 19.390.604 Millione US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=6 |uabbr=y}}} 19.390.604 Millione US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=9}}} 19.391 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=9 |uabbr=y}}} 19.391 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=12}}} 19,39 Billione US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=12 |uabbr=y}}} 19,39 Billione US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=}}} 19.390.604.000.000 US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale= |uabbr=y}}} 19.390.604.000.000 US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=10}}} 19.391 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=10 |uabbr=y}}} 19.391 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=-10}}} 19.390.604.000.000 US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=-10 |uabbr=y}}} 19.390.604.000.000 US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 19.391 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} 19.391 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 19.391 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} 19.391 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q183 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 3.677 Milliarde US-Dollar Edit this on Wikidata
{{#invoke:WikidataIB |getValue |qid=Q183 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} 3.677 Milliarde US-Dollar Edit this on Wikidata

Ranks[Quälltäxt bearbeite]

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 Edit this on Wikidata
{{#invoke:WikidataIB |getPreferredValue |P170 |fwd=ALL |qid=Q29016906 |osd=no}} Artemisia Gentileschi Edit this on Wikidata
Using getValue only:
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=p}} Artemisia Gentileschi Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=n}} Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} Artemisia Gentileschi Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata

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 Edit this on Wikidata
{{#invoke:WikidataIB |getPreferredValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}} Corisca, Satyr, Nymphe, Perücke Edit this on Wikidata
Using getValue only:
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=}} Corisca, Satyr, Nymphe, Perücke Edit this on Wikidata
{{#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 Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} Corisca, Satyr, Nymphe, Perücke Edit this on Wikidata
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} Corisca, Satyr, Nymphe, Perücke Edit this on Wikidata

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[Quälltäxt bearbeite]

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

Monolingual text handling[Quälltäxt bearbeite]

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

Coordinates[Quälltäxt bearbeite]

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 Edit this on Wikidata
{{#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 Edit this on Wikidata
{{#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 Edit this on Wikidata
{{#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[Quälltäxt bearbeite]

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 Edit this on Wikidata
{{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q385378 |qual=P580 |fwd=ALL |qid=Q1513315 |osd=no}} Novämber 2006 Edit this on Wikidata
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 Edit this on Wikidata
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q3469983 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no |df=mdy}} 3. Juli 1983 Edit this on Wikidata
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 Edit this on Wikidata
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q34851 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no}} 15. März 1964, 10. Oktober 1975 Edit this on Wikidata
{{#invoke:WikidataIB |getQualifierValue |P26 |pval=Q34851 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no |df=mdy}} 15. März 1964, 10. Oktober 1975 Edit this on Wikidata
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 Edit this on Wikidata
{{#invoke:WikidataIB |getQualifierValue |P2670 |pval=Q1205231 |qual=P31 |fwd=ALL |qid=Q1513315 |osd=no}} Altazimut Edit this on Wikidata

getValueByQual[Quälltäxt bearbeite]

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}} En-uk-meat.ogg

getValueByLang[Quälltäxt bearbeite]

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}} Sv-kött.ogg
{{#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}} En-uk-meat.ogg
{{#invoke:WikidataIB |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-us}} En-us-meat.ogg

getDescription[Quälltäxt bearbeite]

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[Quälltäxt bearbeite]

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}} Tramadolhydrochlorid, Tramal Edit this on Wikidata
Tramadol (Q407592) {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |lang=fr}} Zamudol, Contramal LP, Takadol, 27203-92-5, Ixprim, Zaldiar, Dolzam, Topalgic, Biodalgic, Contramal, Monoalgic LP, Tradonal Edit this on Wikidata

location[Quälltäxt bearbeite]

Milton Keynes Dons (Q248188)
Milton Keynes, Borough of Milton Keynes, Buckinghamshire, South East England, England
Milton Keynes, Borough of Milton Keynes, Buckinghamshire, South East England, England
Milton Keynes Dons, Milton Keynes, Borough of Milton Keynes, Buckinghamshire, South East England, 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, 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, USA
{{#invoke:WikidataIB |location |Q9188 |first=yes}}Empire State Building, Manhattan, New York City, New York, USA

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, South East England, England

examine[Quälltäxt bearbeite]

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", }, ["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",
   },
   ["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",
   },
   ["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",
   },
   ["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",
   },
   ["rank"] = "normal",
   ["type"] = "statement",
 },

}

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

Format Dates[Quälltäxt bearbeite]

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