编辑“︁Module:Chem”︁
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第3行: | 第3行: | ||
function p.chem(frame) | function p.chem(frame) | ||
local args=frame:getParent().args | local args=frame:getParent().args | ||
local chemstr="" | local chemstr="" | ||
for i, v in pairs(args) do | for i, v in pairs(args) do | ||
if | if isnumber(i) then | ||
chemstr=chemstr .. v | chemstr=chemstr .. v | ||
else | else | ||
第24行: | 第23行: | ||
if ch=="." or ch=="·" then | if ch=="." or ch=="·" then | ||
table.insert(res, "·") | table.insert(res, "·") | ||
norm=true | norm=true | ||
elseif ch=="^" then | elseif ch=="^" then | ||
第66行: | 第62行: | ||
end | end | ||
return mw.html.create(" | return mw.html.create("p"):wikitext(table.concat(res)) | ||
end | end | ||
return p | return p |