Difference between revisions of "Module:Documentation/config"

Jump to navigation Jump to search
use UI language in module namespace
>Minorax
m (Protected "Module:Documentation/config": Highly visible page or template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
>Tacsipacsi
(use UI language in module namespace)
Line 8: Line 8:
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------


local _format = require('Module:TNT').format
local tnt = require('Module:TNT')
local function format(id)
local format
return _format('I18n/Documentation', id)
if mw.title.getCurrentTitle().namespace == 828 then
local lang = mw.getCurrentFrame():callParserFunction('int', 'lang')
format = function (id)
return tnt.formatInLanguage(lang, 'I18n/Documentation', id)
end
else
format = function (id)
return tnt.format('I18n/Documentation', id)
end
end
end


Anonymous user

Navigation menu