Module:Command: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 183: | Line 183: | ||
result = result:gsub( '<', '<' ):gsub( '<(!%-%- Command %-%->)<','<%1<'):gsub( '</code><(!%-%- /Command %-%->)','</code><%1') | result = result:gsub( '<', '<' ):gsub( '<(!%-%- Command %-%->)<','<%1<'):gsub( '</code><(!%-%- /Command %-%->)','</code><%1') | ||
end | end | ||
result = '<!-- Command --><code ' .. attr .. '>' .. slash .. result .. '</code><!-- /Command -->' | |||
if needFormat then | |||
result = result .. '[[Category:Pages using deprecated command module]]' | |||
end | |||
return result | |||
end | end | ||
return p | return p | ||