Module:Format time and Module:Format time/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Ymblanter
m Protected "Module:Format time": High-risk template or module: request at WP:RFPP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
 
imported>HouseBlaster
test
 
Line 10: Line 10:
-- fmt = the format to output the time, according to [[:mw:Help:Extension:ParserFunctions##time]] (default: j xg Y)
-- fmt = the format to output the time, according to [[:mw:Help:Extension:ParserFunctions##time]] (default: j xg Y)
-- s (or [1]) = the string to process; should be a date (default: empty string)
-- s (or [1]) = the string to process; should be a date (default: empty string)
return mw.getCurrentFrame():callParserFunction('#time', {args.fmt or 'j xg Y', require('Module:YMD to ISO')._main(args.s or args[1])})
return mw.getContentLanguage():formatDate(args.fmt or 'j xg Y', require('Module:YMD to ISO')._main(args.s or args[1]), false)
end
end


return p
return p