Module:Code

From Foundation - Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:Code/doc

local com = require('Module:Common')
local p = {}

function p.code(frame)
	result = mw.html.create('code')
	result:wikitext(frame.args[1])
	result.addClass('mw-highlight mw-highlight-lang-' .. frame.args['lang'])
	return result
end

return p