Module:Bopomofo spacing
Jump to navigation
Jump to search
File:Test Template Info-Icon - Version (2).svg Module documentation[view] [edit] [history] [purge]
| File:Greek lc beta icon.svg | This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
Implements {{Bopomofo spacing}}.
require('strict')
local p = {}
function p._main(frame)
local root = mw.html.create()
local pad = '<span style="padding-left:0.5ic;"> </span>'
local result = '<span lang="zh-Bopo">'
for k,v in pairs(frame) do
if k > 1 then
result = result .. pad
end
result = result .. v
end
result = result .. '</span>'
return result
end
function p.main(frame)
local getArgs = require('Module:Arguments').getArgs
return p._main(getArgs(frame))
end
return p