Content deleted Content added
Dabao qian (talk | contribs) // Edit via Wikiplus |
MusikAnimal (talk | contribs) m Protected "Module:Tone superscript": High-risk module ([Edit=Require autoconfirmed or confirmed access] (indefinite)) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1:
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>")▼
return tostring(root)▼
▲ local x=arg:gsub("(%d)","<sup>%1</sup>")
root:tag('span'):wikitext(x)
local tracking = ''
if string.match(arg, "</?sup>") then tracking = '[[Category:Pages using Tone superscript with sup tags]]' end
end
|