Module:Webarchive/data

--[[--< U N C A T E G O R I Z E D _ N A M E S P A C E S >--

List of namespaces that should not be included in citation error categories. Same as setting notracking = true by default

Note: Namespace names should use underscores instead of spaces.

]] local uncategorized_namespaces = { ['User']=true, ['Talk']=true, ['User_talk']=true, ['Wikipedia_talk']=true, ['File_talk']=true, ['Template_talk']=true, ['Help_talk']=true, ['Category_talk']=true, ['Portal_talk']=true, ['Book_talk']=true, ['Draft_talk']=true, ['Education_Program_talk']=true, ['Module_talk']=true, ['MediaWiki_talk']=true, };

local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases'};		-- list of Lua patterns found in page names of pages we should not categorize

local excepted_pages = {														-- these pages will be categorized if set true; set to nil to disable ['Module talk:Webarchive/testcases'] = true,								-- test cases pages used during development ['Template:Webarchive/testcases/Production'] = true, }

--[[--< C A T E G O R I E S >--

this is a table of all categories supported by Module:Webarchive

]]

local categories = { archiveis = 'Category:Webarchive template archiveis links', error = 'Category:Webarchive template errors', other = 'Category:Webarchive template other archives', unknown = 'Category:Webarchive template unknown archives', warning = 'Category:Webarchive template warnings', wayback = 'Category:Webarchive template wayback links', webcite = 'Category:Webarchive template webcite links', }

--[[--< P R E F I X E S >--

used only with serviceName, this table holds the two generic tail-text prefixes specified by services[' '][1]

]]

local prefixes = { at = 'at', atthe = 'at the', }

--[=[-< S E R V I C E S >--

this is a table of tables for archive services. Each service table has: [1]=prefix; may be boolean true or false, or text string where: true indicates that the prefix is taken from prefixes.atthe false indicates that the prefix is taken from prefixes.at		'text string' is used in lieu of the typical 'at' or 'at the' prefix [2]=wikilink target article that describes the service; set to nil if not used [3]=wikilink label; the label in label; set to nil if not used; when there is not article ([2] is nil) use this to name the service; see wikiwix in the table [4]=service ID; set to nil if not used [5]=tracking category key from the categories table; set to nil if not used [6]=postfix; text string to be appended at the end of the tail string - see webarchive.loc.gov in the table

]=]

local services = { ['archive.is'] = {false, 'Archive.is', nil, 'archiveis', categories.archiveis}, ['archive.ec'] = {false, 'Archive.is', nil, 'archiveis', categories.archiveis}, ['archive.fo'] = {false, 'Archive.is', nil, 'archiveis', categories.archiveis}, ['archive.li'] = {false, 'Archive.is', nil, 'archiveis', categories.archiveis}, ['archive.org'] = {true, 'Wayback Machine', nil, 'wayback', categories.wayback}, ['archive.today'] = {false, 'Archive.is', nil, 'archiveis', categories.archiveis}, ['archive-it.org'] = {false, 'Archive-It', nil, 'archiveit'}, ['arquivo.pt'] = {true, nil, 'Portuguese Web Archive'}, ['bibalex.org'] = {false, 'Bibliotheca Alexandrina#Internet Archive partnership', 'Bibliotheca Alexandrina'}, ['collectionscanada'] = {true, 'Canadian Government Web Archive'}, ['europarchive.org'] = {true, 'National Library of Ireland'}, ['freezepage.com'] = {false, nil, 'Freezepage'}, ['haw.nsk'] = {true, 'Croatian Web Archive (HAW)'}, ['langzeitarchivierung.bib-bvb.de'] = {false, 'Bavarian State Library'}, ['loc.gov'] = {true, 'Library of Congress'}, ['nationalarchives.gov.uk'] = {true, 'UK Government Web Archive'}, ['nlb.gov.sg'] = {false, 'Web Archive Singapore'}, ['pandora.nla.gov.au'] = {false, 'Pandora Archive'}, ['parliament.uk'] = {true, 'UK Parliament\'s Web Archive'}, ['perma.cc'] = {false, 'Perma.cc'}, ['perma-archives.cc'] = {false, 'Perma.cc'}, ['proni.gov'] = {true, 'Public Record Office of Northern Ireland'}, ['screenshots.com'] = {false, nil, 'Screenshots'}, ['stanford.edu'] = {true, 'Stanford University Libraries', 'Stanford Web Archive'}, ['timetravel.mementoweb.org'] = {false, 'Memento Project'}, ['uni-lj.si'] = {true, nil, 'Slovenian Web Archive'}, ['veebiarhiiv.digar.ee'] = {true, nil, 'Estonian Web Archive'}, ['vefsafn.is'] = {true, 'National and University Library of Iceland'}, ['webarchive.bac-lac.gc.ca'] = {false, 'Library and Archives Canada'}, ['webarchive.loc.gov'] = {true, 'Library of Congress', nil, 'locwebarchives', nil, 'Web Archives'}, ['webarchive.org.uk'] = {true, 'UK Web Archive'}, ['webcache.googleusercontent.com'] = {false, nil, 'Google Cache'}, ['webcitation.org'] = {false, 'WebCite', nil, 'webcite', categories.webcite}, ['webharvest.gov'] = {true, 'National Archives and Records Administration'}, ['webrecorder.io'] = {false, 'webrecorder.io'}, ['wikiwix.com'] = {false, nil, 'Wikiwix'}, ['yorku.ca'] = {false, 'York University Libraries', 'York University Digital Library'}, }

--[[--< E R R _ W A R N _ M S G S >

this table holds error and warning message text

]]

local err_warn_msgs = { date_err = '[Date error]',													-- decodeWebciteDate, decodeWaybackDate, decodeArchiveisDate date_miss = '[Date missing]',												-- parseExtraArgs date1 = '[Date error] (1)',													-- webarchive TODO: replace with better text? consolidate with date_err? date2 = '[Date error] (2)',													-- decodeWaybackDate TODO: replace with better text? consolidate with date_err? date3 = '[Date error] (3)',													-- decodeWaybackDate, decodeArchiveisDate TODO: replace with better text? consolidate with date_err? date4 = '[Date error] (4)',													-- decodeWebciteDate TODO: replace with better text? consolidate with date_err? date7 = '[Date error] (7)',													-- decodeWaybackDate, decodeArchiveisDate TODO: replace with better text? consolidate with date_err? mismatch = '[Date mismatch]',									-- webarchive ts_len = '[Timestamp length]',									-- decodeWaybackDate, decodeArchiveisDate ts_cal = '[Calendar]',											-- decodeWaybackDate unknown_url = 'Error: unknown archive URL',									-- serviceName }

----< E X P O R T E D  T A B L E S >

return { categories = categories, err_warn_msgs = err_warn_msgs, excepted_pages = excepted_pages, prefixes = prefixes, services = services, uncategorized_namespaces = uncategorized_namespaces, uncategorized_subpages = uncategorized_subpages, }