Մոդուլ:Առավելագույնը 600 փիքսել
Documentation for this module may be created at Մոդուլ:Առավելագույնը 600 փիքսել/doc
local p = {}
function p.checkimagesize(frame)
local s = frame:getParent().args[1]
local first, second = string.match(s, "(%d+)%D+(%d+)")
if (first == nil or second == nil or tonumber(first) > 600 or tonumber(second) > 600) then
return '[[Կատեգորիա:Խնդիրներ_պատկերների_չափսերի_հետ]]' .. s
else
return first .. ' × ' .. second
end
end
return p