Jump to content

Module talk:Author/testcases

Page contents not supported in other languages.
Add topic
From Wikisource

All 36 tests passed.

test_categories_wikicode
Text Expected Actual
YesY {{#invoke:Author|getCategories|wikidata-id=Q1103678}} [[Category:1905 births]][[Category:1960 deaths]][[Category:Anthropologists as authors]][[Category:Author pages with gender in Wikidata]][[Category:Author pages without image]][[Category:Authors without initials]][[Category:Authors-Kl]][[Category:Male authors]][[Category:Modern authors]][[Category:Sociologists as authors]][[Category:United States authors]] [[Category:1905 births]][[Category:1960 deaths]][[Category:Anthropologists as authors]][[Category:Author pages with gender in Wikidata]][[Category:Author pages without image]][[Category:Authors without initials]][[Category:Authors-Kl]][[Category:Male authors]][[Category:Modern authors]][[Category:Sociologists as authors]][[Category:United States authors]]
YesY {{#invoke:Author|getCategories|wikidata-id=Q369724}} [[Category:1928 births]][[Category:Atheist authors]][[Category:Author pages linking to Wikimedia Commons categories]][[Category:Author pages with Wikidata image]][[Category:Author pages with gender in Wikidata]][[Category:Authors with missing death dates]][[Category:Authors without initials]][[Category:Authors-Le]][[Category:Educators as authors]][[Category:Living authors]][[Category:Lyricists as authors]][[Category:Male authors]][[Category:Mathematicians as authors]][[Category:Modern authors]][[Category:Pianists as authors]][[Category:Singers as authors]][[Category:United States authors]] [[Category:1928 births]][[Category:Atheist authors]][[Category:Author pages linking to Wikimedia Commons categories]][[Category:Author pages with Wikidata image]][[Category:Author pages with gender in Wikidata]][[Category:Authors with missing death dates]][[Category:Authors without initials]][[Category:Authors-Le]][[Category:Educators as authors]][[Category:Living authors]][[Category:Lyricists as authors]][[Category:Male authors]][[Category:Mathematicians as authors]][[Category:Modern authors]][[Category:Pianists as authors]][[Category:Singers as authors]][[Category:United States authors]]
YesY {{#invoke:Author|getCategories|wikidata-id=Q474235}} [[Category:1799 births]][[Category:1888 deaths]][[Category:Author pages linking to Wikimedia Commons categories]][[Category:Author pages with Wikidata image]][[Category:Author pages with gender in Wikidata]][[Category:Authors without initials]][[Category:Authors-Al]][[Category:Early modern authors]][[Category:Educators as authors]][[Category:Male authors]][[Category:Philosophers as authors]][[Category:Transcendentalist authors]][[Category:United States authors]][[Category:authors in EB1911]] [[Category:1799 births]][[Category:1888 deaths]][[Category:Author pages linking to Wikimedia Commons categories]][[Category:Author pages with Wikidata image]][[Category:Author pages with gender in Wikidata]][[Category:Authors without initials]][[Category:Authors-Al]][[Category:Early modern authors]][[Category:Educators as authors]][[Category:Male authors]][[Category:Philosophers as authors]][[Category:Transcendentalist authors]][[Category:United States authors]][[Category:authors in EB1911]]
test_date
Text Expected Actual
YesY {{#invoke:Author|date|year=1820}} 1820 1820
YesY {{#invoke:Author|date|year=c./1820}} c. 1820 c. 1820
YesY {{#invoke:Author|date|year=1820s}} 1820s 1820s
YesY {{#invoke:Author|date|year=1820?}} 1820? 1820?
YesY {{#invoke:Author|date|year=1820/?}} 1820? 1820?
YesY {{#invoke:Author|date|year=1932/1933}} 1932/1933 1932/1933
YesY {{#invoke:Author|date|type=birth|wikidata-id=Q4767333}} 19th century 19th century
YesY {{#invoke:Author|date|type=death|wikidata-id=Q563504}} 17th century BCE 17th century BCE
YesY {{#invoke:Author|date|wikidata-id=Q4313|type=birth}} 1110s/1114/1115 1110s/1114/1115
YesY {{#invoke:Author|date|wikidata-id=Q36322|type=death}} 1817 1817
YesY {{#invoke:Author|date|wikidata-id=Q34660|type=death}}
YesY {{#invoke:Author|date|type=birth|wikidata-id=}}
test_dates_supplied
Text Expected Actual
YesY {{#invoke:Author|dates}}
YesY {{#invoke:Author|dates|dates=Manual dates}} <br />(Manual dates) <br />(Manual dates)
YesY {{#invoke:Author|dates|dates=Manual dates|birthyear=1904|deathyear=1960s}} <br />(Manual dates) <br />(Manual dates)
YesY {{#invoke:Author|dates|dates=|birthyear=1810|deathyear=1890}} <br />(1810–1890) <br />(1810–1890)
YesY {{#invoke:Author|dates|birthyear=1810|deathyear=c./1890}} <br />(1810 – c. 1890) <br />(1810 – c. 1890)
YesY {{#invoke:Author|dates|birthyear=ca/1810|deathyear=?}} <br />(c. 1810 – ?) <br />(c. 1810 – ?)
YesY {{#invoke:Author|dates|birthyear=1932/1933|deathyear=|wikidata-id=}} <br />(1932/1933–) <br />(1932/1933–)
test_dates_wikidata
Text Expected Actual
YesY {{#invoke:Author|dates|wikidata-id=Q36322|birthyear=|deathyear=|dates=}} <br />(1775–1817) <br />(1775–1817)
YesY {{#invoke:Author|dates|wikidata_id=Q36322|birthyear=1900}} <br />(1900–1817) <br />(1900–1817)
YesY {{#invoke:Author|dates|wikidata id=Q36322|pagetitle=Jane Austen (1770-1817)}} <br />(1775–1817) <br />(1775–1817)
YesY {{#invoke:Author|dates|wikidata-id=Q36322|pagetitle=Jane Austen (mechanic)}} <br />(1775–1817) <br />(1775–1817)
YesY {{#invoke:Author|dates|wikidata-id=Q41370}} <br />(1039 BCE – 969 BCE) <br />(1039 BCE – 969 BCE)
YesY {{#invoke:Author|dates|wikidata-id=Q189937}} <br />(c. 1514 – 1572) <br />(c. 1514 – 1572)
YesY {{#invoke:Author|dates|wikidata-id=Q6279}} <br />(1942–) <br />(1942–)
YesY {{#invoke:Author|dates|wikidata-id=Q178744}}
YesY {{#invoke:Author|dates|wikidata-id=Q782401}} <br />(4th century) <br />(4th century)
YesY {{#invoke:Author|dates|wikidata-id=Q28585286}} <br />(fl. 1735) <br />(fl. 1735)
YesY {{#invoke:Author|dates|wikidata-id=Q670317}} <br />(1st century BCE) <br />(1st century BCE)
YesY {{#invoke:Author|dates|wikidata-id=Q28811762}} <br />(fl. 1900s) <br />(fl. 1900s)
YesY {{#invoke:Author|dates|wikidata-id=Q56438002}} <br />(fl. 1521) <br />(fl. 1521)
YesY {{#invoke:Author|dates|wikidata-id=Q34660}} <br />(1965–) <br />(1965–)

Start a discussion about Module:Author/testcases

Start a discussion