(.+).wikipedia.org/wiki/File:(.+) (.+).wikipedia.org/wiki/(.+)#/media/File:(.+) matchText (dURL, rExp, wLang, shortFile) matchText (dURL, rExp, wLang, wSlug, shortFile) function page_Array shortFile get wikicommons_FetchImagePageJson (shortFile) put json_ToArray (it) into pageArray return pageArray end page_Array
Below is a second similar version from teh same handler....
https://commons.wikimedia.org/wiki/(File:.+) matchText (dURL, "rExp]", shortFile) function page_Array droppedURL put "Wikimedia Image" into pTitle get "Drag these images to your source page..." put pageArray_Construct (pTitle, it) into pArray wikicommons_FetchAndAddTwoImages pArray, shortFile pageArray_CleanJournal pArray return pArray end page_Array