Module:User:Kai/sandbox: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Created page with "local p"
 
No edit summary
Line 1: Line 1:
local p
local p = {}
 
function test(frame)
local root = mw.html.create("div")
:addclass("test-class")
:css({
["padding"] = "10px",
["border"] = "1px solid red",
["width"] = "100px",
["height"] = "100px",
})
return tostring(root)
end
 
return p

Revision as of 20:20, 27 August 2026

Documentation for this module may be created at Module:User:Kai/sandbox/doc

local p = {}

function test(frame)
	local root = mw.html.create("div")
		:addclass("test-class")
		:css({
			["padding"] = "10px",
			["border"] = "1px solid red",
			["width"] = "100px",
			["height"] = "100px",
		})
	return tostring(root)
end

return p