local getArgs = require('Module:Arguments').getArgs local p = {} --1 function p.main(frame) local args = getArgs(frame) return p._main(args) end function p._main(args) local content = args.content content=string.gsub(content,'([12][90]%d%d)[/%.%-]([0-1]?%d)[/%.%-]([0-3]?%d)','%1年%2月%3日') content=string.gsub(content,"年0?([1-9])月","年{{0}}%1月") content=string.gsub(content,"月0?([1-9])日","月{{0}}%1日") return(content) end return p