今天是2025年12月17日 第51周 星期三
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
“模块:WikitextLC”的版本间的差异
跳到导航
跳到搜索
(←建立内容为“local p = {} function p.selective( content ) local text = '-{' for variant, value in content do if value == '' then val...”的新頁面) |
|||
| 第11行: | 第11行: | ||
text = text .. '}-' | text = text .. '}-' | ||
return text | return text | ||
| + | end | ||
| + | |||
| + | function p.converted( content, variant ) | ||
| + | return '-{' .. variant .. '|' .. content .. '}-' | ||
end | end | ||
return p | return p | ||
2013年4月14日 (日) 16: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