Jump to content

Module:Auxiliary functions

From Marxist Wiki
Revision as of 23:42, 12 March 2025 by Thehighwayman (talk | contribs) (Protected "Module:Auxiliary functions" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Auxiliary functions/doc

-- Carries functions which are used in a lot of modules
-- Collecting them here for easier reusability
function is_set (var)
	return not (var == nil or var == '');
end

function italics (var)
	return "<i>" .. var .. "</i>"
end