Modulis:NAMESPACEID
Lua kļūda Modulis:Documentation, 144. rinda: message: type error in message cfg.container (string expected, got nil).
-- This module implements {{NAMESPACEID}}.
local p = {}
function p.main(frame)
local ns = frame:getParent().args[1] or mw.title.getCurrentTitle().namespace
local nsTable = mw.site.namespaces[ns]
if nsTable then
return nsTable.id
else
return '<strong class="error">Nederīga vārdtelpa ' ..
'{{[[Template:NAMESPACEID|NAMESPACEID]]}}</strong>'
end
end
return p