Modul Diskussion:WikidataIB/testing
Abschnitt zuefiegeLocal parameter, fetchwikidata, suppressfields
[Quälltäxt bearbeite]| 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
[Quälltäxt bearbeite]| 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}} | Retro 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}} | Retro Hugo Award for Best Novella |
| Farm der Tiere (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=}} | Retro Hugo Award for Best Novella |
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 |
| 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
[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. |
| 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, Septämber 249, Oktober 249 |
maxvals
[Quälltäxt bearbeite]| 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
[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 |
| 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}} |
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, Musiker |
| Douglas Adams (Q42) | {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |sep=" – "}} | Dramatiker – Drehbuchautor – Romanschriftsteller – Chinderbuechautor – Science-Fiction-Schriftsteller – Komiker – Schriftsteller – Musiker |
| 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
[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 |
{{#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) |
| Code | Result |
|---|---|
{{#invoke:WikidataIB |getValue |P36 |fwd=ALL |osd=no |qid=Q142 |qual=DATES |list=ubl}} |
|
- 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
[Quälltäxt bearbeite]Ranks
[Quälltäxt bearbeite]Fetching the names of the Urheber (P170) from Corisca und der Satyr (Q29016906) (one value preferred):
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
[Quälltäxt bearbeite]| 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
[Quälltäxt bearbeite]| 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 |
| 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}} | 毛澤東 |
| 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
[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 |
{{coord |-24.627333 |-70.404167 |display=inline |format=dms}} | 24° 37′ 38″ S, 70° 24′ 15″ W / 24.627333°S,70.404167°W |
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628}} | 24°37′39″S 70°24′15″W |
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline}} | 24° 37′ 39″ S, 70° 24′ 15″ W / 24.6275°S,70.4042°W |
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dms}} | 24°37′39″S 70°24′15″W |
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dms}} | 24° 37′ 39″ S, 70° 24′ 15″ W / 24.6275°S,70.4042°W |
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dec}} | 24.6275°S 70.4042°W |
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dec}} | 24° 37′ 39″ S, 70° 24′ 15″ W / 24.6275°S,70.4042°W |
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=long}} | -70.4042 |
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=lat}} | -24.6275 |
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=longlat}} | -70.4042, -24.6275 |
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
- Date precision is day
- In Richard Burton (Q151973): property Ehpartner (P26) equal to Sally Burton (Q3469983) has a Startzitpunkt (P580) qualifier
- Multiple date values
- In Richard Burton (Q151973): property Ehpartner (P26) equal to Elizabeth Taylor (Q34851) has Startzitpunkt (P580) qualifiers
- 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
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}} |
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}} |
|
{{#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
[Quälltäxt bearbeite]| 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 Science-Fiction-Autor und Humorist (1952–2001) |
| Douglas Adams (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42 |1=wikidata}} | britischer Science-Fiction-Autor und Humorist (1952–2001) |
| 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.
| 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
[Quälltäxt bearbeite]- 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
[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", }, ["qualifiers"] = table#5 { metatable = table#6 ["P2096"] = table#7 { table#8 { ["datatype"] = "monolingualtext", ["datavalue"] = table#9 { ["type"] = "monolingualtext", ["value"] = table#10 { ["language"] = "en", ["text"] = "First edition cover", }, }, ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04", ["property"] = "P2096", ["snaktype"] = "value", }, table#11 { ["datatype"] = "monolingualtext", ["datavalue"] = table#12 { ["type"] = "monolingualtext", ["value"] = table#13 { ["language"] = "be", ["text"] = "Вокладка першага выдання, 1945 г.", }, }, ["hash"] = "9293fc3f943a84c3663df41728563a01e7ff6b43", ["property"] = "P2096", ["snaktype"] = "value", }, }, }, ["qualifiers-order"] = table#14 { "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 { metatable = table#6 ["P2096"] = table#7 { table#8 { ["datatype"] = "monolingualtext", ["datavalue"] = table#9 { ["type"] = "monolingualtext", ["value"] = table#10 { ["language"] = "en", ["text"] = "First edition cover", }, }, ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04", ["property"] = "P2096", ["snaktype"] = "value", }, table#11 { ["datatype"] = "monolingualtext", ["datavalue"] = table#12 { ["type"] = "monolingualtext", ["value"] = table#13 { ["language"] = "be", ["text"] = "Вокладка першага выдання, 1945 г.", }, }, ["hash"] = "9293fc3f943a84c3663df41728563a01e7ff6b43", ["property"] = "P2096", ["snaktype"] = "value", }, }, }, ["qualifiers-order"] = table#14 { "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 { metatable = table#6 ["P2096"] = table#7 { table#8 { ["datatype"] = "monolingualtext", ["datavalue"] = table#9 { ["type"] = "monolingualtext", ["value"] = table#10 { ["language"] = "en", ["text"] = "First edition cover", }, }, ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04", ["property"] = "P2096", ["snaktype"] = "value", }, table#11 { ["datatype"] = "monolingualtext", ["datavalue"] = table#12 { ["type"] = "monolingualtext", ["value"] = table#13 { ["language"] = "be", ["text"] = "Вокладка першага выдання, 1945 г.", }, }, ["hash"] = "9293fc3f943a84c3663df41728563a01e7ff6b43", ["property"] = "P2096", ["snaktype"] = "value", }, }, }, ["qualifiers-order"] = table#14 { "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 { metatable = table#6 ["P2096"] = table#7 { table#8 { ["datatype"] = "monolingualtext", ["datavalue"] = table#9 { ["type"] = "monolingualtext", ["value"] = table#10 { ["language"] = "en", ["text"] = "First edition cover", }, }, ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04", ["property"] = "P2096", ["snaktype"] = "value", }, table#11 { ["datatype"] = "monolingualtext", ["datavalue"] = table#12 { ["type"] = "monolingualtext", ["value"] = table#13 { ["language"] = "be", ["text"] = "Вокладка першага выдання, 1945 г.", }, }, ["hash"] = "9293fc3f943a84c3663df41728563a01e7ff6b43", ["property"] = "P2096", ["snaktype"] = "value", }, }, }, ["qualifiers-order"] = table#14 { "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 { metatable = table#6 ["P2096"] = table#7 { table#8 { ["datatype"] = "monolingualtext", ["datavalue"] = table#9 { ["type"] = "monolingualtext", ["value"] = table#10 { ["language"] = "en", ["text"] = "First edition cover", }, }, ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04", ["property"] = "P2096", ["snaktype"] = "value", }, table#11 { ["datatype"] = "monolingualtext", ["datavalue"] = table#12 { ["type"] = "monolingualtext", ["value"] = table#13 { ["language"] = "be", ["text"] = "Вокладка першага выдання, 1945 г.", }, }, ["hash"] = "9293fc3f943a84c3663df41728563a01e7ff6b43", ["property"] = "P2096", ["snaktype"] = "value", }, }, }, ["qualifiers-order"] = table#14 { "P2096", }, ["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}}
| 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 |
| 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 |