"ماڈیول:Main page image" کے نسخوں کے درمیان فرق
new image size calculation |
requested by User:Uzume to avoid script errors |
||
سطر 10: | سطر 10: | ||
local new_width = 140 | local new_width = 140 | ||
local page = mw.title.makeTitle('File', args[1]) | local page = mw.title.makeTitle('File', args[1]) | ||
if not page.fileExists then | if not page or not page.fileExists then | ||
return new_width | return new_width | ||
end | end |