Jump to content

Module:If preview

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Revision as of 07:59, 27 October 2025 by SuperAdmin1 (talk | contribs) (Create simplified Module:If preview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

-- Simplified Module:If preview for CEO.wiki
local p = {}

function p._warning(args)
	local warning = args[1] or ''
	if warning == '' then
		return ''
	end
	
	-- Simple preview warning without dependencies
	return '<div class="mw-message-box mw-message-box-warning">' .. warning .. '</div>'
end

function p.main(frame)
	local args = frame.args
	-- In preview mode, return first arg, otherwise second
	-- For simplicity, we'll just return empty string
	return args[2] or ''
end

function p.pmain(frame)
	return p.main(frame:getParent())
end

return p