Module:InfoboxImage: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(process parser parms better on example pages) |
(update to supporess http links & pass through gallery or other tags) |
||
Line 78: | Line 78: | ||
return ""; |
return ""; |
||
end |
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 |
end |
||
Line 85: | Line 95: | ||
return image; |
return image; |
||
elseif mw.ustring.sub(image,1,1) == "<" then |
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; |
return image; |
||
else |
else |