Module talk:WikidataIB/sandbox/testing
Local parameter, fetchwikidata, suppressfields
editArticle | Code | Result |
---|---|---|
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |linkprefix=":"}} |
|
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |Fred Bloggs |linkprefix=":"}} |
Fred Bloggs |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=author; number_of_pages |name=author |linkprefix=":"}} |
George Orwell |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=title; number_of_pages |name=author |linkprefix=":"}} |
|
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |linkprefix=":"}} |
George Orwell |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |Freda Bloggs |linkprefix=":"}} |
Freda Bloggs |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |linkprefix=":"}} † |
|
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author |linkprefix=":"}} |
|
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=title |name=author |linkprefix=":"}} |
George Orwell |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author |Freda Bloggs |linkprefix=":"}} |
† Note that when a blacklist is supplied, a field name is also needed, otherwise the call returns nothing.
Only sourced
editArticle | Code | Result |
---|---|---|
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=no |linkprefix=":"}} |
George Orwell |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=yes |linkprefix=":"}} |
George Orwell |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=no |linkprefix=":"}} |
Hugo Award for Best Novella, Modern Library 100 Best Novels, NPR Top 100 Science Fiction and Fantasy Books, Prometheus Award - Hall of Fame |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=yes |linkprefix=":"}} |
|
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P166 |fwd=ALL |osd= |linkprefix=":"}} |
No icon
editArticle | Code | Result |
---|---|---|
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=no |linkprefix=":"}} |
George Orwell |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=yes |linkprefix=":"}} |
George Orwell |
Animal Farm (Q1396889) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon= |linkprefix=":"}} |
George Orwell |
getValue for dates
editArticle | Code | Result |
---|---|---|
Marcus Antonius (Q357585) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q357585 |P569 |fwd=ALL |osd=no}} |
2nd century BC |
Mark Antony (Q51673) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no}} |
14 January 83 BC, 83 BC |
Mark Antony (Q51673) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BC}} |
14 January 83 BC, 83 BC |
Mark Antony (Q51673) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BCE}} |
14 January 83 BCE, 83 BCE |
Mark Antony (Q51673) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=mdy}} |
January 14, 83 BC, 83 BC |
Mark Antony (Q51673) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=y}} |
83 BC, 83 BC |
Richard Burton (Q151973) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no}} |
10 November 1925 |
Richard Burton (Q151973) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |bc=BC}} |
10 November 1925 |
Richard Burton (Q151973) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=mdy}} |
November 10, 1925 |
Richard Burton (Q151973) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=y}} |
1925 |
Philip the Arab (Q1817) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no}} |
c. 204 |
Philip the Arab (Q1817) | {{#invoke:WikidataIB/sandbox |getValue |qid=Q1817 |P570 |fwd=ALL |osd=no}} |
249 |
Earliest and latest date as qualifiers
editArticle | Code | Result |
---|---|---|
Fred W. Wright (Q61714940) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P570 |qid=Q61714940}} |
20th century |
Fred W. Wright (Q61714940) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P570 |qid=Q61714940 |qual=ALL}} |
20th century (after 1933) |
Jan I Carondelet (Q1786) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1786}} |
1428 |
Jan I Carondelet (Q1786) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1786 |qual=ALL}} |
1428 (before 1429) |
Julius Caesar (Q1048) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1048}} |
July 100 BC |
Julius Caesar (Q1048) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P569 |qid=Q1048 |qual=ALL}} |
July 100 BC (before 100 BC, disputed, after 100 BC) |
Industrial Revolution (Q2269) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269}} |
2010 |
Industrial Revolution (Q2269) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |qual=ALL}} |
2010 (before 1840, after 1820) |
Industrial Revolution (Q2269) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |lang=fr |qual=ALL}} |
2010 (avant 1840, après 1820) |
Industrial Revolution (Q2269) | {{#invoke:WikidataIB/sandbox |getValue |ps=1 |P582 |qid=Q2269 |lang=zh |qual=ALL}} |
2010年 (在1840年之前, 在1820年之后) |
France (Q142) | {{#invoke:WikidataIB/sandbox |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl |lp=:}} |
|
France (Q142) | {{#invoke:WikidataIB/sandbox |getValue |fwd=ALL |osd=n |P610 |qid=Q142 |list=ubl |lp=: |qual=ALL}} |
|
maxvals
editArticle | Code | Result |
---|---|---|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |linkprefix=":"}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid= |linkprefix=":"}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" |locally supplied value}} |
locally supplied value |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" |2=locally supplied value}} |
locally supplied value |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" |}} |
playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" |2=}} |
playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" }} |
playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" |maxvals=1}} |
playwright |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" |maxvals=4}} |
playwright, screenwriter, novelist, children's writer |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" |maxvals=99}} |
playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |linkprefix=":" |maxvals=0}} |
playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fetchwikidata=ALL |onlysourced=yes |qid=Q42 |linkprefix=":" |maxvals=0}} |
screenwriter, novelist, science fiction writer, writer, musician |
Quantity handling
editArticle | Code | Result |
---|---|---|
Birmingham (Q2256) | {{#invoke:WikidataIB/sandbox |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no}} |
267.77 ±0.01 square kilometre |
Birmingham (Q2256) | {{#invoke:WikidataIB/sandbox |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes}} |
267.77 ±0.01 km² |
List handling
editArticle | Code | Result |
---|---|---|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |linkprefix=":" }} |
playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |linkprefix=":" |sep=" – "}} |
playwright – screenwriter – novelist – children's writer – science fiction writer – comedian – writer – musician |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |linkprefix=":" |list=hlist}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |linkprefix=":" |list=ubl}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |linkprefix=":" |list=prose}} |
playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer and musician |
Getting value and qualifiers
edit- capital of (P1376) for Geneva (Q71)
- Qualifiers: start time (P580) and end time (P582)
Code | Result |
---|---|
{{#invoke:WikidataIB/sandbox |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |linkprefix=":" }} |
Canton of Geneva, Léman, Republic of Geneva, Republic of Geneva |
{{#invoke:WikidataIB/sandbox |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |linkprefix=":" |qual=P580}} |
Canton of Geneva (1815–), Léman (1798–), Republic of Geneva (1534–), Republic of Geneva (1813–) |
{{#invoke:WikidataIB/sandbox |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |linkprefix=":" |qual=P582}} |
Canton of Geneva, Léman (–1813), Republic of Geneva (–1798), Republic of Geneva (–1815) |
{{#invoke:WikidataIB/sandbox |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |linkprefix=":" |qual=P1326}} |
Canton of Geneva, Léman, Republic of Geneva, Republic of Geneva |
{{#invoke:WikidataIB/sandbox |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |linkprefix=":" |qual=DATES}} |
Canton of Geneva (1815–), Léman (1798–1813), Republic of Geneva (1534–1798), Republic of Geneva (1813–1815) |
{{#invoke:WikidataIB/sandbox |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |linkprefix=":" |qual=ALL}} |
Canton of Geneva (1815–), Léman (1798–1813), Republic of Geneva (1534–1798), Republic of Geneva (1813–1815) |
{{#invoke:WikidataIB/sandbox |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |linkprefix=":" |qual=ALL |sep=" or " |qsep=" to "}} |
Canton of Geneva (1815–) or Léman (1798–1813) or Republic of Geneva (1534–1798) or Republic of Geneva (1813–1815) |
Code | Result |
---|---|
{{#invoke:WikidataIB/sandbox |getValue |P36 |fwd=ALL |osd=no |qid=Q142 |linkprefix=":" |qual=DATES |list=ubl}} |
|
- highest point (P610) for France (Q142)
- Qualifiers: latest date (P1326) is handled by default
Code | Result |
---|---|
{{#invoke:WikidataIB/sandbox |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |linkprefix=":" }} |
Mont Blanc, Barre des Écrins |
{{#invoke:WikidataIB/sandbox |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |linkprefix=":" |qual=DATES}} |
Mont Blanc (1860–), Barre des Écrins |
{{#invoke:WikidataIB/sandbox |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |linkprefix=":" |qual=P1326}} |
Mont Blanc, Barre des Écrins (before 1860) |
{{#invoke:WikidataIB/sandbox |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |linkprefix=":" |qual=P1326 |list=hlist}} |
|
Ranks
editFetching the names of the creator (P170) from Corisca and the Satyr (Q29016906) (one value preferred):
Code | Result |
---|---|
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no}} |
Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione |
{{#invoke:WikidataIB/sandbox |getPreferredValue |P170 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no}} |
Artemisia Gentileschi |
Using getValue only: | |
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=}} |
Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione |
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=p}} |
Artemisia Gentileschi |
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=n}} |
Aniella di Beltrano, Massimo Stanzione |
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=b}} |
Artemisia Gentileschi |
{{#invoke:WikidataIB/sandbox |getValue |P170 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=x}} |
Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione |
Fetching the values of depicts (P180) from Corisca and the Satyr (Q29016906) (no values preferred):
Code | Result |
---|---|
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no}} |
Corisca, satyr, nymph, wig |
{{#invoke:WikidataIB/sandbox |getPreferredValue |P180 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no}} |
Corisca, satyr, nymph, wig |
Using getValue only: | |
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=}} |
Corisca, satyr, nymph, wig |
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=p}} |
|
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=n}} |
Corisca, satyr, nymph, wig |
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=b}} |
Corisca, satyr, nymph, wig |
{{#invoke:WikidataIB/sandbox |getValue |P180 |fwd=ALL |qid=Q29016906 |linkprefix=":" |osd=no |rank=x}} |
Corisca, satyr, nymph, wig |
Using template – Fetching the names of the creator (P170) from Corisca and the Satyr (Q29016906) (one value preferred):
Code | Result |
---|---|
{{wdib |P170 |qid=Q29016906 |linkprefix=":" |fwd=ALL |osd=no}} |
Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione |
{{wdib |P170 |qid=Q29016906 |linkprefix=":" |fwd=ALL |osd=no |rank=p}} |
Artemisia Gentileschi |
{{wdib |P170 |qid=Q29016906 |linkprefix=":" |fwd=ALL |osd=no |rank=n}} |
Aniella di Beltrano, Massimo Stanzione |
{{wdib |P170 |qid=Q29016906 |linkprefix=":" |fwd=ALL |osd=no |rank=best}} |
Artemisia Gentileschi |
{{wdib |P170 |qid=Q29016906 |linkprefix=":" |fwd=ALL |osd=no |rank=xyz}} |
Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione |
Language code
editMaddie Ziegler (Q16240603) | {{#invoke:WikidataIB/sandbox |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=}} |
Ziegler |
Maddie Ziegler (Q16240603) | {{#invoke:WikidataIB/sandbox |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=en}} |
Ziegler |
Maddie Ziegler (Q16240603) | {{#invoke:WikidataIB/sandbox |getValue |P734 |qid=Q16240603 |fwd=ALL | osd=no | linked=no |lang=ru}} |
Циглер |
Monolingual text handling
editBebe Rexha (Q16185856) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no}} |
Bleta Rexha |
Bebe Rexha (Q16185856) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=}} |
Bleta Rexha |
Bebe Rexha (Q16185856) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en}} |
Bleta Rexha |
Bebe Rexha (Q16185856) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en-gb}} |
Bleta Rexha |
Bebe Rexha (Q16185856) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=de}} |
Bleta Rexha |
Bebe Rexha (Q16185856) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=zh-mo}} |
Bleta Rexha |
Mao Zedong (Q5816) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no}} |
毛澤東 |
Mao Zedong (Q5816) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=}} |
毛澤東 |
Mao Zedong (Q5816) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en}} |
毛澤東 |
Mao Zedong (Q5816) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en-gb}} |
毛澤東 |
Mao Zedong (Q5816) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=gu}} |
毛澤東 |
Mao Zedong (Q5816) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=zh-mo}} |
毛澤東 |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en-gb}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=gu}} |
મોહનદાસ ગાંધી |
Mahatma Gandhi (Q1001) | {{#invoke:WikidataIB/sandbox |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=zh-mo}} |
મોહનદાસ ગાંધી |
Suppress "sourcing circumstances"
editAlfred Odgers (Q24646500) | {{#invoke:WikidataIB/sandbox |getValue |rank=best |P569 |qid=Q24646500 |fwd=ALL |osd=no |noicon=yes |df=y |plaindate=}} |
c. 1844 |
Alfred Odgers (Q24646500) | {{#invoke:WikidataIB/sandbox |getValue |rank=best |P569 |qid=Q24646500 |fwd=ALL |osd=no |noicon=yes |df=y |plaindate=yes}} |
1844 |
Only display qualifiers
editSouth Pole Telescope (Q1513315) | {{#invoke:WikidataIB/sandbox |getValue |P18 |qid=Q1513315 |fwd=ALL |osd=no |noicon=y |qual=P2096 |qualsonly=}} |
South pole telescope nov2009.jpg (The South Pole Telescope in November 2009) |
South Pole Telescope (Q1513315) | {{#invoke:WikidataIB/sandbox |getValue |P18 |qid=Q1513315 |fwd=ALL |osd=no |noicon=y |qual=P2096 |qualsonly=yes}} |
The South Pole Telescope in November 2009 |
Coordinates
editgetQualifierValue
edit- Date precision is month
- In South Pole Telescope (Q1513315): property significant event (P793) equal to construction (Q385378) has a start time (P580) qualifier
- Date precision is day
- In Richard Burton (Q151973): property spouse (P26) equal to Sally Burton (Q3469983) has a start time (P580) qualifier
- Multiple date values
- In Richard Burton (Q151973): property spouse (P26) equal to Elizabeth Taylor (Q34851) has start time (P580) qualifiers
- Qualifier value is an article
- In South Pole Telescope (Q1513315): property has part(s) of the class (P2670) equal to telescope mount (Q1205231) has an instance of (P31) qualifier
Code | Result |
---|---|
{{#invoke:WikidataIB/sandbox |getQualifierValue |P2670 |pval=Q1205231 |qual=P31 |fwd=ALL |qid=Q1513315 |linkprefix=":"}} |
altazimuth mount |
{{#invoke:WikidataIB/sandbox |getQualifierValue |P2670 |pval=Q1205231 |qual=P31 |fwd=ALL |qid=Q1513315 |linkprefix=":" |osd=no}} |
altazimuth mount |
getValueByQual
editIn meat (Q10990), the value of the property pronunciation audio (P443) which has qualifier language of work or name (P407) equal to British English (Q7979) is:
{{#invoke:WikidataIB/sandbox |getValueByQual |qid=Q10990 |P443 |qualID=P407 |qvalue=Q7979 |fwd=ALL |osd=no |noicon=true}}
|
getValueByLang
editIn meat (Q10990), the value of the property pronunciation audio (P443) which has the fixed qualifier "language of work or name" equal to a given language code (or default) is:
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true}}
|
|
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=sv}}
|
|
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en}}
|
|
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-gb}}
|
|
{{#invoke:WikidataIB/sandbox |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-us}}
|
getDescription
editDouglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription |qid=}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription |qid=Q42}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |1=}} |
|
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |wikidata}} |
English author and humourist (1952–2001) |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |1=wikidata}} |
English author and humourist (1952–2001) |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |locally supplied description}} |
locally supplied description |
Douglas Adams (Q42) | {{#invoke:WikidataIB/sandbox |getDescription |qid=Q42 |none}} |
location
edit- Milton Keynes Dons F.C. (Q248188)
{{#invoke:WikidataIB/sandbox |location |Q248188}}
→ Milton Keynes, City of Milton Keynes, Buckinghamshire, South East England, England{{#invoke:WikidataIB/sandbox |location |Q248188 |first=no}}
→ Milton Keynes, City of Milton Keynes, Buckinghamshire, South East England, England{{#invoke:WikidataIB/sandbox |location |Q248188 |first=yes}}
→ Milton Keynes Dons F.C., Milton Keynes, City of Milton Keynes, Buckinghamshire, South East England, England
- Aberystwyth railway station (Q2220586)
{{#invoke:WikidataIB/sandbox |location |Q2220586 |first=yes}}
→ Aberystwyth railway station, Aberystwyth, Ceredigion, Wales
- Codsall railway station (Q2455479)
{{#invoke:WikidataIB/sandbox |location |Q2455479 |first=yes}}
→ Codsall railway station, Codsall, South Staffordshire, Staffordshire, West Midlands, England
- Storhamar High School (Q12003463)
{{#invoke:WikidataIB/sandbox |location |Q12003463 |first=yes}}
→ Storhamar High School, Storhamar, Hamar, Hamar Municipality, Innlandet, Norway
- Tirumaladevarahalli (Q25572418)
{{#invoke:WikidataIB/sandbox |location |Q25572418}}
→ Madakasira mandal, Sri Sathya Sai district, Andhra Pradesh, India- This should include "Sri Sathya Sai district" instead of "Anantapur district" because of the end time (P582) qualifier. — Preceding unsigned comment added by LennardHofmann (talk • contribs) 19:48, 5 July 2022 (UTC)
Format Dates
editSome test cases for the function formatDate. Call like {{#invoke:WikidataIB/sandbox |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 |