模块:WikitextLC
wiki:zh>Liangent2013年4月14日 (日) 16:22的版本
local p = {}
function p.selective( content )
local text = '-{'
for variant, value in pairs( content ) do
if value == '' then
value = '<span/>'
end
text = text .. variant .. ':' .. value .. ';'
end
text = text .. '}-'
return text
end
function p.converted( content, variant )
return '-{' .. variant .. '|' .. content .. '}-'
end
return p