Jump to content

Module:Sandbox/3df

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 3df (talk | contribs) at 19:48, 3 December 2023. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}
p.main = function(frame)
	local args = frame.args
	local pargs = frame:getParent().args
	
	-- Use a thumbnail div, like an image. This part is from Module:Chessboard
	local root = mw.html.create('div')
		:addClass('thumb')
		:addClass('noviewer')
		:addClass('tright')
	local div = root:tag('div')
		:addClass('thumbinner')
		:css('width', '180px')
		
	div:tag('div'):wikitext(pargs.test)

	return tostring(root)
end
return p