မာတိကာသို့ ခုန်သွားရန်

မော်ဂျူး:ja-furigana

ဝစ်ရှင်နရီ မှ

Documentation for this module may be created at မော်ဂျူး:ja-furigana/doc

local export = {}
local m_ja = require("Module:ja")

function export.show(frame)
	local args = frame:getParent().args
	local first_param = args[1] or error("Example has not been specified. Please pass parameter 1 to the module invocation.")
	local kana = args[2] or ""
	-- if user only specified one param, assume first param is only kana (no kanji)
	if kana == "" then kana = first_param end
	return ('<span lang="ja" class="Jpan">%s</span>'):format(m_ja.add_ruby_backend(first_param, kana))
end

return export