1,124
edits
(Created page with "local com = require('Module:Common') local p = {} function p.code(frame) result = mw.html.create('span') result:wikitext(frame.args[1]) result.addClass('mw-highlight mw-highlight-lang-' .. frame.args['lang']) return result end") |
|||
Line 3: | Line 3: | ||
function p.code(frame) | function p.code(frame) | ||
result = mw.html.create(' | result = mw.html.create('code') | ||
result:wikitext(frame.args[1]) | result:wikitext(frame.args[1]) | ||
result.addClass('mw-highlight mw-highlight-lang-' .. frame.args['lang']) | result.addClass('mw-highlight mw-highlight-lang-' .. frame.args['lang']) | ||
return result | return result | ||
end | end | ||
return p |