Module:InfoboxImage: Difference between revisions

update to supporess http links & pass through gallery or other tags
(process parser parms better on example pages)
(update to supporess http links & pass through gallery or other tags)
Line 78:
return "";
end
end
 
if mw.ustring.lower(mw.ustring.sub(image,1,5)) == "http:" then
return "";
end
if mw.ustring.lower(mw.ustring.sub(image,1,6)) == "[http:" then
return "";
end
if mw.ustring.lower(mw.ustring.sub(image,1,7)) == "[[http:" then
return "";
end
 
Line 85 ⟶ 95:
return image;
elseif mw.ustring.sub(image,1,1) == "<" then
return image;
elseif mw.ustring.sub(image,1,5) == mw.ustring.char(127).."UNIQ" then
-- Found strip marker at begining, so pass don't process at all
return image;
else
Anonymous user