The editors' meeting has been canceled for technical reasons.
View source for Module:WikitextLC
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
--- Construct an inline conversion from a table input.
-- @param content table of the form
-- { ["zh-cn"]='foobar', ["zh-tw"]='firecat', ["zh-hk"]='' }
-- @returns string
-- "-{zh-cn:foobar;zh-tw:firecat;zh-hk:<span></span>}-"
--
-- @fixme allow for generating output without "-{" "}-", so that
-- it can be used with the last three wrappers.
function p.selective( content )
local text = '-{'
for variant, value in pairs( content ) do
if value == '' then
value = '<span></span>'
end
text = text .. variant .. ':' .. value .. ';'
end
text = text .. '}-'
return text
end
000
1:0
Return to Module:WikitextLC.