Module:10billion

local p = {}

function p.search_for_title(frame) -- Get arguments local args = frame.args or frame -- Set variables local title = args[1] or error('Inputs are required to argument #1 and #2', 2) local search = args[2] or error('Inputs are required to argument #1 and #2', 2) local caseSensitive = args[3]

-- Check if case sensitive was inputted or not if not caseSensitive then title = title:lower search = search:lower end -- Get namespace and trim title local namespace = title:match('^([^:\n]+):') search = search:gsub(':$', '')

-- Compare and return return namespace == search end

return p