Halo Esports Wiki

We are currently performing extensive maintenance to this wiki and as a result there will likely be errors. Please be patient while we work to fix all problems.

READ MORE

Halo Esports Wiki
Advertisement

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

local util_args = require('Module:ArgsUtil')

local h = {}

local p = {}
function p.constructor(content, headingLevel)
	-- this function is an alternative to TabsDynamic.constructor
	-- it takes the exact same input, namely a table of rows with name & content in each row
	headingLevel = headingLevel or 3
	local output = mw.html.create()
	for _, v in ipairs(content) do
		output:tag('h' .. headingLevel)
			:wikitext(v.name)
		output:wikitext(v.content)
	end
	return output
end
return p
Advertisement