Anonymous user
Module:InfoboxImage: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 40:
function i.IsPlaceholder(image)
-- change underscores to spaces
-- if image starts with [[ then remove that and anything after |
if mw.ustring.sub(
end
-- Trim spaces
image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1');
-- remove file: or image: prefix if exists
if mw.ustring.lower(mw.ustring.sub(
end
if mw.ustring.lower(mw.ustring.sub(
end
-- Trim spaces
image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1');
-- capitalise first letter
for i,j in pairs(placeholder_image) do
if
return true
end
|