Langbahn Team – Weltmeisterschaft

Module talk:WikidataIB/sandbox1/testing

Local parameter, fetchwikidata, suppressfields

  • author (P50)
Article Code Result
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50}}
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |Fred Bloggs}} Fred Bloggs
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=author; number_of_pages |name=author}} George Orwell Edit this on Wikidata
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=title; number_of_pages |name=author}}
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL}} George Orwell Edit this on Wikidata
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |Freda Bloggs}} Freda Bloggs
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author}}
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=author |name=author}}
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |spf=title |name=author}} George Orwell Edit this on Wikidata
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |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

  • author (P50)
  • award received (P166)
Article Code Result
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=no}} George Orwell Edit this on Wikidata
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |osd=yes}} George Orwell Edit this on Wikidata
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=no}} Retro Hugo Award for Best Novella, Modern Library's 100 Best Novels, NPR Top 100 Science Fiction and Fantasy Books, Prometheus Award - Hall of Fame Edit this on Wikidata
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=yes}} Retro Hugo Award for Best Novella Edit this on Wikidata
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P166 |fwd=ALL |osd=}} Retro Hugo Award for Best Novella Edit this on Wikidata

No icon

  • author (P50)
Article Code Result
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=no}} George Orwell Edit this on Wikidata
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=yes}} George Orwell
Animal Farm (Q1396889) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1396889 |P50 |fwd=ALL |noicon=}} George Orwell Edit this on Wikidata

getValue for dates

  • date of birth (P569)
  • date of death (P570)
Article Code Result
Marcus Antonius (Q357585) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q357585 |P569 |fwd=ALL |osd=no}} 2nd century BC Edit this on Wikidata
Mark Antony (Q51673) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no}} 14 January 83 BC, 83 BC Edit this on Wikidata
Mark Antony (Q51673) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BC}} 14 January 83 BC, 83 BC Edit this on Wikidata
Mark Antony (Q51673) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |bc=BCE}} 14 January 83 BCE, 83 BCE Edit this on Wikidata
Mark Antony (Q51673) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=mdy}} January 14, 83 BC, 83 BC Edit this on Wikidata
Mark Antony (Q51673) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |df=y}} 83 BC, 83 BC Edit this on Wikidata
Mark Antony (Q51673) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q51673 |P569 |fwd=ALL |osd=no |lang=fr}} 14 janvier 83 av. J.-C., 83 av. J.-C. Edit this on Wikidata
Richard Burton (Q151973) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no}} 10 November 1925 Edit this on Wikidata
Richard Burton (Q151973) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |bc=BC}} 10 November 1925 Edit this on Wikidata
Richard Burton (Q151973) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=mdy}} November 10, 1925 Edit this on Wikidata
Richard Burton (Q151973) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q151973 |P569 |fwd=ALL |osd=no |df=y}} 1925 Edit this on Wikidata
Philip the Arab (Q1817) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1817 |P569 |fwd=ALL |osd=no}} c. 204 Edit this on Wikidata
Philip the Arab (Q1817) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q1817 |P570 |fwd=ALL |osd=no}} 249, September 249, October 249 Edit this on Wikidata
For Fred W. Wright (Q61714940), date of death (P570):
  • {{#invoke:WikidataIB/sandbox1 |getValue |ps=1 |P570 |qid=Q61714940}} → 20th century
  • {{#invoke:WikidataIB/sandbox1 |getValue |ps=1 |P570 |qid=Q61714940 |qual=ALL}} → 20th century (after 1933)
For France (Q142), highest point (P610):
  • {{#invoke:WikidataIB/sandbox1 |getValue |ps=1 |P610 |qid=Q142}}Mont Blanc
  • {{#invoke:WikidataIB/sandbox1 |getValue |ps=1 |P610 |qid=Q142 |qual=ALL}}Mont Blanc (Treaty of Turin, 45°49′57″N 6°51′53″E, 4,808.72 metre, 1860–)
For Julius Caesar (Q1048), date of birth (P569):
  • {{#invoke:WikidataIB/sandbox1 |getValue |ps=1 |P569 |qid=Q1048}} → July 100 BC
  • {{#invoke:WikidataIB/sandbox1 |getValue |ps=1 |P569 |qid=Q1048 |qual=ALL}} → July 100 BC (before 100 BC, disputed, after 100 BC)

maxvals

occupation (P106)

Article Code Result
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |locally supplied value}} locally supplied value
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=locally supplied value}} locally supplied value
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |}} playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |2=}} playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42}} playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=1}} playwright Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=4}} playwright, screenwriter, novelist, children's writer Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=99}} playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=no |qid=Q42 |maxvals=0}} playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fetchwikidata=ALL |onlysourced=yes |qid=Q42 |maxvals=0}} screenwriter, novelist, science fiction writer, writer, musician Edit this on Wikidata

