10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 95: | Line 95: | ||
temp = mw.ustring.gsub(temp, regex, "") | temp = mw.ustring.gsub(temp, regex, "") | ||
end | end | ||
local with_text = "" | local with_text = (" with" and with_needed) or "" | ||
if mw.ustring.find(temp, "^%s*%/%s*") then | if mw.ustring.find(temp, "^%s*%/%s*") then | ||
append(" ''or" .. with_text .. "'' ") | append(" ''or" .. with_text .. "'' ") | ||
remove_temp("^%s*%/%s*") | remove_temp("^%s*%/%s*") | ||
if with_needed then with_needed = false end | |||
elseif mw.ustring.find(temp, "^%s*%+%s*") then | elseif mw.ustring.find(temp, "^%s*%+%s*") then | ||
append(" ''and" .. with_text .. "'' ") | append(" ''and" .. with_text .. "'' ") | ||
remove_temp("^%s*%+%s*") | remove_temp("^%s*%+%s*") | ||
if with_needed then with_needed = false end | |||
else | else | ||
local function glossary(form, colour) | local function glossary(form, colour) |