<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AWebarchive%2Fdata</id>
	<title>Module:Webarchive/data - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AWebarchive%2Fdata"/>
	<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Module:Webarchive/data&amp;action=history"/>
	<updated>2026-04-06T18:00:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://mindpowe.red/wiki/index.php?title=Module:Webarchive/data&amp;diff=1482&amp;oldid=prev</id>
		<title>imported&gt;GreenC: add new .MD, .PH and .VN .. change target article to .TODAY (wiki article rename in progress) .. sort alpha</title>
		<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Module:Webarchive/data&amp;diff=1482&amp;oldid=prev"/>
		<updated>2019-01-05T15:54:19Z</updated>

		<summary type="html">&lt;p&gt;add new .MD, .PH and .VN .. change target article to .TODAY (wiki article rename in progress) .. sort alpha&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[--------------------------&amp;lt; C O N F I G U R A T I O N &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
global configuration settings&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local config = {&lt;br /&gt;
	maxurls = 10,																-- Max number of URLs allowed. &lt;br /&gt;
	tname = 'Webarchive',														-- name of calling template. Change if template rename.&lt;br /&gt;
	verifydates = true,															-- See documentation. Set false to disable.&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; U N C A T E G O R I Z E D _ N A M E S P A C E S &amp;gt;------------------------------&lt;br /&gt;
&lt;br /&gt;
List of namespaces that should not be included in citation error categories.&lt;br /&gt;
&lt;br /&gt;
Note: Namespace names should use underscores instead of spaces.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local uncategorized_namespaces = {												-- same list as specified at [[Module:Citation/CS1/Configuration]]&lt;br /&gt;
	['User']=true, ['Talk']=true, ['User_talk']=true, ['Wikipedia_talk']=true, ['File_talk']=true,&lt;br /&gt;
	['Template_talk']=true, ['Help_talk']=true, ['Category_talk']=true, ['Portal_talk']=true,&lt;br /&gt;
	['Book_talk']=true, ['Draft_talk']=true, ['Education_Program_talk']=true, ['Module_talk']=true,&lt;br /&gt;
	['MediaWiki_talk']=true,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases'};				-- list of Lua patterns found in page names of pages we should not categorize&lt;br /&gt;
&lt;br /&gt;
local excepted_pages = {														-- these pages will be categorized if set true; set to nil to disable&lt;br /&gt;
	['Module talk:Webarchive/testcases'] = true,								-- test cases pages used during development&lt;br /&gt;
	['Template:Webarchive/testcases/Production'] = true,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; C A T E G O R I E S &amp;gt;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
this is a table of all categories supported by Module:Webarchive&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local categories = {&lt;br /&gt;
	archiveis = 'Category:Webarchive template archiveis links',&lt;br /&gt;
	error = 'Category:Webarchive template errors',&lt;br /&gt;
	other = 'Category:Webarchive template other archives',&lt;br /&gt;
	unknown = 'Category:Webarchive template unknown archives',&lt;br /&gt;
	warning = 'Category:Webarchive template warnings',&lt;br /&gt;
	wayback = 'Category:Webarchive template wayback links',&lt;br /&gt;
	webcite = 'Category:Webarchive template webcite links',&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P R E F I X E S &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
used only with serviceName(), this table holds the two generic tail-text prefixes specified by services['&amp;lt;service name&amp;gt;'][1]&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local prefixes = {&lt;br /&gt;
	at = 'at',&lt;br /&gt;
	atthe = 'at the',&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[-------------------------&amp;lt; S E R V I C E S &amp;gt;--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
this is a table of tables for archive services.  Each service table has:&lt;br /&gt;
	[1]=prefix; may be boolean true or false, or text string where:&lt;br /&gt;
		true indicates that the prefix is taken from prefixes.atthe&lt;br /&gt;
		false indicates that the prefix is taken from prefixes.at&lt;br /&gt;
		'text string' is used in lieu of the typical 'at' or 'at the' prefix&lt;br /&gt;
	[2]=wikilink target article that describes the service; set to nil if not used&lt;br /&gt;
	[3]=wikilink label; the label in [[target|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&lt;br /&gt;
	[4]=service ID; set to nil if not used&lt;br /&gt;
	[5]=tracking category key from the categories table; set to nil if not used&lt;br /&gt;
	[6]=postfix; text string to be appended at the end of the tail string - see webarchive.loc.gov in the table&lt;br /&gt;
&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local services = {&lt;br /&gt;
	['archive.ec'] = {false, 'Archive.today', nil, 'archiveis', categories.archiveis},&lt;br /&gt;
	['archive.fo'] = {false, 'Archive.today', nil, 'archiveis', categories.archiveis},&lt;br /&gt;
	['archive.is'] = {false, 'Archive.today', nil, 'archiveis', categories.archiveis},&lt;br /&gt;
	['archive.li'] = {false, 'Archive.today', nil, 'archiveis', categories.archiveis},&lt;br /&gt;
	['archive.md'] = {false, 'Archive.today', nil, 'archiveis', categories.archiveis},&lt;br /&gt;
	['archive.org'] = {true, 'Wayback Machine', nil, 'wayback', categories.wayback},&lt;br /&gt;
	['archive.ph'] = {false, 'Archive.today', nil, 'archiveis', categories.archiveis},&lt;br /&gt;
	['archive.today'] = {false, 'Archive.today', nil, 'archiveis', categories.archiveis},&lt;br /&gt;
	['archive.vn'] = {false, 'Archive.today', nil, 'archiveis', categories.archiveis},&lt;br /&gt;
	['archive-it.org'] = {false, 'Archive-It', nil, 'archiveit'},&lt;br /&gt;
	['arquivo.pt'] = {true, nil, 'Portuguese Web Archive'},&lt;br /&gt;
	['bibalex.org'] = {false, 'Bibliotheca Alexandrina#Internet Archive partnership', 'Bibliotheca Alexandrina'},&lt;br /&gt;
	['collectionscanada'] = {true, 'Canadian Government Web Archive'},&lt;br /&gt;
	['europarchive.org'] = {true, 'National Library of Ireland'},&lt;br /&gt;
	['freezepage.com'] = {false, nil, 'Freezepage'},&lt;br /&gt;
	['haw.nsk'] = {true, 'Croatian Web Archive (HAW)'},&lt;br /&gt;
	['langzeitarchivierung.bib-bvb.de'] = {false, 'Bavarian State Library'},&lt;br /&gt;
	['loc.gov'] = {true, 'Library of Congress'},&lt;br /&gt;
	['nationalarchives.gov.uk'] = {true, 'UK Government Web Archive'},&lt;br /&gt;
	['nlb.gov.sg'] = {false, 'Web Archive Singapore'},&lt;br /&gt;
	['pandora.nla.gov.au'] = {false, 'Pandora Archive'},&lt;br /&gt;
	['parliament.uk'] = {true, 'UK Parliament\'s Web Archive'},&lt;br /&gt;
	['perma.cc'] = {false, 'Perma.cc'},&lt;br /&gt;
	['perma-archives.cc'] = {false, 'Perma.cc'},&lt;br /&gt;
	['proni.gov'] = {true, 'Public Record Office of Northern Ireland'},&lt;br /&gt;
	['screenshots.com'] = {false, nil, 'Screenshots'},&lt;br /&gt;
	['stanford.edu'] = {true, 'Stanford University Libraries', 'Stanford Web Archive'},&lt;br /&gt;
	['timetravel.mementoweb.org'] = {false, 'Memento Project'},&lt;br /&gt;
	['uni-lj.si'] = {true, nil, 'Slovenian Web Archive'},&lt;br /&gt;
	['veebiarhiiv.digar.ee'] = {true, nil, 'Estonian Web Archive'},&lt;br /&gt;
	['vefsafn.is'] = {true, 'National and University Library of Iceland'},&lt;br /&gt;
	['webarchive.bac-lac.gc.ca'] = {false, 'Library and Archives Canada'},&lt;br /&gt;
	['webarchive.loc.gov'] = {true, 'Library of Congress', nil, 'locwebarchives', nil, 'Web Archives'},&lt;br /&gt;
	['webarchive.org.uk'] = {true, 'UK Web Archive'},&lt;br /&gt;
	['webcache.googleusercontent.com'] = {false, nil, 'Google Cache'},&lt;br /&gt;
	['webcitation.org'] = {false, 'WebCite', nil, 'webcite', categories.webcite},&lt;br /&gt;
	['webharvest.gov'] = {true, 'National Archives and Records Administration'},&lt;br /&gt;
	['webrecorder.io'] = {false, 'webrecorder.io'},&lt;br /&gt;
	['wikiwix.com'] = {false, nil, 'Wikiwix'},&lt;br /&gt;
	['yorku.ca'] = {false, 'York University Libraries', 'York University Digital Library'},&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; S T A T I C   T E X T &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
for internationalzation&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local s_text = {&lt;br /&gt;
	addlarchives = 'Additional archives',&lt;br /&gt;
	addlpages = 'Additional pages archived&amp;amp;nbsp;on',							-- TODO why the &amp;amp;nbsp; there? replace with regular space?&lt;br /&gt;
	Archive_index = 'Archive index',&lt;br /&gt;
	Archived = 'Archived',&lt;br /&gt;
	archived = 'archived',&lt;br /&gt;
	archive = 'archive',&lt;br /&gt;
	Page = 'Page',&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E R R _ W A R N _ M S G S &amp;gt;----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
these tables hold error and warning message text&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local err_warn_msgs = {&lt;br /&gt;
	date_err = '[Date error]',													-- decodeWebciteDate, decodeWaybackDate, decodeArchiveisDate&lt;br /&gt;
	date_miss = '[Date missing]',												-- parseExtraArgs&lt;br /&gt;
	ts_short = '[Timestamp date length]',										-- decodeWaybackDate timestamp less than 8 digits&lt;br /&gt;
	ts_date = '[Timestamp date invalid]',										-- decodeWaybackDate timestamp not a valid date&lt;br /&gt;
	unknown_url = '[Error: unknown archive URL]',								-- serviceName&lt;br /&gt;
	unnamed_params = '[Positional parameters ignored]',&lt;br /&gt;
&lt;br /&gt;
--warnings&lt;br /&gt;
	mismatch = '&amp;lt;sup&amp;gt;[Date mismatch]&amp;lt;/sup&amp;gt;',									-- webarchive&lt;br /&gt;
	ts_len = '&amp;lt;sup&amp;gt;[Timestamp length]&amp;lt;/sup&amp;gt;',									-- decodeWaybackDate, decodeArchiveisDate timestamp not 14 digits&lt;br /&gt;
	ts_cal = '&amp;lt;sup&amp;gt;[Calendar]&amp;lt;/sup&amp;gt;',											-- decodeWaybackDate timestamp has trailing splat&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
local crit_err_msgs = {															-- critical error messages&lt;br /&gt;
	conflicting = 'Conflicting |$1= and |$2=',&lt;br /&gt;
	empty = 'Empty url',&lt;br /&gt;
--	iabot1 = 'https://web.http',												-- TODO: these iabot bugs perportedly fixed; removing these causes lua script error&lt;br /&gt;
--	iabot2 = 'Invalid URL',														-- at Template:Webarchive/testcases/Production; resolve that before deleting these messages&lt;br /&gt;
	invalid_url = 'Invalid URL',&lt;br /&gt;
	ts_nan = 'Timestamp not a number',&lt;br /&gt;
	unknown = 'Unknown problem. Please report on template talk page',&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; D A T E   I N T E R N A T I O N A L I Z A T I O N &amp;gt;----------------------------&lt;br /&gt;
&lt;br /&gt;
these tables hold data that is used when converting date formats from non-English languages (because mw.language.getContentLanguage:formatDate()&lt;br /&gt;
doesn't understand non-English month names)&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local month_num = {																-- retain English language names even though they may not be strictly required on the local wiki&lt;br /&gt;
	['January'] = 1, ['February'] = 2, ['March'] = 3, ['April'] = 4, ['May'] = 5, ['June'] = 6, ['July'] = 7, ['August'] = 8, ['September'] = 9, ['October'] = 10, ['November'] = 11, ['December'] = 12,&lt;br /&gt;
	['Jan'] = 1, ['Feb'] = 2, ['Mar'] = 3, ['Apr'] = 4, ['May'] = 5, ['Jun'] = 6, ['Jul'] = 7, ['Aug'] = 8, ['Sep'] = 9, ['Oct'] = 10, ['Nov'] = 11, ['Dec'] = 12,&lt;br /&gt;
-- add local wiki month-names to number translation here&lt;br /&gt;
--	[''] = 1, [''] = 2, [''] = 3, [''] = 4, [''] = 5, [''] = 6, [''] = 7, [''] = 8, [''] = 9, [''] = 10, [''] = 11, [''] = 12,&lt;br /&gt;
	};&lt;br /&gt;
&lt;br /&gt;
																				-- when the local wiki uses non-western digits in dates, local wiki digits must be&lt;br /&gt;
																				-- translated to western digits; lua only understands western digits&lt;br /&gt;
local digits = {																-- use this table to aid translation&lt;br /&gt;
--	[''] = 0, [''] = 1, [''] = 2, [''] = 3, [''] = 4, [''] = 5, [''] = 6, [''] = 7, [''] = 8, [''] = 9,	-- fill these table indexes with local digits&lt;br /&gt;
	enable = false																-- set to true to enable local-digit to western-digit translation&lt;br /&gt;
	};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; P A R A M E T E R   I N T E R N A T I O N A L I Z A T I O N &amp;gt;------------------&lt;br /&gt;
&lt;br /&gt;
this table holds tables of parameter names and their non-English aliases.  In the enum_params table '#' is a single&lt;br /&gt;
character placeholder for 1 or more digit characters&lt;br /&gt;
&lt;br /&gt;
parameter names in this table shall be lowercase&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local params = {&lt;br /&gt;
	['url'] = {'url'},&lt;br /&gt;
	['date'] = {'date', 'datum'},&lt;br /&gt;
	['title'] = {'title', 'titel'},&lt;br /&gt;
	['nolink'] = {'nolink'},&lt;br /&gt;
	['format'] = {'format'}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
local enum_params = {&lt;br /&gt;
	['url#'] = {'url#'},&lt;br /&gt;
	['date#'] = {'date#', 'datum#'},&lt;br /&gt;
	['title#'] = {'title#', 'titel#'},&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
local format_vals = {															-- |format= accepts two values; add local language variants here&lt;br /&gt;
	['addlpages'] = {'addlpages'},&lt;br /&gt;
	['addlarchives'] = {'addlarchives'},&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X P O R T E D   T A B L E S &amp;gt;------------------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	categories = categories,&lt;br /&gt;
	config = config,&lt;br /&gt;
	crit_err_msgs = crit_err_msgs,&lt;br /&gt;
	digits = digits,&lt;br /&gt;
	enum_params = enum_params,&lt;br /&gt;
	err_warn_msgs = err_warn_msgs,&lt;br /&gt;
	excepted_pages = excepted_pages,&lt;br /&gt;
	format_vals = format_vals,&lt;br /&gt;
	month_num = month_num,&lt;br /&gt;
	params = params,&lt;br /&gt;
	prefixes = prefixes,&lt;br /&gt;
	services = services,&lt;br /&gt;
	s_text = s_text,&lt;br /&gt;
	uncategorized_namespaces = uncategorized_namespaces,&lt;br /&gt;
	uncategorized_subpages = uncategorized_subpages,&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>imported&gt;GreenC</name></author>
		
	</entry>
</feed>