Quantity handling

area (P2046), elevation above sea level (P2044)

Article Code Result
Birmingham (Q2256) {{#invoke:WikidataIB/sandbox1 |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no}} 267.77 ±0.01 square kilometre Edit this on Wikidata
Birmingham (Q2256) {{#invoke:WikidataIB/sandbox1 |getValue |P2046 |qid=Q2256 |fwd=ALL |osd=no |unitabbr=yes}} 267.77 ±0.01 km² Edit this on Wikidata
Birmingham (Q2256) {{#invoke:WikidataIB/sandbox1 |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) Edit this on Wikidata
Capitancillo (Q18208369) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q18208369 |P2044 |ps=1 |uabbr=y |conv=y}} 4.5 m (15 ft)
1970 Mount Everest disaster (Q4574072) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q4574072 |P2044 |ps=1 |uabbr=y |conv=y}} 8,848 m (29,029 ft)
International Space Station (Q25271) {{#invoke:WikidataIB/sandbox1 |getValue |qid=Q25271 |P2044 |ps=1 |uabbr=y |conv=y}}

List handling

  • occupation (P106)
Article Code Result
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fwd=ALL |osd=no |qid=Q42}} playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |sep=" – "}} playwrightscreenwriternovelistchildren's writer – science fiction writer – comedianwritermusician Edit this on Wikidata
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=hlist}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=ubl}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getValue |P106 |fwd=ALL |osd=no |qid=Q42 |list=prose}} playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer and musician Edit this on Wikidata

Getting value and qualifiers

capital of (P1376) for Geneva (Q71)
Qualifiers: start time (P580) and end time (P582)
Code Result
{{#invoke:WikidataIB/sandbox1 |getValue |P1376 |fwd=ALL |osd=no |qid=Q71}} Canton of Geneva, Léman, Republic of Geneva, Republic of Geneva Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P580}} Canton of Geneva (1815–), Léman (1798–), Republic of Geneva (1534–), Republic of Geneva (1813–) Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P582}} Canton of Geneva, Léman (–1813), Republic of Geneva (–1798), Republic of Geneva (–1815) Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=P1326}} Canton of Geneva, Léman, Republic of Geneva, Republic of Geneva Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=DATES}} Canton of Geneva (1815–), Léman (1798–1813), Republic of Geneva (1534–1798), Republic of Geneva (1813–1815) Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |qual=ALL}} Canton of Geneva (1815–), Léman (1798–1813), Republic of Geneva (1534–1798), Republic of Geneva (1813–1815) Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P1376 |fwd=ALL |osd=no |qid=Q71 |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) Edit this on Wikidata

capital (P36) for France (Q142)
Code Result
{{#invoke:WikidataIB/sandbox1 |getValue |P36 |fwd=ALL |osd=no |qid=Q142 |qual=DATES |list=ubl}}

highest point (P610) for France (Q142)
Qualifiers: latest date (P1326) is handled to include "before "
Code Result
{{#invoke:WikidataIB/sandbox1 |getValue |P610 |fwd=ALL |osd=no |qid=Q142}} Mont Blanc, Barre des Écrins Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=DATES}} Mont Blanc (1860–), Barre des Écrins Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=P1326}} Mont Blanc, Barre des Écrins (before 1860) Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P610 |fwd=ALL |osd=no |qid=Q142 |qual=P1326 |list=hlist}}

Scaling quantities

nominal GDP (P2131) for United States of America (Q30) and Germany (Q183)
Code Result
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n}} 23,315,080,560,000 United States dollar, 25,462,700,000,000 United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |uabbr=y}} $23,315,080,560,000, $25,462,700,000,000 Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=3}}} 23,315,080,560 thousand United States dollar, 25,462,700,000 thousand United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=3 |uabbr=y}}} $23,315,080,560 thousand, $25,462,700,000 thousand Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=6}}} 23,315,081 million United States dollar, 25,462,700 million United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=6 |uabbr=y}}} $23,315,081 million, $25,462,700 million Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=9}}} 23,315 billion United States dollar, 25,463 billion United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=9 |uabbr=y}}} $23,315 billion, $25,463 billion Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=12}}} 23.32 trillion United States dollar, 25.46 trillion United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=12 |uabbr=y}}} $23.32 trillion, $25.46 trillion Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=}}} 23,315,080,560,000 United States dollar, 25,462,700,000,000 United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale= |uabbr=y}}} $23,315,080,560,000, $25,462,700,000,000 Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=10}}} 23,315 billion United States dollar, 25,463 billion United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=10 |uabbr=y}}} $23,315 billion, $25,463 billion Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=-10}}} 23,315,080,560,000 United States dollar, 25,462,700,000,000 United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=-10 |uabbr=y}}} $23,315,080,560,000, $25,462,700,000,000 Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 23,315 billion United States dollar, 25,463 billion United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} $23,315 billion, $25,463 billion Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 23,315 billion United States dollar, 25,463 billion United States dollar Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q30 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} $23,315 billion, $25,463 billion Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q183 |P2131 |rank=b |fwd=ALL |osd=n |scale=auto}}} 4,121 billion Euro Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |qid=Q183 |P2131 |rank=b |fwd=ALL |osd=n |scale=A |uabbr=y}}} 4,121 billion € Edit this on Wikidata

