Jump to content

Module:Infobox: Difference between revisions

From SFFA Wiki
mNo edit summary
mNo edit summary
 
Line 3: Line 3:
function p.base_infobox(frame)
function p.base_infobox(frame)
local base_infobox = mw.html.create('table')
local base_infobox = mw.html.create('table')
:tag(tr)
:tag('tr')
:tag('th')
:tag('th')
:wikitext('Header')
:wikitext('Header')

Latest revision as of 01:48, 18 April 2025

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

local p = {}

function p.base_infobox(frame)
	local base_infobox = mw.html.create('table')
		:tag('tr')
			:tag('th')
				:wikitext('Header')
			:done()
			:tag('tr')
				:tag('td')
					:wikitext("body")
				:done()
			:done()
			
	return tostring(base_infobox)
end

return p