Module:Code

From Foundation - Wiki
Revision as of 07:52, 26 March 2022 by Sakaratte (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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