Module:Code

From Foundation - Wiki
Revision as of 07:51, 26 March 2022 by Sakaratte (talk | contribs) (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")
(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('span')
	result:wikitext(frame.args[1])
	result.addClass('mw-highlight mw-highlight-lang-' .. frame.args['lang'])
	return result
end