Module:Privacy statement

From Wikimedia Foundation Governance Wiki

Documentation for this module may be created at Module:Privacy statement/doc

local p ={}

--[[
	(optional) target: string `policy` or `terms`; else both are returned
]]
p.getToolURLs = function (frame)
	local tool, target = frame.args[1], frame.args[2]
	local policyURL = ''
	local termsURL = ''
	
	if tool == 'Google Forms' or tool == 'Google Meet' then
		policyURL = 'https://www.google.com/intl/en/policies/privacy/'
		termsURL = 'https://www.google.com/intl/en/policies/terms/'
	end
	
	if tool == 'LimeSurvey' then
		policyURL = 'https://www.limesurvey.org/privacy-policy'
		termsURL = 'https://www.limesurvey.org/terms-conditions'
	end
	
	if tool == 'Qualtrics' then
		policyURL = 'https://www.qualtrics.com/privacy-statement/'
		termsURL = 'https://www.qualtrics.com/terms-of-service/Terms'
	end
	
	if tool == 'QuickSurveys' then
		policyURL = 'https://meta.wikimedia.org/wiki/Special:MyLanguage/QuickSurveys'
		termsURL = 'https://www.mediawiki.org/wiki/Extension:QuickSurveys'
	end
	
	if tool == 'Skype' then
		policyURL = 'https://privacy.microsoft.com/en-us/privacystatement'
		termsURL = 'https://www.microsoft.com/en-us/legal/terms-of-use'
	end
	
	if tool == 'SurveyMonkey' then
		policyURL = 'https://www.surveymonkey.com/mp/legal/privacy/'
		termsURL = 'https://www.surveymonkey.com/mp/legal/terms-of-use/'
	end
	
	if tool == 'Zoom' then
		policyURL = 'https://explore.zoom.us/docs/en-us/privacy.html'
		termsURL = 'https://zoom.us/terms'
	end
	
	if tool == 'Eventbrite' then
		policyURL = 'https://www.eventbrite.com/support/articles/en_US/Troubleshooting/eventbrite-privacy-policy'
		termsURL = 'https://www.eventbrite.com/support/articles/en_US/Troubleshooting/eventbrite-terms-of-service'
	end
	
	if tool == 'YouTube' then
		policyURL = 'https://policies.google.com/privacy?hl=en'
		termsURL = 'https://www.youtube.com/static?template=terms'
	end
	
	if target == 'policy' then return policyURL end
	if target == 'terms' then return termsURL end
	return policyURL, termsURL
end

return p