Moduldiskussion:WikidataIB/testing
Local parameter, fetchwikidata, suppressfields redigera
Article | Code | Result |
---|---|---|
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50}} |
|
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |Fred Bloggs}} |
Fred Bloggs |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=author; number_of_pages |name=author}} |
George Orwell |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=title; number_of_pages |name=author}} |
|
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL}} |
George Orwell |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |Freda Bloggs}} |
Freda Bloggs |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author}} |
|
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author}} |
|
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=title |name=author}} |
George Orwell |
Djurfarmen (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 redigera
Article | Code | Result |
---|---|---|
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=no}} |
George Orwell |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=yes}} |
George Orwell |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=no}} |
Hugopriset för bästa kortroman, Modern Librarys 100 bästa romaner, NPR: 100 bästa science fiction- och fantasyböckerna, Prometheus-priset - Hall of Fame |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=yes}} |
|
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=}} |
No icon redigera
Article | Code | Result |
---|---|---|
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=no}} |
George Orwell |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=yes}} |
George Orwell |
Djurfarmen (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=}} |
George Orwell |
getValue for dates redigera
Article | Code | Result |
---|---|---|
Marcus Antonius (Q357585) | {{#invoke:WikidataIB |getValue |qid=Q357585 |P569 |fwd=ALL |osd=no}} |
100-talet f.Kr. |
Marcus Antonius (Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no}} |
14 januari 83 f.Kr., 83 f.Kr. |
Marcus Antonius (Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BC}} |
14 januari 83 f.Kr., 83 f.Kr. |
Marcus Antonius (Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BCE}} |
14 januari 83 f.Kr., 83 f.Kr. |
Marcus Antonius (Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=mdy}} |
januari 14, 83 f.Kr., 83 f.Kr. |
Marcus Antonius (Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=y}} |
83 f.Kr., 83 f.Kr. |
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 november 1925 |
Richard Burton (Q151973) | {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |bc=BC}} |
10 november 1925 |
Richard Burton (Q151973) | {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=mdy}} |
november 10, 1925 |
Richard Burton (Q151973) | {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=y}} |
1925 |
Filip Araben (Q1817) | {{#invoke:WikidataIB |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no}} |
c:a 204 |
Filip Araben (Q1817) | {{#invoke:WikidataIB |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no |pd=yes}} |
204 |
Filip Araben (Q1817) | {{#invoke:WikidataIB |getValue |qid=Q1817 |P570 |fwd=ALL |osd=no}} |
249 |
Earliest and latest date as qualifiers redigera
Article | Code | Result |
---|---|---|
Fred W. Wright (Q61714940) | {{#invoke:WikidataIB |getValue |ps=1 |P570 |qid=Q61714940}} |
1900-talet |
Fred W. Wright (Q61714940) | {{#invoke:WikidataIB |getValue |ps=1 |P570 |qid=Q61714940 |qual=ALL}} |
1900-talet (efter 1933) |
(Q1786) | {{#invoke:WikidataIB |getValue |ps=1 |P569 |qid=Q1786}} |
1428 |
(Q1786) | {{#invoke:WikidataIB |getValue |ps=1 |P569 |qid=Q1786 |qual=ALL}} |
1428 (före 1429) |
Julius Caesar (Q1048) | {{#invoke:WikidataIB |getValue |ps=1 |P569 |qid=Q1048}} |
juli 100 f.Kr. |
Julius Caesar (Q1048) | {{#invoke:WikidataIB |getValue |ps=1 |P569 |qid=Q1048 |qual=ALL}} |
juli 100 f.Kr. (före 100 f.Kr., ifrågasatt, efter 100 f.Kr.) |
Industriella revolutionen (Q2269) | {{#invoke:WikidataIB |getValue |ps=1 |P582 |qid=Q2269}} |
2010 |
Industriella revolutionen (Q2269) | {{#invoke:WikidataIB |getValue |ps=1 |P582 |qid=Q2269 |qual=ALL}} |
2010 (före 1840, efter 1820) |
Industriella revolutionen (Q2269) | {{#invoke:WikidataIB |getValue |ps=1 |P582 |qid=Q2269 |lang=fr |qual=ALL}} |
2010 (avant 1840, après 1820) |
Industriella revolutionen (Q2269) | {{#invoke:WikidataIB |getValue |ps=1 |P582 |qid=Q2269 |lang=zh |qual=ALL}} |
2010年 (在1840年之前, 在1820年之后) |
Frankrike (Q142) | {{#invoke:WikidataIB |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl}} |
|
Frankrike (Q142) | {{#invoke:WikidataIB |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl |qual=ALL}} |
|
maxvals redigera
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, manusförfattare, romanförfattare, barnboksförfattare, science fiction-författare, komiker, författare, musiker |
Douglas Adams (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=}} |
dramatiker, manusförfattare, romanförfattare, barnboksförfattare, science fiction-författare, komiker, författare, musiker |
Douglas Adams (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42}} |
dramatiker, manusförfattare, romanförfattare, barnboksförfattare, science fiction-författare, komiker, författare, 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, manusförfattare, romanförfattare, barnboksförfattare |
Douglas Adams (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=99}} |
dramatiker, manusförfattare, romanförfattare, barnboksförfattare, science fiction-författare, komiker, författare, musiker |
Douglas Adams (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=0}} |
dramatiker, manusförfattare, romanförfattare, barnboksförfattare, science fiction-författare, komiker, författare, musiker |
Douglas Adams (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=yes |qid=Q42 |maxvals=0}} |
manusförfattare, romanförfattare, science fiction-författare, författare, musiker |
Quantity handling redigera
area (P2046), höjd över havet (P2044)
Article | Code | Result |
---|---|---|
Birmingham (Q2256) | {{#invoke:WikidataIB |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no}} |
267,77 ±0.01 kvadratkilometer |
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}} |
Luafel: expandTemplate: template "cvt" does not exist. |
(Q18208369) | {{#invoke:WikidataIB |getValue |qid=Q18208369 |P2044 |ps=1 |uabbr=y |conv=y}} |
Luafel: expandTemplate: template "cvt" does not exist. |
(Q4574072) | {{#invoke:WikidataIB |getValue |qid=Q4574072 |P2044 |ps=1 |uabbr=y |conv=y}} |
Luafel: expandTemplate: template "cvt" does not exist. |
Internationella rymdstationen (Q25271) | {{#invoke:WikidataIB |getValue |qid=Q25271 |P2044 |ps=1 |uabbr=y |conv=y}} |
Luafel: expandTemplate: template "cvt" does not exist. |
List handling redigera
Article | Code | Result |
---|---|---|
Douglas Adams (Q42) | {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42}} |
dramatiker, manusförfattare, romanförfattare, barnboksförfattare, science fiction-författare, komiker, författare, musiker |
Douglas Adams (Q42) | {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |sep=" – "}} |
dramatiker – manusförfattare – romanförfattare – barnboksförfattare – science fiction-författare – komiker – författare – 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, manusförfattare, romanförfattare, barnboksförfattare, science fiction-författare, komiker, författare och musiker |
Getting value and qualifiers redigera
- huvudstad i (P1376) for Genève (Q71)
- Qualifiers: startdatum (P580) and slutdatum (P582)
Code | Result |
---|---|
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71}} |
Genève, Léman, Republiken Genève, Republiken Genève |
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P580}} |
Genève (1815–), Léman (1798–), Republiken Genève (1534–), Republiken Genève (1813–) |
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P582}} |
Genève, Léman (–1813), Republiken Genève (–1798), Republiken Genève (–1815) |
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P1326}} |
Genève, Léman, Republiken Genève, Republiken Genève |
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=DATES}} |
Genève (1815–), Léman (1798–1813), Republiken Genève (1534–1798), Republiken Genève (1813–1815) |
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=ALL}} |
Genève (1815–), Léman (1798–1813), Republiken Genève (1534–1798), Republiken Genève (1813–1815) |
{{#invoke:WikidataIB |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=ALL |sep=" or " |qsep=" to "}} |
Genève (1815–) or Léman (1798–1813) or Republiken Genève (1534–1798) or Republiken Genève (1813–1815) |
Code | Result |
---|---|
{{#invoke:WikidataIB |getValue |P36 |fwd=ALL |osd=no |qid=Q142 |qual=DATES |list=ubl}} |
|
- högsta punkt (P610) for Frankrike (Q142)
- Qualifiers: senaste datum (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 (1860–), Barre des Écrins |
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=P1326}} |
Mont Blanc, Barre des Écrins (före 1860) |
{{#invoke:WikidataIB |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=P1326 |list=hlist}} |
|
Scaling quantities redigera
Ranks redigera
Fetching the names of the skapare (P170) from (Q29016906) (one value preferred):
Code | Result |
---|---|
{{#invoke:WikidataIB |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no}} |
Artemisia Gentileschi, Diana Rosa, 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, Diana Rosa, 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}} |
Diana Rosa, 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, Diana Rosa, Massimo Stanzione |
Fetching the values of motiv (P180) from (Q29016906) (no values preferred):
Code | Result |
---|---|
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}} |
Corisca, Satyrer, nymf, peruk |
{{#invoke:WikidataIB |getPreferredValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}} |
Corisca, Satyrer, nymf, peruk |
Using getValue only: | |
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=}} |
Corisca, Satyrer, nymf, peruk |
{{#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, Satyrer, nymf, peruk |
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} |
Corisca, Satyrer, nymf, peruk |
{{#invoke:WikidataIB |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} |
Corisca, Satyrer, nymf, peruk |
Using template – Fetching the names of the skapare (P170) from (Q29016906) (one value preferred):
Code | Result |
---|---|
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no}} |
Artemisia Gentileschi, Diana Rosa, Massimo Stanzione |
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=p}} |
Artemisia Gentileschi |
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=n}} |
Diana Rosa, Massimo Stanzione |
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=best}} |
Artemisia Gentileschi |
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=xyz}} |
Artemisia Gentileschi, Diana Rosa, Massimo Stanzione |
Language code redigera
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 redigera
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}} |
毛澤東 |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en-gb}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=gu}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=zh-mo}} |
મોહનદાસ ગાંધી |
Coordinates redigera
Code | Result |
---|---|
{{coord |-24.627333 |-70.404167 |display=inline}} |
24°37′38″S 70°24′15″V / 24.627333°S 70.404167°V |
{{coord |-24.627333 |-70.404167 |display=inline |format=dms}} |
24°37′38″S 70°24′15″V / 24.627333°S 70.404167°V |
{{#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″V / 24.62733°S 70.40417°V |
{{#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″V / 24.62733°S 70.40417°V |
{{#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″V / 24.62733°S 70.40417°V |
{{#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 redigera
- Date precision is month
- In Sydpolsteleskopet (Q1513315): property betydande händelse (P793) equal to byggnadskonstruktion (Q385378) has a startdatum (P580) qualifier
- Date precision is day
- In Richard Burton (Q151973): property gift med (P26) equal to Sally Burton (Q3469983) has a startdatum (P580) qualifier
- Multiple date values
- In Richard Burton (Q151973): property gift med (P26) equal to Elizabeth Taylor (Q34851) has startdatum (P580) qualifiers
- Qualifier value is an article
- In Sydpolsteleskopet (Q1513315): property har delar från klassen (P2670) equal to (Q1205231) has an instans av (P31) qualifier
getValueByQual redigera
In kött (Q10990), the value of the property uttal (ljudfil) (P443) which has qualifier verkets eller namnets språk (P407) equal to brittisk engelska (Q7979) is:
{{#invoke:WikidataIB |getValueByQual |qid=Q10990 |P443 |qualID=P407 |qvalue=Q7979 |fwd=ALL |osd=no |noicon=true}}
|
getValueByLang redigera
In kött (Q10990), the value of the property uttal (ljudfil) (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 redigera
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}} |
brittisk författare (1952–2001) |
Douglas Adams (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42 |1=wikidata}} |
brittisk författare (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}} |
getDatePrecision redigera
Filip Araben (Q1817), dödsdatum (P570) | {{#invoke:WikidataIB |getDatePrecision |P570 |qid=Q1817}} |
9 |
Filip Araben (Q1817), land (P17) | {{#invoke:WikidataIB |getDatePrecision |P17 |qid=Q1817}} |
0 |
Filip Araben (Q1817), medborgare i (P27) | {{#invoke:WikidataIB |getDatePrecision |P27 |qid=Q1817}} |
0 |
Wikipedia:Wikidata/Sandlåda för Wikidata (Q4115189), dödsdatum (P570) | {{#invoke:WikidataIB |getDatePrecision |P570 |qid=Q4115189}} |
0 |
getAliases redigera
Expensive call if using arbitrary access.
Tramadol (Q407592) | {{#invoke:WikidataIB |getAliases |fwd=ALL}} |
|
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}} |
getAllAliases redigera
Expensive call if using arbitrary access.
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllAliases}} |
|
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllAliases |qid=}} |
|
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllAliases |qid=Q407592}} |
(±)-tramadol (nn); (R,R)-tramadol, (+)-trans-2-(dimethylaminomethyl)-1-(m-methoxyphenyl)cyclohexanol, (+)-tramadol (cy); טרמל, זאלדיאר, טרמדקס (he); (+)-trans-2-(dimethylaminomethyl)-1-(m-methoxyphenyl)cyclohexanol, tramadol, (+)-tramadol (en); (+)-Tramadol, (R,R)-tramadol (eu); 曲馬多, 曲马朵, 特拉嗎竇 (zh); ترمدول (ar) |
getAllLabels redigera
Expensive call if using arbitrary access.
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllLabels}} |
|
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllLabels |qid=}} |
|
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllLabels |qid=Q407592}} |
tramadol (es); tramadol (hu); tramadol (eu); Tramadol (ast); трамадол (ru); Tramadol (de); ترامادول (fa); 曲马多 (zh); tramadol (da); Tramadol (tr); 曲馬多 (zh-hk); Tramadol (ha); Tramadol (sv); טרמדול (he); Трамадол (uk); 曲馬多 (zh-hant); 曲马多 (zh-cn); 曲马多 (zh-hans); Tramadol (uz); tramadol (ro); Трамадол (sr-ec); Трамадол (mk); トラマドール (ja); tramadolo (it); tramadol (pt); tramadol (fr); Τραμαδόλη (el); tramadool (et); tramadol (ca); 曲馬多 (zh-tw); ଟ୍ରାମାଡଲ (or); (R,R)-tramadol (pl); ทรามาดอล (th); Tramadol (sr-el); Tramadol (vi); tramadol (sk); ترامادول (mzn); Tramadol (sh); трамадол (sr); tramadol (sl); tramadol (cy); ترامادول (azb); 曲马多 (zh-sg); tramadol (id); tramadol (nn); ട്രമാഡോൾ (ml); tramadol (nl); 트라마돌 (ko); Трамадол (sah); ترامادول (arz); tramadoli (fi); (R,R)-tramadol (en); ترامادول (ar); Tramadoło (vec); tramadol (cs) |
getAllDescriptions redigera
Expensive call if using arbitrary access.
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllDescriptions}} |
|
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllDescriptions |qid=}} |
|
Tramadol (Q407592) | {{#invoke:WikidataIB |getAllDescriptions |qid=Q407592}} |
analgésico opioide (es); opioid, kábító fájdalomcsillapító (hu); konposatu kimiko (eu); کیٖمیٲیی مُرَکَب (ks); compuestu químicu (ast); compost químic (ca); chemische Verbindung (de-ch); organische Verbindung, Opioid, Arzneistoff, Analgetikum (de); chemical compound (en-gb); داروی ضددرد و مخدر (fa); 鸦片类药物,用作镇痛药 (zh); kemisk forbindelse (da); compus chimic (ro); chemická zlúčenina (sk); component quimic (oc); compositum chemicum (la); 鸦片类药物,用作镇痛药 (zh-cn); kemiallinen yhdiste (fi); kemia kombinaĵo (eo); chemická sloučenina (cs); compuesto quimico (an); রাসায়নিক যৌগ (bn); composé chimique (fr); composto químico (gl); composto químico e medicamento opioide (pt); 鸦片类药物,用作镇痛药 (zh-hans); ķīmisks savienojums (lv); chemiese verbinding (af); ମଧ୍ୟମ ଓ ସାଂଘାତିକ ଯନ୍ତ୍ରଣା ନିବାରକ ଔଷଧ (or); kemisk förening (sv); תרכובת (he); composto químico (pt-br); komponim kimik (sq); cheemesch Verbindung (lb); związek chemiczny (pl); kjemisk forbindelse (nb); chemische verbinding (nl); composto chimico (it); senyawa kimia (id); kjemisk sambinding (nn); chemical compound (en-ca); pharmaceutical drug (en); مركب كيميائي (ar); οπιοειδές αναλγητικό φάρμακο (el); քիմիական միացություն (hy) |
location redigera
- debugging
{{#invoke:WikidataIB |location}}
→{{#invoke:WikidataIB |location |qid=Q1}}
→{{#invoke:WikidataIB |location |debug=}}
→{{#invoke:WikidataIB |location |debug= |qid=Q1}}
→{{#invoke:WikidataIB |location |debug=y}}
→ Wikidata entity not found.{{#invoke:WikidataIB |location |debug=y |qid=Q1}}
→
- Milton Keynes Dons FC (Q248188)
- Milton Keynes, Buckinghamshire, Sydöstra England, England
- Milton Keynes, Buckinghamshire, Sydöstra England, England
- Milton Keynes Dons FC, Milton Keynes, Buckinghamshire, Sydöstra England, England
- Taj Mahal (Q9141)
{{#invoke:WikidataIB |location |Q9141 |first=yes |skip=yes}}
→ Taj Mahal, Indien{{#invoke:WikidataIB |location |Q9141 |first=yes}}
→ Taj Mahal, Uttar Pradesh, Indien
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, Midtown, Manhattan, New York, USA
For British locations, it would skip to Storbritannien (Q145) which is the first instance of land (Q6256). Unfortunately England (Q21) is not an instance of a country, but an instance of a Förenade kungarikets riksdelar (Q3336843), according to Wikidata. So also test for Q3336843 when skip is true.
- Milton Keynes Dons FC (Q248188)
{{#invoke:WikidataIB |location |Q248188 |first=y |skip=y}}
→ Milton Keynes Dons FC, England{{#invoke:WikidataIB |location |Q248188 |first=y}}
→ Milton Keynes Dons FC, Milton Keynes, Buckinghamshire, Sydöstra England, England
Some locations (like North Yorkshire (Q23086)) have multiple values for inom det administrativa området (P131). So check for qualifier berörd del (P518) to pick the right one.
- Selby (Q527846)
{{#invoke:WikidataIB |location |Q527846 |first=y |skip=y}}
→ Selby, England{{#invoke:WikidataIB |location |Q527846 |first=y}}
→ Selby, Selby District, North Yorkshire, England
examine redigera
Examining Djurfarmen (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}}
→
Mall:Examine
Format Dates redigera
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 |
getWebsite redigera
no parameters | ||
url = www.google.com | ||
url = https://www.google.com | ||
qid = Q95 | about |
about |
url = https://www.google.com qid = Q95 | www |
www |
url = [1] |