Content deleted Content added
sync with live version of the module |
test |
||
Line 133:
mw.log("require('Module:Excerpt').get failed: " .. excerpt) -- probably got a redlink
excerpt = nil
end
if excerpt and excerpt ~= '' and #excerpt > 10 then -- check again in case we had a few characters plus Read more...
Line 155 ⟶ 148:
excerpt = gsubWikitextLists(excerpt, '#', 'ol', 'li')
excerpt = mw.text.trim(excerpt)
excerpt = excerpt .. " ('''[[" .. title .. "|" .. options.more .. "]]''')"
▲ if readmore_text then
end
local text = '<div style{{=}}text-align:left;>' .. mw.ustring.gsub(excerpt, '%c', '<br>') .. '</div>'
|