Advertisement

Module:ContentByHeading

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

Power Rankings of Brazil and Oceania are not yet updated to the last season, we are doing our best to update them before the start of the new competitive season. Please be patient.

READ MORE