show 编辑

1,377,090 millennia, 8 centuries, 2 decades, 6 years, 327 days, 6 hours, 54 minutes and 8 seconds

1,377,090個千禧年、8個世紀、20年、6年、327日、6個鐘頭、54分鐘 同埋8秒

13,770,908個世紀26年327 gĕ̤ng6小時54分鐘8秒

13,770,908個世紀26年327 gĕ̤ng6小時54分鐘8秒

13,770,908个世纪26年327日天6小时54分8秒

13,770,908個世紀26年327天6小時54分鐘8秒

13,770,908個世紀26年327天6小時54分鐘8秒

13,770,908个世纪26年327天6小时54分8秒

13,770,908個世紀26年327天6小時54分鐘8秒

1,377,090 millennia, 8 centuries, 2 decades, 6 years, 327 days, 6 hours, 54 minutes and 8 seconds

1,377,090個千禧年、8個世紀、20年、6年、327日、6個鐘頭、54分鐘 同埋8秒

13,770,908個世紀26年327 gĕ̤ng6小時54分鐘8秒

13,770,908個世紀26年327 gĕ̤ng6小時54分鐘8秒

13,770,908个世纪26年327日天6小时54分8秒

13,770,908個世紀26年327天6小時54分鐘8秒

13,770,908個世紀26年327天6小時54分鐘8秒

13,770,908个世纪26年327天6小时54分8秒

13,770,908個世紀26年327天6小時54分鐘8秒

--[=[ Qnm is EdwardAlexanderCrowley's alt account

]=]

local export = {}

function export.fmt(x)
	if type(x) == 'string' then
		return '"' .. x .. '"'
	elseif type(x) == 'table' then
		local t = {}
		for _, s in ipairs(x) do
			table.insert(t, string.format('"%s"', s))
		end
		return string.format('{%s}', table.concat(t, ', '))
	else
		return tostring(x)
	end
end

function export.show(frame)
	local l = {}
	for _, code in ipairs({'en', 'yue', 'nan', 'cdo', 'wuu', 'gan', 'hak', 'zh-hans', 'zh-hant'}) do
		table.insert(l, mw.language.new(code):formatDuration(43456789123999999))
	end
	return table.concat(l, '\n\n')
end


--[===[
package.searchers[#package.searchers + 1] = function(mod)
    mod, cnt = mod:gsub('Module:', 'Module.')
    return cnt > 0 and package.searchers[2](mod) or nil
end
]===]

return export