Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Auxiliary functions

From ProleWiki, the proletarian encyclopedia
Revision as of 23:53, 7 October 2024 by Forte (talk | contribs) (Creating modular module)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
-- 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