Module:Command: Difference between revisions
m solve wrong styling when intersecting with the TOC on the right side |
mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| 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 -->' | result = '<!-- Command --><code ' .. attr .. '><span>' .. slash .. result .. '</span></code><!-- /Command -->' | ||
if needFormat then | if needFormat then | ||
result = result .. '[[Category:Pages using deprecated command module]]' | result = result .. '[[Category:Pages using deprecated command module]]' | ||