A modult a Modul:ruby/doc lapon tudod dokumentálni

local export = {}

function export.show(frame)
	local word = frame:getParent().args[1]
	word = mw.ustring.gsub(word, "%[([^%[%]]+)%]%(([^%(%)]+)%)", "<ruby><rb>%1</rb><rt>%2</rt></ruby>")
	word = mw.ustring.gsub(word, "(.)%(([^%(%)]+)%)", "<ruby><rb>%1</rb><rt>%2</rt></ruby>")
	return word
end

return export