Module:Command: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 181: | Line 181: | ||
-- Don't encode if told not to or if there is a sub-command | -- Don't encode if told not to or if there is a sub-command | ||
if args.escape ~= '0' then | if args.escape ~= '0' then | ||
result = result:gsub( '<', '<' ):gsub( '<(!%-%- /?Command %-%->)','<%1') | result = result:gsub( '<', '<' ):gsub( '<(!%-%- /?Command %-%->)','<%1'):gsub( '<(/?nowiki)','<%1') | ||
end | end | ||
return '<!-- Command --><code ' .. attr .. '>' .. slash .. result .. '</code><!-- /Command -->' | return '<!-- Command --><code ' .. attr .. '>' .. slash .. result .. '</code><!-- /Command -->' | ||
end | end | ||
return p | return p | ||