Ranks

Fetching the names of the creator (P170) from Corisca and the Satyr (Q29016906) (one value preferred):

Code Result
{{#invoke:WikidataIB/sandbox1 |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getPreferredValue |P170 |fwd=ALL |qid=Q29016906 |osd=no}} Artemisia Gentileschi Edit this on Wikidata
Using getValue only:
{{#invoke:WikidataIB/sandbox1 |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=p}} Artemisia Gentileschi Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=n}} Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} Artemisia Gentileschi Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P170 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata

Fetching the values of depicts (P180) from Corisca and the Satyr (Q29016906) (no values preferred):

Code Result
{{#invoke:WikidataIB/sandbox1 |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}} Corisca, satyr, nymph, wig Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getPreferredValue |P180 |fwd=ALL |qid=Q29016906 |osd=no}} Corisca, satyr, nymph, wig Edit this on Wikidata
Using getValue only:
{{#invoke:WikidataIB/sandbox1 |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=}} Corisca, satyr, nymph, wig Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=p}}
{{#invoke:WikidataIB/sandbox1 |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=n}} Corisca, satyr, nymph, wig Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=b}} Corisca, satyr, nymph, wig Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getValue |P180 |fwd=ALL |qid=Q29016906 |osd=no |rank=x}} Corisca, satyr, nymph, wig Edit this on Wikidata

Using template – Fetching the names of the creator (P170) from Corisca and the Satyr (Q29016906) (one value preferred):

Code Result
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=p}} Artemisia Gentileschi Edit this on Wikidata
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=n}} Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=best}} Artemisia Gentileschi Edit this on Wikidata
{{wdib |P170 |qid=Q29016906 |fwd=ALL |osd=no |rank=xyz}} Artemisia Gentileschi, Aniella di Beltrano, Massimo Stanzione Edit this on Wikidata

Language code

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

Monolingual text handling

  • birth name (P1477)
Testing getValue using birth name (P1477) for Bebe Rexha (Q16185856)
Bebe Rexha (Q16185856) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no}} Bleta Rexha Edit this on Wikidata
Bebe Rexha (Q16185856) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=}} Bleta Rexha Edit this on Wikidata
Bebe Rexha (Q16185856) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en}} Bleta Rexha Edit this on Wikidata
Bebe Rexha (Q16185856) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=en-gb}} Bleta Rexha Edit this on Wikidata
Bebe Rexha (Q16185856) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=de}} Bleta Rexha Edit this on Wikidata
Bebe Rexha (Q16185856) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q16185856 |fwd=ALL |osd=no |lang=zh-mo}} Bleta Rexha Edit this on Wikidata
Testing getValue using birth name (P1477) for Mao Zedong (Q5816)
Mao Zedong (Q5816) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no}} 毛澤東 Edit this on Wikidata
Mao Zedong (Q5816) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=}} 毛澤東 Edit this on Wikidata
Mao Zedong (Q5816) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en}} 毛澤東 Edit this on Wikidata
Mao Zedong (Q5816) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=en-gb}} 毛澤東 Edit this on Wikidata
Mao Zedong (Q5816) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=gu}} 毛澤東 Edit this on Wikidata
Mao Zedong (Q5816) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q5816 |fwd=ALL |osd=no |lang=zh-mo}} 毛澤東 Edit this on Wikidata
Testing getValue using birth name (P1477) for Mahatma Gandhi (Q1001)
Mahatma Gandhi (Q1001) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no}} મોહનદાસ ગાંધી Edit this on Wikidata
Mahatma Gandhi (Q1001) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=}} મોહનદાસ ગાંધી Edit this on Wikidata
Mahatma Gandhi (Q1001) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en}} મોહનદાસ ગાંધી Edit this on Wikidata
Mahatma Gandhi (Q1001) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=en-gb}} મોહનદાસ ગાંધી Edit this on Wikidata
Mahatma Gandhi (Q1001) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=gu}} મોહનદાસ ગાંધી Edit this on Wikidata
Mahatma Gandhi (Q1001) {{#invoke:WikidataIB/sandbox1 |getValue |P1477 |qid=Q1001 |fwd=ALL |osd=no |lang=zh-mo}} મોહનદાસ ગાંધી Edit this on Wikidata

Coordinates

  • Very Large Telescope (Q265628)
  • coordinate location (P625)
Code Result
{{coord |-24.627333 |-70.404167 |display=inline}} 24°37′38″S 70°24′15″W / 24.627333°S 70.404167°W / -24.627333; -70.404167
{{coord |-24.627333 |-70.404167 |display=inline |format=dms}} 24°37′38″S 70°24′15″W / 24.627333°S 70.404167°W / -24.627333; -70.404167
{{#invoke:WikidataIB/sandbox1 |getValue |P625 |fwd=ALL |osd=no |qid=Q265628}} 24°37′38.4″S 70°24′15″W Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline}} 24°37′38″S 70°24′15″W / 24.62733°S 70.40417°W / -24.62733; -70.40417
{{#invoke:WikidataIB/sandbox1 |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dms}} 24°37′38.4″S 70°24′15″W Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dms}} 24°37′38″S 70°24′15″W / 24.62733°S 70.40417°W / -24.62733; -70.40417
{{#invoke:WikidataIB/sandbox1 |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |format=dec}} 24.62733°S 70.40417°W Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getCoords |fwd=ALL |osd=no |qid=Q265628 |display=inline|format=dec}} 24°37′38″S 70°24′15″W / 24.62733°S 70.40417°W / -24.62733; -70.40417
{{#invoke:WikidataIB/sandbox1 |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=long}} -70.40417
{{#invoke:WikidataIB/sandbox1 |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=lat}} -24.62733
{{#invoke:WikidataIB/sandbox1 |getValue |P625 |fwd=ALL |osd=no |qid=Q265628 |noicon=true |show=longlat}} -70.40417, -24.62733

getQualifierValue

Date precision is month
In South Pole Telescope (Q1513315): property significant event (P793) equal to construction (Q385378) has a start time (P580) qualifier
Code Result
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P793 |pval=Q385378 |qual=P580 |fwd=ALL |qid=Q1513315}} November 2006 Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P793 |pval=Q385378 |qual=P580 |fwd=ALL |qid=Q1513315 |osd=no}} November 2006 Edit this on Wikidata
Date precision is day
In Richard Burton (Q151973): property spouse (P26) equal to Sally Burton (Q3469983) has a start time (P580) qualifier
Code Result
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P26 |pval=Q3469983 |qual=P580 |fwd=ALL |qid=Q151973}}
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P26 |pval=Q3469983 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no}} 3 July 1983 Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P26 |pval=Q3469983 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no |df=mdy}} July 3, 1983 Edit this on Wikidata
Multiple date values
In Richard Burton (Q151973): property spouse (P26) equal to Elizabeth Taylor (Q34851) has start time (P580) qualifiers
Code Result
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P26 |pval=Q34851 |qual=P580 |fwd=ALL |qid=Q151973}} 15 March 1964 Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P26 |pval=Q34851 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no}} 15 March 1964, 10 October 1975 Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P26 |pval=Q34851 |qual=P580 |fwd=ALL |qid=Q151973 |osd=no |df=mdy}} March 15, 1964, October 10, 1975 Edit this on Wikidata
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/sandbox1 |getQualifierValue |P2670 |pval=Q1205231 |qual=P31 |fwd=ALL |qid=Q1513315}} altazimuth mount Edit this on Wikidata
{{#invoke:WikidataIB/sandbox1 |getQualifierValue |P2670 |pval=Q1205231 |qual=P31 |fwd=ALL |qid=Q1513315 |osd=no}} altazimuth mount Edit this on Wikidata

getValueByQual

In 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/sandbox1 |getValueByQual |qid=Q10990 |P443 |qualID=P407 |qvalue=Q7979 |fwd=ALL |osd=no |noicon=true}}

