10,735
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
local content = current:getContent() | local content = current:getContent() | ||
content = mw.ustring.match(content, "(==%s*" .. language.name .. "%s*==.+)\n==[^=]+==\n") or mw.ustring.match(content, "==%s*" .. language.name .. "%s*==.+") | content = assert(mw.ustring.match(content, "(==%s*" .. language.name .. "%s*==.+)\n==[^=]+==\n") or mw.ustring.match(content, "==%s*" .. language.name .. "%s*==.+"), "No " .. language.name .. " section found in:\n" .. content) | ||
local etymology_i = 1 | local etymology_i = 1 | ||
Line 57: | Line 57: | ||
end | end | ||
end | end | ||
assert(section.main, "Could not locate head template in:\n" .. content) | |||