এই মডিউলের জন্য মডিউল:ওয়েব আর্কাইভ/উপাত্ত/নথি-এ নথিপত্র তৈরি করা হয়ে থাকতে পারে

--[[--------------------------< C O N F I G U R A T I O N >----------------------------------------------------

global configuration settings

]]

local config = {
	maxurls = 10,																-- Max number of URLs allowed. 
	tname = 'ওয়েব আর্কাইভ',														-- name of calling template. Change if template rename.
	verifydates = true,															-- See documentation. Set false to disable.
	}


--[[--------------------------< 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.

Note: Namespace names should use underscores instead of spaces.

]]

local uncategorized_namespaces = {												-- same list as specified at [[Module:Citation/CS1/Configuration]]
	['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 = {'/খেলাঘর', '/পরীক্ষা_পাতা'};				-- 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
	['মডিউল_আলাপ:ওয়েব_আর্কাইভ/পরীক্ষা_পাতা'] = true,								-- test cases pages used during development
	['টেমপ্লেট:ওয়েব_আর্কাইভ/পরীক্ষা_পাতা/উৎপাদন'] = 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 = 'বিষয়শ্রেণী:ওয়েব আর্কাইভ টেমপ্লেটে আর্কাইভইজ সংযোগ',
	error = 'বিষয়শ্রেণী:ওয়েব আর্কাইভ টেমপ্লেটে ত্রুটি',
	other = 'বিষয়শ্রেণী:ওয়েব আর্কাইভ টেমপ্লেটে অন্যান্য আর্কাইভসমূহ',
	unknown = 'বিষয়শ্রেণী:ওয়েব আর্কাইভ টেমপ্লেটে অজানা আর্কাইভ',
	warning = 'বিষয়শ্রেণী:ওয়েব আর্কাইভ টেমপ্লেট সতর্কতা',
	wayback = 'বিষয়শ্রেণী:ওয়েব আর্কাইভ টেমপ্লেটে ওয়েব্যাক সংযোগ',
	webcite = 'বিষয়শ্রেণী:ওয়েব আর্কাইভ টেমপ্লেটে ওয়েবসাইট সংযোগ',
	}


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

used only with serviceName(), this table holds the two generic tail-text prefixes specified by services['<service name>'][1]

]]

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


