Module:Excerpt/sandbox: Difference between revisions

Content deleted Content added
Replace hand-made <section> parsing for a call to #lst as the hand-made version continues to cause problems
allow err to read i18n
Line 7:
-- Returns blank text or an error message if requested
local errors
local function err(textmsg,a,b)
local text = mw.ustring.format(d.error[msg] or msg or '',a,b)
if errors then error(text, 2) end
return ""