Anonymous

Module:InfoboxImage: Difference between revisions

From Roses, Tulips, & Liberty
add a sanity check to help debug an intermittent error
(Add some from CAT:WIP)
(add a sanity check to help debug an intermittent error)
Line 92:
-- change underscores to spaces
image = mw.ustring.gsub(image, "_", " ");
assert(image ~= nil, 'mw.ustring.gsub must not return nil')
-- if image starts with [[ then remove that and anything after |
if mw.ustring.sub(image,1,2) == "[[" then
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.