 inputs image canu800 either beu800 au800 bare filename with oru800 without theu800 file image prefix oru800 au800 fully formatted image link page page tou800 display foru800 multipage images djvu size size tou800 display theu800 image maxsize maximum size foru800 image sizedefault default size tou800 display theu800 image ifu800 size param isu800 blank altu800 altu800 text foru800 image title title text foru800 image border setu800 tou800 yesu800 ifu800 border center setu800 tou800 yesu800 ifu800 theu800 image hasu800 tou800 beu800 centered upright upright image param suppressplaceholder ifu800 yesu800 then checks tou800 seeu800 ifu800 image isu800 au800 placeholder andu800 suppresses itu800 link page tou800 visit when clicking onu800 image class html classes tou800 addu800 tou800 theu800 image outputs formatted image. more details available atu800 theu800 "module infoboximage docu800" page local iu800 ; local placeholder_image "blue replace this image femaleu82esvgu800" "blue replace this image maleu82esvgu800" "female nou800 free image yetu800u82epngu800" "flag ofu800 none square .svgu800" "flag ofu800 noneu82esvgu800" "flag ofu800u82esvgu800" "green replace this image femaleu82esvgu800" "green replace this image maleu82esvgu800" "image isu800 needed femaleu82esvgu800" "image isu800 needed maleu82esvgu800" "location mapu800 ofu800 noneu82esvgu800" "male nou800 free image yetu800u82epngu800" "missing flagu82epngu800" "nou800 flagu82esvgu800" "nou800 free portraitu82esvgu800" "nou800 portrait female .svgu800" "nou800 portrait male .svgu800" "redu800 replace this image femaleu82esvgu800" "redu800 replace this image maleu82esvgu800" "replace this image female blue .svgu800" "replace this image femaleu82esvgu800" "replace this image male blue .svgu800" "replace this image maleu82esvgu800" "silver replace this image femaleu82esvgu800" "silver replace this image maleu82esvgu800" "replace this imageu82esvgu800" "cricket nou800 picu800u82epngu800" "carerslogou82egifu800" "diagram neededu82esvgu800" "exampleu82ejpgu800" "image placeholderu82epngu800" "nou800 male portraitu82esvgu800" "nocover uploadu82epngu800" "nodvdcover copyu82epngu800" "noribbonu82esvgu800" "nou800 portrait bfdu800 testu82esvgu800" "placeholder barnstar ribbonu82epngu800" "project trains nou800 imageu82epngu800" "image requestu82epngu800" "sinu800 banderau82esvgu800" "sinu800 escudou82esvgu800" "replace this image templeu82epngu800" "replace this image butterflyu82epngu800" "replace this imageu82esvgu800" "replace this image1u82esvgu800" "resolution angleu82epngu800" "image nou800 portrait text bfdu800 testu82esvgu800" "insert image hereu82esvgu800" "nou800 image availableu82epngu800" "nou800 image yetu800 squareu82epngu800" "nou800 image yetu800u82epngu800" "nou800 photo availableu82esvgu800" "nou800 screenshotu82esvgu800" "nou800 image availableu82ejpgu800" "nullu82epngu800" "pictureneededu82egifu800" "place holderu82ejpgu800" "unbenanntu82ejpgu800" "uploadacopyrightfreeimageu82esvgu800" "uploadanimageu82egifu800" "uploadanimageu82esvgu800" "uploadanimageshortu82esvgu800" "carerslogou82egifu800" "diagram neededu82esvgu800" "nou800 male portraitu82esvgu800" "nodvdcover copyu82epngu800" "placeholder barnstar ribbonu82epngu800" "project trains nou800 imageu82epngu800" "image requestu82epngu800" "noimageu82egifu800" function iu800u82eisplaceholder image change underscores tou800 spaces image mwu800u82eustringu82egsub image "_u800" " " ; assert image nilu800 'mwu800u82eustringu82egsub image "_u800" " " must notu800 return nilu800' ifu800 image starts with then remove that andu800 anything after ifu800 mwu800u82eustringu82esubu800 image 1u800 2u800 " " then image mwu800u82eustringu82esubu800 image 3u800 ; image mwu800u82eustringu82egsub image " * .*" " 1u800" ; assert image nilu800 'mwu800u82eustringu82egsub image " * .*" " 1u800" must notu800 return nilu800' endu800 trim spaces image mwu800u82eustringu82egsub image ' * . * ' ' 1u800' ; assert image nilu800 "mwu800u82eustringu82egsub image ' * . * ' ' 1u800' must notu800 return nilu800" remove prefix ifu800 exists local allnames mwu800u82esiteu82enamespaces 6u800 .aliases allnames #allnames 1u800 mwu800u82esiteu82enamespaces 6u800 .name allnames #allnames 1u800 mwu800u82esiteu82enamespaces 6u800 .canonicalname foru800 iu800 name inu800 ipairs allnames dou800 ifu800 mwu800u82eustringu82elower mwu800u82eustringu82esubu800 image 1u800 mwu800u82eustringu82elenu800 name 1u800 mwu800u82eustringu82elower name .. " " then image mwu800u82eustringu82esubu800 image mwu800u82eustringu82elenu800 name 2u800 ; break endu800 endu800 trim spaces image mwu800u82eustringu82egsub image ' * . * ' ' 1u800' ; capitalise first letter image mwu800u82eustringu82eupper mwu800u82eustringu82esubu800 image 1u800 1u800 .. mwu800u82eustringu82esubu800 image 2u800 ; foru800 iu800 ju800 inu800 pairs placeholder_image dou800 ifu800 image ju800 then return true endu800 endu800 return false endu800 function iu800u82einfoboximage frame local image frameu82eargs "image" oru800 frameu82eargs 'u8d8aau8d8b5u8d988u8db8cu8d8b1' ; ifu800 image "" oru800 image nilu800 then return ""; endu800 ifu800 image "&nbsp;" then return image; endu800 ifu800 frameu82eargs "suppressplaceholder" "nou800" then ifu800 iu800u82eisplaceholder image true then return ""; endu800 endu800 ifu800 mwu800u82eustringu82elower mwu800u82eustringu82esubu800 image 1u800 5u800 "http " then return ""; endu800 ifu800 mwu800u82eustringu82elower mwu800u82eustringu82esubu800 image 1u800 6u800 " http " then return ""; endu800 ifu800 mwu800u82eustringu82elower mwu800u82eustringu82esubu800 image 1u800 7u800 " http " then return ""; endu800 ifu800 mwu800u82eustringu82elower mwu800u82eustringu82esubu800 image 1u800 6u800 "https " then return ""; endu800 ifu800 mwu800u82eustringu82elower mwu800u82eustringu82esubu800 image 1u800 7u800 " https " then return ""; endu800 ifu800 mwu800u82eustringu82elower mwu800u82eustringu82esubu800 image 1u800 8u800 " https " then return ""; endu800 ifu800 mwu800u82eustringu82esubu800 image 1u800 2u800 " " then search foru800 thumbnail images andu800 addu800 tou800 tracking catu800 ifu800 found local catu800 ""; ifu800 mwu800u82etitleu82egetcurrenttitle .namespace 0u800 andu800 mwu800u82eustringu82efind image " su800*thumb su800* " oru800 mwu800u82eustringu82efind image " su800*thumbnail su800* " oru800 mwu800u82eustringu82efind image " su800*u8d8a8u8d986u8d8afu8d8a7u8d986u8daafu8d8b4u8d8aau8db8c su800* " then catu800 " u8d8b1u8d8afu8d987 u8d8b5u8d981u8d8adu8d8a7u8d8aau8db8c u8daa9u8d987 u8d8a7u8d8b2 u8d8acu8d8b9u8d8a8u8d987 u8d8a7u8d8b7u8d984u8d8a7u8d8b9u8d8a7u8d8aa u8d987u8d985u8d8b1u8d8a7u8d987 u8d8aau8d8b5u8d8a7u8d988u8db8cu8d8b1 u8d8a8u8d986u8d8afu8d8a7u8d986u8daafu8d8b4u8d8aau8db8c u8d8a7u8d8b3u8d8aau8d981u8d8a7u8d8afu8d987 u8d985u8db8cu8e2808cu8daa9u8d986u8d986u8d8af "; endu800 return image .. catu800; elseif mwu800u82eustringu82esubu800 image 1u800 2u800 " " andu800 mwu800u82eustringu82esubu800 image 1u800 3u800 " " then return image; elseif mwu800u82eustringu82esubu800 image 1u800 1u800 " " then return image; elseif mwu800u82eustringu82esubu800 image 1u800 5u800 mwu800u82eustringu82echar 127u800 .."uniq" then found strip marker atu800 begining sou800 pass donu800'tu800 process atu800 allu800 return image; elseif mwu800u82eustringu82esubu800 image 4u800 9u800 " uniq " then found strip marker atu800 begining sou800 pass donu800'tu800 process atu800 allu800 return image; else local result ""; local page frameu82eargs "page" oru800 frameu82eargs 'u8d8b5u8d981u8d8adu8d987' ; local size frameu82eargs "size" oru800 frameu82eargs 'u8d8a7u8d986u8d8afu8d8a7u8d8b2u8d987' ; local maxsize frameu82eargs "maxsize" oru800 frameu82eargs 'u8d8adu8d8afu8d8a7u8daa9u8d8abu8d8b1 u8d8a7u8d986u8d8afu8d8a7u8d8b2u8d987' ; local sizedefault frameu82eargs "sizedefault" oru800 frameu82eargs 'u8d8a7u8d986u8d8afu8d8a7u8d8b2u8d987 u8d9beu8db8cu8d8b4u8e2808cu8d981u8d8b1u8d8b6' ; local altu800 frameu82eargs "altu800" oru800 frameu82eargs 'u8d8acu8d8a7u8db8cu8daafu8d8b2u8db8cu8d986' ; local link frameu82eargs "link" oru800 frameu82eargs 'u8d9beu8db8cu8d988u8d986u8d8af' ; local title frameu82eargs "title" oru800 frameu82eargs 'u8d8b9u8d986u8d988u8d8a7u8d986' ; local border frameu82eargs "border" oru800 frameu82eargs 'u8d8adu8d8a7u8d8b4u8db8cu8d987' ; local upright frameu82eargs "upright" oru800 frameu82eargs 'u8d8a7u8db8cu8d8b3u8d8aau8d8a7u8d8afu8d987' oru800 ""; local thumbtime frameu82eargs "thumbtime" oru800 ""; local center frameu82eargs "center" oru800 frameu82eargs 'u8d988u8d8b3u8d8b7' ; local class frameu82eargs "class" ; remove prefix ifu800 exists local allnames mwu800u82esiteu82enamespaces 6u800 .aliases allnames #allnames 1u800 mwu800u82esiteu82enamespaces 6u800 .name allnames #allnames 1u800 mwu800u82esiteu82enamespaces 6u800 .canonicalname foru800 iu800 name inu800 ipairs allnames dou800 ifu800 mwu800u82eustringu82elower mwu800u82eustringu82esubu800 image 1u800 mwu800u82eustringu82elenu800 name 1u800 mwu800u82eustringu82elower name .. " " then image mwu800u82eustringu82esubu800 image mwu800u82eustringu82elenu800 name 2u800 ; break endu800 endu800 ifu800 maxsize "" andu800 maxsize nilu800 then ifu800 nou800 sizedefault then setu800 tou800 maxsize ifu800 sizedefault "" oru800 sizedefault nilu800 then sizedefault maxsize endu800 check tou800 seeu800 ifu800 size bigger than maxsize ifu800 size "" andu800 size nilu800 then local sizenumber tonumber mwu800u82eustringu82ematch size " du800*" oru800 0u800; local maxsizenumber tonumber mwu800u82eustringu82ematch maxsize " du800*" oru800 0u800; ifu800 sizenumber maxsizenumber andu800 maxsizenumber 0u800 then size maxsize; endu800 endu800 endu800 addu800 pxu800 tou800 size ifu800 just au800 number ifu800 tonumber size oru800 0u800 0u800 then size size .. "pxu800"; endu800 addu800 pxu800 tou800 sizedefault ifu800 just au800 number ifu800 tonumber sizedefault oru800 0u800 0u800 then sizedefault sizedefault .. "pxu800"; endu800 result " u8d9beu8d8b1u8d988u8d986u8d8afu8d987 " .. image; ifu800 page "" andu800 page nilu800 then result result .. " u8d8b5u8d981u8d8adu8d987 " .. page; endu800 ifu800 size "" andu800 size nilu800 then result result .. " " .. size; elseif sizedefault "" andu800 sizedefault nilu800 then result result .. " " .. sizedefault; else result result .. " u8d8a8u8db8cu8e2808cu8d982u8d8a7u8d8a8"; endu800 ifu800 center "yesu800" then result result .. " u8d988u8d8b3u8d8b7" endu800 ifu800 altu800 "" andu800 altu800 nilu800 then result result .. " u8d8acu8d8a7u8db8cu8daafu8d8b2u8db8cu8d986 " .. altu800; endu800 ifu800 link "" andu800 link nilu800 then result result .. " u8d9beu8db8cu8d988u8d986u8d8af " .. link; endu800 ifu800 border "yesu800" oru800 border "u8d8a8u8d984u8d987" then result result .. " u8d8adu8d8a7u8d8b4u8db8cu8d987"; endu800 ifu800 upright "yesu800" oru800 upright "u8d8a8u8d984u8d987" then result result .. " u8d8a7u8db8cu8d8b3u8d8aau8d8a7u8d8afu8d987"; elseif upright "" then result result .. " u8d8a7u8db8cu8d8b3u8d8aau8d8a7u8d8afu8d987 " .. upright; endu800 ifu800 thumbtime "" then result result .. " thumbtime " .. thumbtime; endu800 ifu800 class nilu800 andu800 class "" then result result .. " class " .. class; endu800 ifu800 altu800 value isu800 au800 keyword then dou800 notu800 useu800 asu800 au800 description ifu800 altu800 "thumbnail" oru800 altu800 "u8d8a8u8d986u8d8afu8d8a7u8d986u8daafu8d8b4u8d8aau8db8c" oru800 altu800 "thumb" oru800 altu800 "u8d8a7u8d986u8daafu8d8b4u8d8aau8db8c" oru800 altu800 "frameless" oru800 altu800 "u8d8a8u8db8cu8e2808cu8d982u8d8a7u8d8a8" oru800 altu800 "left" oru800 altu800 "u8da86u8d9be" oru800 altu800 "center" oru800 altu800 "u8d988u8d8b3u8d8b7" oru800 altu800 "right" oru800 altu800 "u8d8b1u8d8a7u8d8b3u8d8aa" oru800 altu800 "upright" oru800 altu800 "u8d8a7u8db8cu8d8b3u8d8aau8d8a7u8d8afu8d987" oru800 altu800 "border" oru800 altu800 "u8d8adu8d8a7u8d8b4u8db8cu8d987" oru800 mwu800u82eustringu82ematch altu800 oru800 "" ' 0u800 9u8dbb0 u8dbb9 *pxu800 ' 1u800 nilu800 then altu800 nilu800; endu800 ifu800 title "" andu800 title nilu800 then does title param contain anyu800 templatestyles ifu800 yesu800 then setu800 tou800 blank. ifu800 mwu800u82eustringu82ematch frame preprocess title 'uniq templatestyles 1u800 nilu800 then title nilu800; endu800 endu800 ifu800 title "" andu800 title nilu800 then result result .. " " .. title; endu800 result result .. " "; return result; endu800 endu800 return iu800; 