Jump to content

Module:Auxiliary functions

From Marxist Wiki
Revision as of 23:40, 12 March 2025 by Thehighwayman (talk | contribs) (Created page with "-- 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")
(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