Jump to content

Module talk:Commons link/sandbox/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

All 103 tests passed.

testCategory
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| getCategory | Mount Whitney}} Mount Whitney Mount Whitney
checkY {{#invoke:Commons link/sandbox| getCategory | Mount Whitney |linktext=Big Mountain}} Big Mountain Big Mountain
checkY {{#invoke:Commons link/sandbox| getCategory | search=Mount Whitney}} Mount Whitney Mount Whitney
checkY {{#invoke:Commons link/sandbox| getCategory | search=Mount Whitney |linktext=Big Mountain}} Big Mountain Big Mountain
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|lcfirst=1}} agama lionotus agama lionotus
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|bold=1}} Agama lionotus Agama lionotus
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|italic=1}} Agama lionotus Agama lionotus
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|nowrap=1}} Agama lionotus Agama lionotus
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|linktext=Small Lizard|lcfirst=1}} small Lizard small Lizard
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q853037}} Bánhida Bánhida
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q853037|linktext=Old Neighborhood}} Old Neighborhood Old Neighborhood
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2551907}} Lakes of Turkey Lakes of Turkey
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2551907|linktext=Turkey Lakes}} Turkey Lakes Turkey Lakes
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q1002229}} Municipality of Vipava Municipality of Vipava
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q21032720 |fallback=Boing}} Boing Boing
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q1002229|linktext=Little Town}} Little Town Little Town
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2963317}} Chicago Lawn, Chicago Chicago Lawn, Chicago
checkY {{#invoke:Commons link/sandbox| getCategory | qid=Q2963317|linktext=Big Neighborhood}} Big Neighborhood Big Neighborhood
testGallery
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| getGallery | Mount Whitney}} Mount Whitney Mount Whitney
checkY {{#invoke:Commons link/sandbox| getGallery | Mount Whitney |linktext=Big Mountain}} Big Mountain Big Mountain
checkY {{#invoke:Commons link/sandbox| getGallery | search=Mount Whitney}} Mount Whitney Mount Whitney
checkY {{#invoke:Commons link/sandbox| getGallery | search=Mount Whitney |linktext=Big Mountain}} Big Mountain Big Mountain
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q2217963}} Samuel Baker House Samuel Baker House
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q2217963 |linktext=Big House}} Big House Big House
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q816044 | lcfirst=1}} bellows Falls, Vermont bellows Falls, Vermont
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q816044 | bold=1}} Bellows Falls, Vermont Bellows Falls, Vermont
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q816044 | italic=1}} Bellows Falls, Vermont Bellows Falls, Vermont
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q816044 | nowrap=1}} Bellows Falls, Vermont Bellows Falls, Vermont
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q816044|linktext=Little Town}} Little Town Little Town
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q139289}} Boeing 737 MAX Boeing 737 MAX
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q139289|linktext=Not a plane}} Not a plane Not a plane
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q29017978}} Bell FCX-001 Bell FCX-001
checkY {{#invoke:Commons link/sandbox| getGallery | qid=Q29017978|linktext=Medium Helicopter}} Medium Helicopter Medium Helicopter
testGalleryAndCategory
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | Mount Whitney}} Mount Whitney Mount Whitney
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | Mount Whitney |linktext=Big Mountain | italic=1}} Big Mountain Big Mountain
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | | Mount Whitney | bold=1}} Mount Whitney Mount Whitney
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | | Mount Whitney |linktext=Big Mountain|bold=1|italic=1}} Big Mountain Big Mountain
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | Mount Whitney | Mount Whitney}} Mount Whitney (category) Mount Whitney (category)
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | Mount Whitney | Mount Whitney | linktext=Big Mountain|bold=1|italic=1}} Big Mountain (category) Big Mountain (category)
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q816044|bold=1|categoryText=cat}} Bellows Falls, Vermont (cat) Bellows Falls, Vermont (cat)
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q2601154|bold=1}} Agama lionotus Agama lionotus
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q853037|italic=1|bold=1}} Bánhida Bánhida
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q2551907}} Lakes of Turkey Lakes of Turkey
checkY {{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q2963317|bold=1|linktext=Chicago Lawn|oneSearch=1}} Chicago Lawn Chicago Lawn
testGalleryOrCategory
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | Mount Whitney}} Mount Whitney Mount Whitney
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | Mount Whitney |linktext=Big Mountain}} Big Mountain Big Mountain
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | search=Mount Whitney}} Mount Whitney Mount Whitney
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | search=Mount Whitney |linktext=Big Mountain}} Big Mountain Big Mountain
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q2217963}} Samuel Baker House Samuel Baker House
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q816044}} Bellows Falls, Vermont Bellows Falls, Vermont
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q21032720}} Russian intervention in the Syrian civil war Russian intervention in the Syrian civil war
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q2601154}} Agama lionotus Agama lionotus
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q853037}} Bánhida Bánhida
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q2551907}} Lakes of Turkey Lakes of Turkey
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q1002229}} Municipality of Vipava Municipality of Vipava
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | fallback=Boing | qid=Q21032720}} Boing Boing
checkY {{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q2963317}} Chicago Lawn, Chicago Chicago Lawn, Chicago
testHasCategory
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| hasCategory | qid=Q816044}} Category:Bellows Falls, Vermont Category:Bellows Falls, Vermont
checkY {{#invoke:Commons link/sandbox| hasCategory | qid=Q139289}} Category:Boeing 737 MAX Category:Boeing 737 MAX
checkY {{#invoke:Commons link/sandbox| hasCategory | qid=Q2601154}} Category:Agama lionotus Category:Agama lionotus
checkY {{#invoke:Commons link/sandbox| hasCategory | qid=Q853037}} Category:Bánhida Category:Bánhida
checkY {{#invoke:Commons link/sandbox| hasCategory | qid=Q2551907}} Category:Lakes of Turkey Category:Lakes of Turkey
checkY {{#invoke:Commons link/sandbox| hasCategory | qid=Q1002229}} Category:Municipality of Vipava Category:Municipality of Vipava
checkY {{#invoke:Commons link/sandbox| hasCategory | qid=Q2963317}}
testHasGallery
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q2217963}} Samuel Baker House Samuel Baker House
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q816044}} Bellows Falls, Vermont Bellows Falls, Vermont
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q139289}}
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q29017978}}
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q2601154}}
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q853037}}
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q2551907}}
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q1002229}}
checkY {{#invoke:Commons link/sandbox| hasGallery | qid=Q2963317}}
testHasGalleryOrCategory
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q2217963}} Samuel Baker House Samuel Baker House
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q816044}} Bellows Falls, Vermont Bellows Falls, Vermont
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q139289}} Category:Boeing 737 MAX Category:Boeing 737 MAX
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q2601154}} Category:Agama lionotus Category:Agama lionotus
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q853037}} Category:Bánhida Category:Bánhida
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q2551907}} Category:Lakes of Turkey Category:Lakes of Turkey
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q1002229}} Category:Municipality of Vipava Category:Municipality of Vipava
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q2963317}}
checkY {{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q185676}} Category:Fado Category:Fado
testLookupFallback
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| lookupFallback | Q2217963 | P910}} nil nil
checkY {{#invoke:Commons link/sandbox| lookupFallback | Q853037 | P910}} Bánhida Bánhida
checkY {{#invoke:Commons link/sandbox| lookupFallback | Q2551907 | P1754}} Lakes of Turkey Lakes of Turkey
checkY {{#invoke:Commons link/sandbox| lookupFallback | Q2551907 | xyzzy}} nil nil
testTitleQID
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| getTitleQID }} Commons link/sandbox/testcases,Module talk,nil Commons link/sandbox/testcases,Module talk,nil
checkY {{#invoke:Commons link/sandbox| getTitleQID | Q42 | 1}} Douglas Adams,,Q42 Douglas Adams,,Q42
checkY {{#invoke:Commons link/sandbox| getTitleQID | Q15048757 | 1}} Python (genus),Category,Q15048757 Python (genus),Category,Q15048757
checkY {{#invoke:Commons link/sandbox| getTitleQID | Q0}} ,Module talk,Q0 ,Module talk,Q0
checkY {{#invoke:Commons link/sandbox| getTitleQID | Q68979196 | 1}} ,,Q68979196 ,,Q68979196
checkY {{#invoke:Commons link/sandbox| getTitleQID | 1234}} Commons link/sandbox/testcases,Module talk,nil Commons link/sandbox/testcases,Module talk,nil
testTracking
Text Expected Actual
checkY {{#invoke:Commons link/sandbox| tracking | Samuel Baker House | fetchGallery = 1 | fetchCategory = 1 | qid=Q2217963}} [[Category:Commons link is on Wikidata]] [[Category:Commons link is on Wikidata]]
checkY {{#invoke:Commons link/sandbox| tracking | Fado | fetchGallery=1 | fetchCategory=1 | qid=Q185676}} [[Category:Commons link is defined as the pagename]] [[Category:Commons link is defined as the pagename]]
checkY {{#invoke:Commons link/sandbox| tracking | Category:Fado | fetchCategory=1 | qid=Q8442543}} [[Category:Commons category link is on Wikidata]] [[Category:Commons category link is on Wikidata]]
checkY {{#invoke:Commons link/sandbox| tracking | Municipality of Vipava | fetchGallery=1 | fetchCategory=1 | qid=Q1002229}} [[Category:Commons link is defined as the pagename]] [[Category:Commons link is defined as the pagename]]
checkY {{#invoke:Commons link/sandbox| tracking | Bellows Falls | fetchGallery = 1 | fetchCategory=1 | qid=Q816044}} [[Category:Commons link is locally defined]] [[Category:Commons link is locally defined]]
checkY {{#invoke:Commons link/sandbox| tracking | Category:Bellows Falls | fetchCategory=1 | qid=Q816044}} [[Category:Commons category link is locally defined]] [[Category:Commons category link is locally defined]]
checkY {{#invoke:Commons link/sandbox| tracking || fetchGallery=1 | fetchCategory=1 | qid=Q235539}} [[Category:Commons link from Wikidata]] [[Category:Commons link from Wikidata]]
checkY {{#invoke:Commons link/sandbox| tracking || fetchCategory=1 | qid=Q121319}} [[Category:Commons category link from Wikidata]] [[Category:Commons category link from Wikidata]]
checkY {{#invoke:Commons link/sandbox| tracking | fetchGallery=1| fetchCategory=1 | qid=Q2963317}} [[Category:Commons link is the pagename]] [[Category:Commons link is the pagename]]
checkY {{#invoke:Commons link/sandbox| tracking || fetchCategory=1 | qid=Q2963317}} [[Category:Commons category link is the pagename]] [[Category:Commons category link is the pagename]]
checkY {{#invoke:Commons link/sandbox| tracking |fetchCategory=1|qid=Q21032720}} [[Category:Inconsistent wikidata for Commons category]] [[Category:Inconsistent wikidata for Commons category]]

Start a discussion about improving the Module:Commons link/sandbox/testcases page

Start a discussion