Content deleted Content added
No edit summary |
No edit summary |
||
Line 4:
local getArgs = require('Module:Arguments').getArgs
local gsub = string.gsub
local lower = string.lower
function p.variants(frame)
Line 17 ⟶ 18:
--Nothing to look for; use defaultWord right away
returnWord = defaultWord
elseif args.defaultLang == gsub(lower(args.engvar), '^en%-(%w%w)$', formatISO) then
--By the defaultLang, the defaultWord is asked
returnWord = defaultWord
else
returnWord = args[gsub(lower(args.engvar), '^en%-(%w%w)$', formatISO)]
end
Line 33 ⟶ 34:
local title = mw.title.getCurrentTitle()
if title:inNamespaces(0, 10, 828) then --main, templ, module
catMaintenance = '_[[:Category:Articles using an unknown Template:Engvar option]]'
end
end
|