跳转到内容

模組:WikitextLC

被永久保护的模块
维基百科,自由的百科全书

这是本页的一个历史版本,由Liangent留言 | 贡献2013年4月14日 (日) 08:04编辑。这可能和当前版本存在着巨大的差异。

local p = {}

function p.selective( content )
    local text = '-{'
    for variant, value in 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