Documentation for this module may be created at Module:Sandbox/PHansen/Param/doc

--[=[
==This modified code was OK==

Test via User:PHansen/Param - Answer: Some text

Modified from [[:sv:Modul:Mandattabell]] 
p.start -> p.main   and added local p = {}  and return p   and local text = "" (avoid nil)
<source lang="lua">
--]=]

local p = {} -- added

function p.main( frame )
    local pFrame = frame:getParent();
    local args = pFrame.args;
    for k,v in pairs( frame.args ) do
        args[k] = v;
    end

local text = "" -- added

--[[
	.. Er en del længere på Modul:Mandattabel_sv med bl.a. boksens begyndelse
	.. Her ville det vel være den indledende html-kode ? mw.text.tag('span', eller lign
	.. Herunder eks.
--]]
    t4 = mw.text.tag('span',{style="cursor: help; border-bottom: 1px dotted;", title="Grafisk præsentation af mandatfordeling og valgdeltagelse"}, 'Grafik: Mandatfordeling og valgdeltagelse')
    text = text .. mw.text.tag('th', {style="box-sizing:content-box;width:400px;"},t4)
 
--A basic example could look like this: 
-- https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#HTML_library
local div = mw.html.create( 'div' )
div
	:attr( 'id', 'testdiv' )
	:css( 'width', '100%' )
	:wikitext( 'Some text' )
	:tag( 'hr' )
return tostring( div )
-- Output: <div id="testdiv" style="width:100%;">Some text<hr /></div>
 
 
end

return p -- added

-- </source>