モジュール:サンドボックス/STS2657/Test2
表示
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
local p = {}
function p.main( frame )
local format = frame.args[2]
local timestamp = frame.args[1]
local lang_local = frame:getArgument(3)
if lang_local == nil or lang_local == "" then
lang_local = mw.getContentLanguage():getCode()
end
local lang = mw.language.new( lang_local )
return lang:formatDate(format, timestamp)
end
return p