Module:Sandbox/yurik
Jump to navigation
Jump to search
local p = {};
p.lang = function(frame)
local userlang = frame:preprocess( '{{int:lang}}' )
local currentlang = mw.language.getContentLanguage():getCode()
return 'userlang=' .. mw.text.jsonEncode(userlang) .. '<br>currentlang='..mw.text.jsonEncode(currentlang)
end
p.test = function(frame)
return 'test'
end
return p