Module:User:Kai/sandbox: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
function p.test(frame)
function p.test(frame)
local root = mw.html.create("div")
local root = mw.html.create("div")
:addclass("test-class")
:addClass("test-class")
:css({
:css({
["padding"] = "10px",
["padding"] = "10px",

Revision as of 20:23, 27 August 2026

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

local p = {}

function p.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