વિભાગ:InfoboxImage: આવૃત્તિઓ વચ્ચેનો તફાવત

Content deleted Content added
https exceptions
tidy sub code as per talk page
લીટી ૫૨:
-- remove file: or image: prefix if exists
if mw.ustring.lower(mw.ustring.sub(image,1,5)) == "file:" then
image = mw.ustring.sub(image,6,mw.ustring.len(image));
end
if mw.ustring.lower(mw.ustring.sub(image,1,6)) == "image:" then
image = mw.ustring.sub(image,7,mw.ustring.len(image));
end
-- Trim spaces
લીટી ૧૨૮:
-- remove file: or image: prefix if exists
if mw.ustring.lower(mw.ustring.sub(image,1,5)) == "file:" then
image = mw.ustring.sub(image,6,mw.ustring.len(image));
end
if mw.ustring.lower(mw.ustring.sub(image,1,6)) == "image:" then
image = mw.ustring.sub(image,7,mw.ustring.len(image));
end