Editing Module:Infobox Biome
From Eco - English Wiki
Your changes will be displayed to readers once an authorized user accepts them. (help)
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 151: | Line 151: | ||
local image = 'NoImage.png|link=https://wiki.play.eco/index.php?title=Special:Upload&wpDestFile=' .. | local image = 'NoImage.png|link=https://wiki.play.eco/index.php?title=Special:Upload&wpDestFile=' .. | ||
imageName .. '_' .. suffix .. '.png|[[Category:Pages_with_missing_' .. suffix:lower() .. ']]' | imageName .. '_' .. suffix .. '.png|[[Category:Pages_with_missing_' .. suffix:lower() .. ']]' | ||
if | if mw.title.makeTitle('File', imageName .. '_' .. suffix .. '.png').file.exists then | ||
image = imageName .. '_' .. suffix .. '.png' | image = imageName .. '_' .. suffix .. '.png' | ||
elseif mw.title.makeTitle('File', imageName .. '_' .. suffix .. '.jpg').file.exists then | |||
image = imageName .. '_' .. suffix .. '.jpg' | |||
end | end | ||
return image | return image |