Fortnite Esports Wiki
Register
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