--[=[-------------------------< 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 [[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
	[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.ec'] = {nil, 'আর্কাইভ.টুডে', 'আর্কাইভইজে', 'archiveis', categories.archiveis},
	['archive.fo'] = {nil, 'আর্কাইভ.টুডে', 'আর্কাইভইজে', 'archiveis', categories.archiveis},
	['archive.is'] = {nil, 'আর্কাইভ.টুডে', 'আর্কাইভইজে', 'archiveis', categories.archiveis},
	['archive.li'] = {nil, 'আর্কাইভ.টুডে', 'আর্কাইভইজে', 'archiveis', categories.archiveis},
	['archive.md'] = {nil, 'আর্কাইভ.টুডে', 'আর্কাইভইজে', 'archiveis', categories.archiveis},
	['archive.org'] = {nil, 'ওয়েব্যাক মেশিন', 'ওয়েব্যাক মেশিনে', 'wayback', categories.wayback},
	['archive.ph'] = {nil, 'আর্কাইভ.টুডে', 'আর্কাইভইজে', 'archiveis', categories.archiveis},
	['archive.today'] = {nil, 'আর্কাইভ.টুডে', 'আর্কাইভইজে', 'archiveis', categories.archiveis},
	['archive.vn'] = {nil, 'আর্কাইভ.টুডে', 'আর্কাইভইজে', 'archiveis', categories.archiveis},
	['archive-it.org'] = {nil, 'আর্কাইভ-ইট', 'আর্কাইভইটে', 'archiveit'},
	['arquivo.pt'] = {nil, nil, 'পর্তুগীজ ওয়েব আর্কাইভে'},
	['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'] = {nil, 'লাইব্রেরি অফ কংগ্রেস', 'লাইব্রেরি অফ কংগ্রেসে'},
	['nationalarchives.gov.uk'] = {nil, 'যুক্তরাজ্য সরকারের ওয়েব আর্কাইভ', 'যুক্তরাজ্য সরকারের ওয়েব আর্কাইভে'},
	['nlb.gov.sg'] = {false, 'Web Archive Singapore'},
	['pandora.nla.gov.au'] = {false, 'Pandora Archive'},
	['parliament.uk'] = {true, 'UK Parliament\'s Web Archive'},
	['perma.cc'] = {nil, 'পার্মা.সিসি', 'পার্মা.সিসিতে'},
	['perma-archives.cc'] = {nil, 'পার্মা.সিসি', 'পার্মা.সিসিতে'},
	['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'] = {nil, 'ওয়েবসাইট (আর্কাইভ সাইট)', 'ওয়েবসাইটে', 'webcite', categories.webcite},
	['webharvest.gov'] = {true, 'National Archives and Records Administration'},
	['webrecorder.io'] = {false, 'webrecorder.io'},
	['wikiwix.com'] = {nil, nil, 'উইকিউইক্সে'},
	['yorku.ca'] = {false, 'York University Libraries', 'York University Digital Library'},
	}


--[[--------------------------< S T A T I C   T E X T >--------------------------------------------------------

for internationalzation

]]

local s_text = {
	addlarchives = 'অতিরিক্ত আর্কাইভ',
	addlpages = 'অতিরিক্ত পাতা আর্কাইভের&nbsp;তারিখ',							-- TODO why the &nbsp; there? replace with regular space?
	Archive_index = 'আর্কাইভের নির্ঘণ্ট',
	Archived = 'আর্কাইভকৃত',
	archived = 'আর্কাইভকৃত',
	archive = 'আর্কাইভ',
	Page = 'পাতা',
	}


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

these tables hold error and warning message text

]]

local err_warn_msgs = {
	date_err = '[তারিখ ত্রুটি]',													-- decodeWebciteDate, decodeWaybackDate, decodeArchiveisDate
	date_miss = '[তারিখ অনুপস্থিত]',												-- parseExtraArgs
	ts_short = '[তারিখসময়ে তারিখের দৈর্ঘ্য]',										-- decodeWaybackDate timestamp less than 8 digits
	ts_date = '[তারিখসময়ের তারিখ অবৈধ]',										-- decodeWaybackDate timestamp not a valid date
	unknown_url = '[ত্রুটি: আর্কাইভের ইউআরএল অজানা]',								-- serviceName
	unnamed_params = '[অবস্থানগত প্যারামিটার উপেক্ষা করা হয়েছে]',
--warnings
	mismatch = '<sup>[তারিখ মেলেনি]</sup>',									-- webarchive
	ts_len = '<sup>[তারিখসময়ের দৈর্ঘ্য]</sup>',									-- decodeWaybackDate, decodeArchiveisDate timestamp not 14 digits
	ts_cal = '<sup>[পঞ্জিকা]</sup>',											-- decodeWaybackDate timestamp has trailing splat
	}


local crit_err_msgs = {															-- critical error messages
	conflicting = 'পরম্পরবিরোধী |$1= ও |$2=',
	empty = 'ইউআরএল খালি',
--	iabot1 = 'https://web.http',												-- TODO: these iabot bugs perportedly fixed; removing these causes lua script error
--	iabot2 = 'Invalid URL',														-- at Template:Webarchive/testcases/Production; resolve that before deleting these messages
	invalid_url = 'অবৈধ ইউআরএল',
	ts_nan = 'তারিখসময় একটি সংখ্যা নয়',
	unknown = 'অজানা সমস্যা। দয়া করে টেমপ্লেটের আলাপ পাতায় প্রতিবেদন করুন',
	}



--[[--------------------------< D A T E   I N T E R N A T I O N A L I Z A T I O N >----------------------------

these tables hold data that is used when converting date formats from non-English languages (because mw.language.getContentLanguage:formatDate()
doesn't understand non-English month names)

]]

local month_num = {																-- retain English language names even though they may not be strictly required on the local wiki
	['January'] = 1, ['February'] = 2, ['March'] = 3, ['April'] = 4, ['May'] = 5, ['June'] = 6, ['July'] = 7, ['August'] = 8, ['September'] = 9, ['October'] = 10, ['November'] = 11, ['December'] = 12,
	['Jan'] = 1, ['Feb'] = 2, ['Mar'] = 3, ['Apr'] = 4, ['May'] = 5, ['Jun'] = 6, ['Jul'] = 7, ['Aug'] = 8, ['Sep'] = 9, ['Oct'] = 10, ['Nov'] = 11, ['Dec'] = 12,
-- add local wiki month-names to number translation here
	['জানুয়ারি'] = 1, ['জানুয়ারী'] = 1, ['ফেব্রুয়ারি'] = 2, ['ফেব্রুয়ারী'] = 2, ['মার্চ'] = 3, ['এপ্রিল'] = 4, ['মে'] = 5, ['জুন'] = 6, ['জুলাই'] = 7, ['আগস্ট'] = 8, ['অগাস্ট'] = 8, ['সেপ্টেম্বর'] = 9, ['অক্টোবর'] = 10, ['নভেম্বর'] = 11, ['ডিসেম্বর'] = 12,
	};

																				-- when the local wiki uses non-western digits in dates, local wiki digits must be
																				-- translated to western digits; lua only understands western digits
local digits = {																-- use this table to aid translation
	['০'] = 0, ['১'] = 1, ['২'] = 2, ['৩'] = 3, ['৪'] = 4, ['৫'] = 5, ['৬'] = 6, ['৭'] = 7, ['৮'] = 8, ['৯'] = 9,	-- fill these table indexes with local digits
	enable = true																-- set to true to enable local-digit to western-digit translation
	};


--[[--------------------------< 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 >------------------

this table holds tables of parameter names and their non-English aliases.  In the enum_params table '#' is a single
character placeholder for 1 or more digit characters

parameter names in this table shall be lowercase
]]

local params = {
	['url'] = {'ইউআরএল', 'url'},
	['date'] = {'তারিখ', 'date'},
	['title'] = {'শিরোনাম', 'title'},
	['nolink'] = {'সংযোগ-ছাড়া', 'nolink'},
	['format'] = {'বিন্যাস', 'format'}
	}

local enum_params = {
	['url#'] = {'ইউআরএল#', 'url#'},
	['date#'] = {'তারিখ#', 'date#'},
	['title#'] = {'শিরোনাম#', 'title#'},
	}

local format_vals = {															-- |format= accepts two values; add local language variants here
	['addlpages'] = {'addlpages', 'অতিরিক্ত পাতা'},
	['addlarchives'] = {'addlarchives', 'অতিরিক্ত আর্কাইভ'},
	}


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

return {
	categories = categories,
	config = config,
	crit_err_msgs = crit_err_msgs,
	digits = digits,
	enum_params = enum_params,
	err_warn_msgs = err_warn_msgs,
	excepted_pages = excepted_pages,
	format_vals = format_vals,
	month_num = month_num,
	params = params,
	prefixes = prefixes,
	services = services,
	s_text = s_text,
	uncategorized_namespaces = uncategorized_namespaces,
	uncategorized_subpages = uncategorized_subpages,
	}