今天是2025年12月17日 第51周 星期三
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
“模块:WikitextLC”的版本间的差异
跳到导航
跳到搜索
(参考 Help:字词转换语法) |
小 (不要再引入缩写字了……) |
||
| 第18行: | 第18行: | ||
end | end | ||
return '-{' .. ( force and '' or 'zh;' ) .. variant .. '|' .. content .. '}-' | return '-{' .. ( force and '' or 'zh;' ) .. variant .. '|' .. content .. '}-' | ||
| − | |||
| − | |||
| − | |||
| − | |||
end | end | ||
| 第34行: | 第30行: | ||
function p.hidden( content ) | function p.hidden( content ) | ||
return '-{H|' .. content .. '}-' | return '-{H|' .. content .. '}-' | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
end | end | ||
return p | return p | ||
2014年8月12日 (二) 21:02的版本
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, force )
if type( variant ) == 'table' then
variant = table.concat( variant, ';' )
end
return '-{' .. ( force and '' or 'zh;' ) .. variant .. '|' .. content .. '}-'
end
function p.raw( content )
return '-{R|' .. content .. '}-'
end
function p.title( content )
return '-{T|' .. content .. '}-'
end
function p.hidden( content )
return '-{H|' .. content .. '}-'
end
return p