Module:InfoboxImage: Difference between revisions

tidy sub code as per talk page
(https exceptions)
(tidy sub code as per talk page)
Line 52:
-- 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
Line 128:
-- 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
Anonymous user