Module:ja-furigana
Documentation for this module may be created at Module:ja-furigana/doc
local m_ja = require("Module:ja")
local export = {}
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 m_ja.add_ruby_backend(first_param, kana)
end
return export