Jump to content

Module:Bopomofo spacing

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Remsense (talk | contribs) at 02:18, 16 April 2024 (Created page with 'local p = {} function p.main(frame) local root = mw.html.create() local pad = '<span style="padding-left:0.5ic;"> </span>' local arg = frame:getParent().args local result = '' for k,v in pairs(arg) do result = result . v . pad; end return result end return p'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}

function p.main(frame)
	local root = mw.html.create()
	local pad = '<span style="padding-left:0.5ic;">&nbsp;</span>'
	local arg = frame:getParent().args
	local result = ''
	for k,v in pairs(arg) do
		result = result . v . pad;
	end
	return result
end

return p