Module:Sandbox/BU Rob13

-- [SublimeLinter luacheck-globals:mw]

-- This module serves to convert Template:WikiProject Central America from -- using country task forces to the new country WikiProject templates. -- Due to some changes of parameters needed for this module to run, it -- SHOULD NOT be run by anyone other than the module author without consultation -- Direct questions to User talk:BU Rob13.

local p = {} local getBuffer, print = require("Module:OutputBuffer")

function p._main(args) local i = 0 if args.Belize then i = i + 1 end if args.CostaRica then i = i + 1 end if args.ElSalvador then i = i + 1 end if args.Guatemala then i = i + 1 end if args.Honduras then i = i + 1 end if args.Nicaragua then i = i + 1 end if args.Panama then i = i + 1 end if i == 0 or i > 2 then a = "" print(a) end if i == 1 or i == 2 then if args.Belize == "yes" then a = "" print(a) end if args.CostaRica == "yes" then a = "" print(a) end if args.ElSalvador == "yes" then a = "" print(a) end if args.Guatemala == "yes" then a = "" print(a) end if args.Honduras == "yes" then a = "" print(a) end if args.Nicaragua == "yes" then a = "" print(a) end if args.Panama == "yes" then a = "" print(a) end end

return getBuffer("\n") end

function p.main(frame) local args = require("Module:Arguments").getArgs(frame) return p._main(args) end

return p