模块:ExampleTable:修订间差异
无编辑摘要 |
无编辑摘要 |
||
| 第7行: | 第7行: | ||
local input = args[1] or "" | local input = args[1] or "" | ||
local output = args[2] | local output = args[2] | ||
local has_nowiki = input:match("</?nowiki>") | |||
if not output then | if not output then | ||
local nowiki_content = input:gsub("</?nowiki>", "") | if has_nowiki then | ||
output = frame:preprocess( | local nowiki_content = input:gsub("</?nowiki>", "") | ||
output = frame:preprocess(nowiki_content) | |||
else | |||
output = frame:preprocess(input) | |||
end | |||
end | end | ||