getValueByLang

In 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/sandbox1 |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true}}
{{#invoke:WikidataIB/sandbox1 |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=sv}}
{{#invoke:WikidataIB/sandbox1 |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en}}
{{#invoke:WikidataIB/sandbox1 |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-gb}}
{{#invoke:WikidataIB/sandbox1 |getValueByLang |qid=Q10990 |P443 |fwd=ALL |osd=no |noicon=true |lang=en-us}}

getDescription

Testing getDescription
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription |qid=}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription |qid=Q42}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription |qid=Q42 |}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription |qid=Q42 |1=}}
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription |qid=Q42 |wikidata}} English science fiction writer and humorist (1952–2001)
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription |qid=Q42 |1=wikidata}} English science fiction writer and humorist (1952–2001)
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription |qid=Q42 |locally supplied description}} locally supplied description
Douglas Adams (Q42) {{#invoke:WikidataIB/sandbox1 |getDescription |qid=Q42 |none}}

location

Milton Keynes Dons F.C. (Q248188)
Milton Keynes, City of Milton Keynes, Buckinghamshire, South East England, England
Milton Keynes, City of Milton Keynes, Buckinghamshire, South East England, England
Milton Keynes Dons F.C., Milton Keynes, City of Milton Keynes, Buckinghamshire, South East England, England
Taj Mahal (Q9141)
{{#invoke:WikidataIB/sandbox1 |location |Q9141 |first=yes |skip=yes}}Taj Mahal, India
{{#invoke:WikidataIB/sandbox1 |location |Q9141 |first=yes}}Taj Mahal, Uttar Pradesh, India

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/sandbox1 |location |Q9188 |first=yes |skip=yes}}Empire State Building, US
{{#invoke:WikidataIB/sandbox1 |location |Q9188 |first=yes}}Empire State Building, Midtown Manhattan, Manhattan, New York City, New York

For British locations, it would skip to United Kingdom (Q145) which is the first instance of country (Q6256). Unfortunately England (Q21) is not an instance of a country, but an instance of a constituent country of the United Kingdom (Q3336843), according to Wikidata. So also test for Q3336843 when skip is true.

Milton Keynes Dons F.C. (Q248188)
{{#invoke:WikidataIB/sandbox1 |location |Q248188 |first=y |skip=y}}Milton Keynes Dons F.C., England
{{#invoke:WikidataIB/sandbox1 |location |Q248188 |first=y}}Milton Keynes Dons F.C., Milton Keynes, City of Milton Keynes, Buckinghamshire, South East England, England

examine

Examining Animal Farm (Q1396889) image (P18)
{{#invoke:WikidataIB/sandbox1 |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/sandbox1 |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/sandbox1 |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/sandbox1 |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/sandbox1 |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/sandbox1 |formatDate | 1 August 30 BCE |bc=BCE |df=dmy}}

Input date: 1 August 30 BCE, 12:39:56
no parameters 1 August 30 BCE
bc=BC 1 August 30 BC
bc=BCE 1 August 30 BCE
bc=bc 1 August 30 BC
bc=bce 1 August 30 BCE
bc=XYZ 1 August 30 BCE
df=dmy 1 August 30 BCE
df=DMY 1 August 30 BCE
df=mdy August 1, 30 BCE
df=MDY August 1, 30 BCE
df=ABC 1 August 30 BCE
df=y 30 BCE
bc=BCE df=dmy 1 August 30 BCE
bc=BCE df=mdy 1 August 30 BCE
bc=BCE df=y 30 BCE
bc=BC df=dmy 1 August 30 BC
bc=BC df=mdy August 1, 30 BC
bc=BC df=y 30 BC
Input date: 20 January 2017, 12:39:56
no parameters 20 January 2017
bc=BC 20 January 2017
bc=BCE 20 January 2017
bc=bc 20 January 2017
bc=bce 20 January 2017
bc=XYZ 20 January 2017
df=dmy 20 January 2017
df=DMY 20 January 2017
df=mdy January 20, 2017
df=MDY January 20, 2017
df=ABC 20 January 2017
df=y 2017
bc=BCE df=dmy 20 January 2017
bc=BCE df=mdy 20 January 2017
bc=BCE df=y 2017
bc=BC df=dmy 20 January 2017
bc=BC df=mdy January 20, 2017
bc=BC df=y 2017