మాడ్యూల్ చర్చ:WikidataIB/testing
This is the test cases page for the Module:WikidataIB. to update the examples. You can test how this page looks in the different skins with these links:
|
Local parameter, fetchwikidata, suppressfields మార్చు
Article | Code | Result |
---|---|---|
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50}} |
|
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |Fred Bloggs}} |
Fred Bloggs |
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=author; number_of_pages |name=author}} |
George Orwell |
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=title; number_of_pages |name=author}} |
|
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL}} |
George Orwell |
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |Freda Bloggs}} |
Freda Bloggs |
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author}} |
|
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author}} |
|
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=title |name=author}} |
George Orwell |
యానిమల్ ఫార్మ్ (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 మార్చు
Article | Code | Result |
---|---|---|
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=no}} |
George Orwell |
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=yes}} |
George Orwell |
యానిమల్ ఫార్మ్ (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 |
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=yes}} |
|
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=}} |
No icon మార్చు
Article | Code | Result |
---|---|---|
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=no}} |
George Orwell |
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=yes}} |
George Orwell |
యానిమల్ ఫార్మ్ (Q1396889) | {{#invoke:WikidataIB |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=}} |
George Orwell |
getValue for dates మార్చు
Article | Code | Result |
---|---|---|
(Q357585) | {{#invoke:WikidataIB |getValue |qid=Q357585 |P569 |fwd=ALL |osd=no}} |
2 century BCdate QS:P,-150-00-00T00:00:00Z/7 |
(Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no}} |
14 జనవరి 83 BCdate QS:P,-0083-01-14T00:00:00Z/11, 83.0 BC |
(Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BC}} |
14 జనవరి 83 BCdate QS:P,-0083-01-14T00:00:00Z/11, 83.0 BC |
(Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BCE}} |
14 జనవరి 83 BCEdate QS:P,-0083-01-14T00:00:00Z/11, 83.0 BCE |
(Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=mdy}} |
14 జనవరి 83 BCdate QS:P,-0083-01-14T00:00:00Z/11, 83.0 BC |
(Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=y}} |
83.0 BC, 83.0 BC |
(Q51673) | {{#invoke:WikidataIB |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |lang=fr}} |
14 janvier 83 av. J.-C.date QS:P,-0083-01-14T00:00:00Z/11, 83 av. J.-C. |
(Q151973) | {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no}} |
10 నవంబరు 1925 |
(Q151973) | {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |bc=BC}} |
10 నవంబరు 1925 |
(Q151973) | {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=mdy}} |
10 నవంబరు 1925 |
(Q151973) | {{#invoke:WikidataIB |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=y}} |
1925 |
(Q1817) | {{#invoke:WikidataIB |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no}} |
c. 204 |
(Q1817) | {{#invoke:WikidataIB |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no |pd=yes}} |
204 |
(Q1817) | {{#invoke:WikidataIB |getValue |qid=Q1817 |P570 |fwd=ALL |osd=no}} |
249 |
Earliest and latest date as qualifiers మార్చు
Article | Code | Result |
---|---|---|
(Q61714940) | {{#invoke:WikidataIB |getValue |ps=1 |P570 |qid=Q61714940}} |
20 centurydate QS:P,+1950-00-00T00:00:00Z/7 |
(Q61714940) | {{#invoke:WikidataIB |getValue |ps=1 |P570 |qid=Q61714940 |qual=ALL}} |
20 centurydate QS:P,+1950-00-00T00:00:00Z/7 (after 1933date QS:P,+1933-00-00T00:00:00Z/7,P1319,+1933-00-00T00:00:00Z/9) |
(Q1786) | {{#invoke:WikidataIB |getValue |ps=1 |P569 |qid=Q1786}} |
1428 |
(Q1786) | {{#invoke:WikidataIB |getValue |ps=1 |P569 |qid=Q1786 |qual=ALL}} |
1428 (before 1429date QS:P,+1429-00-00T00:00:00Z/7,P1326,+1429-00-00T00:00:00Z/9) |
జూలియస్ సీజర్ (Q1048) | {{#invoke:WikidataIB |getValue |ps=1 |P569 |qid=Q1048}} |
జూలై 100 BCdate QS:P,-0100-07-00T00:00:00Z/10 |
జూలియస్ సీజర్ (Q1048) | {{#invoke:WikidataIB |getValue |ps=1 |P569 |qid=Q1048 |qual=ALL}} |
జూలై 100 BCdate QS:P,-0100-07-00T00:00:00Z/10 (before 100 BC, disputed, after 100 BC) |
పారిశ్రామిక విప్లవం (Q2269) | {{#invoke:WikidataIB |getValue |ps=1 |P582 |qid=Q2269}} |
2010 |
పారిశ్రామిక విప్లవం (Q2269) | {{#invoke:WikidataIB |getValue |ps=1 |P582 |qid=Q2269 |qual=ALL}} |
2010 (before 1840date QS:P,+1840-00-00T00:00:00Z/7,P1326,+1840-00-00T00:00:00Z/9, after 1820date QS:P,+1820-00-00T00:00:00Z/7,P1319,+1820-00-00T00:00:00Z/9) |
పారిశ్రామిక విప్లవం (Q2269) | {{#invoke:WikidataIB |getValue |ps=1 |P582 |qid=Q2269 |lang=fr |qual=ALL}} |
2010 (avant 1840date QS:P,+1840-00-00T00:00:00Z/7,P1326,+1840-00-00T00:00:00Z/9, après 1820date QS:P,+1820-00-00T00:00:00Z/7,P1319,+1820-00-00T00:00:00Z/9) |
పారిశ్రామిక విప్లవం (Q2269) | {{#invoke:WikidataIB |getValue |ps=1 |P582 |qid=Q2269 |lang=zh |qual=ALL}} |
2010年 (在1840年之前date QS:P,+1840-00-00T00:00:00Z/7,P1326,+1840-00-00T00:00:00Z/9, 在1820年之后date QS:P,+1820-00-00T00:00:00Z/7,P1319,+1820-00-00T00:00:00Z/9) |
ఫ్రాన్స్ (Q142) | {{#invoke:WikidataIB |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl}} |
|
ఫ్రాన్స్ (Q142) | {{#invoke:WikidataIB |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl |qual=ALL}} |
maxvals మార్చు
Article | Code | Result |
---|---|---|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |locally supplied value}} |
locally supplied value |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=locally supplied value}} |
locally supplied value |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |}} |
నాటక రచయిత, స్క్రీన్ప్లే రచయిత, నవలాకారుడు, బాలసాహిత్య రచయిత, సైన్స్ ఫిక్షన్ రచయిత, హాస్యనటుడు, రచయిత, musician |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=}} |
నాటక రచయిత, స్క్రీన్ప్లే రచయిత, నవలాకారుడు, బాలసాహిత్య రచయిత, సైన్స్ ఫిక్షన్ రచయిత, హాస్యనటుడు, రచయిత, musician |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42}} |
నాటక రచయిత, స్క్రీన్ప్లే రచయిత, నవలాకారుడు, బాలసాహిత్య రచయిత, సైన్స్ ఫిక్షన్ రచయిత, హాస్యనటుడు, రచయిత, musician |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=1}} |
నాటక రచయిత |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=4}} |
నాటక రచయిత, స్క్రీన్ప్లే రచయిత, నవలాకారుడు, బాలసాహిత్య రచయిత |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=99}} |
నాటక రచయిత, స్క్రీన్ప్లే రచయిత, నవలాకారుడు, బాలసాహిత్య రచయిత, సైన్స్ ఫిక్షన్ రచయిత, హాస్యనటుడు, రచయిత, musician |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=0}} |
నాటక రచయిత, స్క్రీన్ప్లే రచయిత, నవలాకారుడు, బాలసాహిత్య రచయిత, సైన్స్ ఫిక్షన్ రచయిత, హాస్యనటుడు, రచయిత, musician |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fetchwikidata=ALL |onlysourced=yes |qid=Q42 |maxvals=0}} |
స్క్రీన్ప్లే రచయిత, నవలాకారుడు, సైన్స్ ఫిక్షన్ రచయిత, రచయిత, musician |
Quantity handling మార్చు
వైశాల్యం (P2046), సముద్ర మట్టం నుండి ఎత్తు (P2044)
Article | Code | Result |
---|---|---|
బర్మింగ్హామ్ (Q2256) | {{#invoke:WikidataIB |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no}} |
267.77 ±0.01 చదరపు కిలోమీటరు |
బర్మింగ్హామ్ (Q2256) | {{#invoke:WikidataIB |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes}} |
267.77 ±0.01 km² |
బర్మింగ్హామ్ (Q2256) | {{#invoke:WikidataIB |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes |conv=y}} |
267.76 to 267.78 km2 (103.38 to 103.39 sq mi) |
(Q18208369) | {{#invoke:WikidataIB |getValue |qid=Q18208369 |P2044 |ps=1 |uabbr=y |conv=y}} |
4.5 m (15 ft) |
(Q4574072) | {{#invoke:WikidataIB |getValue |qid=Q4574072 |P2044 |ps=1 |uabbr=y |conv=y}} |
8,848 m (29,029 ft) |
అంతర్జాతీయ అంతరిక్ష కేంద్రం (Q25271) | {{#invoke:WikidataIB |getValue |qid=Q25271 |P2044 |ps=1 |uabbr=y |conv=y}} |
405 km (252 mi) |
List handling మార్చు
Article | Code | Result |
---|---|---|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42}} |
నాటక రచయిత, స్క్రీన్ప్లే రచయిత, నవలాకారుడు, బాలసాహిత్య రచయిత, సైన్స్ ఫిక్షన్ రచయిత, హాస్యనటుడు, రచయిత, musician |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |sep=" – "}} |
నాటక రచయిత – స్క్రీన్ప్లే రచయిత – నవలాకారుడు – బాలసాహిత్య రచయిత – సైన్స్ ఫిక్షన్ రచయిత – హాస్యనటుడు – రచయిత – musician |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=hlist}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=ubl}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=prose}} |
నాటక రచయిత, స్క్రీన్ప్లే రచయిత, నవలాకారుడు, బాలసాహిత్య రచయిత, సైన్స్ ఫిక్షన్ రచయిత, హాస్యనటుడు, రచయిత, musician |
Getting value and qualifiers మార్చు
- ఇది ఈ ప్రాంతానికి రాజధాని (P1376) for జెనీవా (Q71)
- Qualifiers: ప్రారంభ సమయం (P580) and ముగింపు తేదీ (P582)
Code | Result |
---|---|
{{#invoke:WikidataIB |getValue |P36 |fwd=ALL |osd=no |qid=Q142 |qual=DATES |list=ubl}} |
- అత్యంత ఎత్తైన ప్రాంతము (P610) for ఫ్రాన్స్ (Q142)
- Qualifiers: అంత్యంత ఇటీవలి తేదీ (P1326) is handled to include "before "
Scaling quantities మార్చు
Ranks మార్చు
Fetching the names of the స్రష్ట (P170) from (Q29016906) (one value preferred):
Fetching the values of చిత్రణ (P180) from (Q29016906) (no values preferred):
Using template – Fetching the names of the స్రష్ట (P170) from (Q29016906) (one value preferred):
Language code మార్చు
(Q16240603) | {{#invoke:WikidataIB |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=}} |
Ziegler |
(Q16240603) | {{#invoke:WikidataIB |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=en}} |
Ziegler |
(Q16240603) | {{#invoke:WikidataIB |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=ru}} |
Циглер |
Monolingual text handling మార్చు
(Q16185856) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no}} |
Bleta Rexha |
(Q16185856) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=}} |
Bleta Rexha |
(Q16185856) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en}} |
Bleta Rexha |
(Q16185856) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en-gb}} |
Bleta Rexha |
(Q16185856) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=de}} |
Bleta Rexha |
(Q16185856) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=zh-mo}} |
Bleta Rexha |
మావో జెడాంగ్ (Q5816) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no}} |
毛澤東 |
మావో జెడాంగ్ (Q5816) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=}} |
毛澤東 |
మావో జెడాంగ్ (Q5816) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en}} |
毛澤東 |
మావో జెడాంగ్ (Q5816) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en-gb}} |
毛澤東 |
మావో జెడాంగ్ (Q5816) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=gu}} |
毛澤東 |
మావో జెడాంగ్ (Q5816) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=zh-mo}} |
毛澤東 |
మోహన్ దాస్ కరంచంద్ గాంధీ (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no}} |
મોહનદાસ ગાંધી |
మోహన్ దాస్ కరంచంద్ గాంధీ (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=}} |
મોહનદાસ ગાંધી |
మోహన్ దాస్ కరంచంద్ గాంధీ (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en}} |
મોહનદાસ ગાંધી |
మోహన్ దాస్ కరంచంద్ గాంధీ (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en-gb}} |
મોહનદાસ ગાંધી |
మోహన్ దాస్ కరంచంద్ గాంధీ (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=gu}} |
મોહનદાસ ગાંધી |
మోహన్ దాస్ కరంచంద్ గాంధీ (Q1001) | {{#invoke:WikidataIB |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=zh-mo}} |
મોહનદાસ ગાંધી |
Coordinates మార్చు
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′38.4″S 70°24′15″W |
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline}} |
24°37′38″S 70°24′15″W / 24.62733°S 70.40417°W |
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dms}} |
24°37′38.4″S 70°24′15″W |
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dms}} |
24°37′38″S 70°24′15″W / 24.62733°S 70.40417°W |
{{#invoke:WikidataIB |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dec}} |
24.62733°S 70.40417°W |
{{#invoke:WikidataIB |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dec}} |
24°37′38″S 70°24′15″W / 24.62733°S 70.40417°W |
{{#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 మార్చు
- Date precision is month
- In (Q1513315): property ముఖ్య సంఘటన (P793) equal to నిర్మాణం (Q385378) has a ప్రారంభ సమయం (P580) qualifier
- Date precision is day
- In (Q151973): property జీవిత భాగస్వామి (P26) equal to (Q3469983) has a ప్రారంభ సమయం (P580) qualifier
- Multiple date values
- In (Q151973): property జీవిత భాగస్వామి (P26) equal to ఎలిజబెత్ టేలర్ (Q34851) has ప్రారంభ సమయం (P580) qualifiers
- Qualifier value is an article
- In (Q1513315): property (P2670) equal to (Q1205231) has an అవతారం (P31) qualifier
getValueByQual మార్చు
In మాంసము (Q10990), the value of the property పలికే విధం (P443) which has qualifier భాష (P407) equal to బ్రిటిష్ ఆంగ్లం (Q7979) is:
{{#invoke:WikidataIB |getValueByQual |qid=Q10990 |P443 |qualID=P407 |qvalue=Q7979 |fwd=ALL |osd=no |noicon=true}}
|
getValueByLang మార్చు
In మాంసము (Q10990), the value of the property పలికే విధం (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 మార్చు
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription |qid=}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42 |}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42 |1=}} |
|
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42 |wikidata}} |
ఇంగ్లీషు రచయిత, హాస్యకారుడు |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42 |1=wikidata}} |
ఇంగ్లీషు రచయిత, హాస్యకారుడు |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42 |locally supplied description}} |
locally supplied description |
డగ్లస్ ఆడమ్స్ (Q42) | {{#invoke:WikidataIB |getDescription |qid=Q42 |none}} |
getAliases మార్చు
Expensive call if using arbitrary access.
(Q407592) | {{#invoke:WikidataIB |getAliases |qid= |fwd=ALL}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=alias}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=alias |Tramadol}} |
Tramadol |
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |spf=alias}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |spf=alias |Tramadol}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |list=hlist}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |list=ubl}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |lang=de}} |
|
(Q407592) | {{#invoke:WikidataIB |getAliases |qid=Q407592 |fwd=ALL |lang=fr}} |
location మార్చు
- 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}}
→
- (Q248188)
- Milton Keynes, మిల్టన్ కీన్స్, బకింగ్హంషైర్, South East England, ఇంగ్లాండ్
- Milton Keynes, మిల్టన్ కీన్స్, బకింగ్హంషైర్, South East England, ఇంగ్లాండ్
- Milton Keynes Dons F.C., Milton Keynes, మిల్టన్ కీన్స్, బకింగ్హంషైర్, South East England, ఇంగ్లాండ్
- తాజ్ మహల్ (Q9141)
{{#invoke:WikidataIB |location |Q9141 |first=yes |skip=yes}}
→ తాజ్ మహల్, భారతదేశం{{#invoke:WikidataIB |location |Q9141 |first=yes}}
→ తాజ్ మహల్, ఆగ్రా, ఆగ్రా జిల్లా, Agra division, ఉత్తర ప్రదేశ్, భారతదేశం
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.
- ఎంపైర్ స్టేట్ బిల్డింగ్ (Q9188)
{{#invoke:WikidataIB |location |Q9188 |first=yes |skip=yes}}
→ ఎంపైర్ స్టేట్ బిల్డింగ్, అమెరికా సంయుక్త రాష్ట్రాలు{{#invoke:WikidataIB |location |Q9188 |first=yes}}
→ ఎంపైర్ స్టేట్ బిల్డింగ్, Midtown Manhattan, మాన్హాటన్, న్యూయార్క్, న్యూయార్క్ రాష్ట్రం, అమెరికా సంయుక్త రాష్ట్రాలు
For British locations, it would skip to యునైటెడ్ కింగ్డమ్ (Q145) which is the first instance of దేశం (Q6256). Unfortunately ఇంగ్లాండ్ (Q21) is not an instance of a country, but an instance of a (Q3336843), according to Wikidata. So also test for Q3336843 when skip is true.
- (Q248188)
{{#invoke:WikidataIB |location |Q248188 |first=y |skip=y}}
→ Milton Keynes Dons F.C., ఇంగ్లాండ్{{#invoke:WikidataIB |location |Q248188 |first=y}}
→ Milton Keynes Dons F.C., Milton Keynes, మిల్టన్ కీన్స్, బకింగ్హంషైర్, South East England, ఇంగ్లాండ్
Some locations (like ఉత్తర యార్క్ షైర్ (Q23086)) have multiple values for వున్న పరిపాలనా ప్రాంతం (P131). So check for qualifier అన్వయించే భాగం (P518) to pick the right one.
- సెల్బి (Q527846)
{{#invoke:WikidataIB |location |Q527846 |first=y |skip=y}}
→ సెల్బి, ఇంగ్లాండ్{{#invoke:WikidataIB |location |Q527846 |first=y}}
→ సెల్బి, Selby, North Yorkshire, ఉత్తర యార్క్ షైర్, ఇంగ్లాండ్
examine మార్చు
Examining యానిమల్ ఫార్మ్ (Q1396889) బొమ్మ (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}}
→
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", }, }
Format Dates మార్చు
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 |