Difference between revisions of "Module:Code"

From Foundation - Wiki
Jump to navigation Jump to search
(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")
(No difference)

Revision as of 07:51, 26 March 2022

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('span')
	result:wikitext(frame.args[1])
	result.addClass('mw-highlight mw-highlight-lang-' .. frame.args['lang'])
	return result
end