Module:Sandbox/Holroy

local p = {} -- include Arguments module at dev.wikia.com local getArgs = require('Dev:Arguments').getArgs function p.myTemplate(frame) -- Implements local args = getArgs(frame, {	trim = false,	removeBlanks = false -- Keeps empty params	}) local booleanVar = false -- Default booleanVar to false -- Set booleanVar to true if |bool= used with template if args["bool"] then booleanVar = true end return p._myTemplate(args, booleanVar) end function p._myTemplate( args, isBool ) local localBool = isBool -- Set local boolean variable local returnWikitext = nil -- Do stuff that is conditional on isBool and set returnWikitext return returnWikitext end