Module:Tone superscript

Frae Wikipedia, the free beuk o knawledge
Jump to navigation Jump to search

Documentation for this module may be created at Module:Tone superscript/doc

local p = {}

function p.main(frame)
	local root = mw.html.create()
	local arg = frame:getParent().args[1] or ""
	local x = arg:gsub("%f[%d%s]([%d\*]+)", "<sup>%1</sup>")
	local tracking = ''
	if string.match(arg, "</?sup>") then tracking = '[[Category:Pages uisin Tone superscript wi sup tags]]' end
	return tostring(root)..tracking

return p