모듈:Webarchive/data

--------------------------------------------------------------------------------
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.
	}
----------------------------------------------------------
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, 'Module_talk'=true,
	'MediaWiki_talk'=true,
	'사용자'=true, '토론'=true, '사용자토론'=true, '위키백과토론'=true, '파일토론'=true,
	'틀토론'=true, '도움말토론'=true, '분류토론'=true, '포털토론'=true,
	'책토론'=true, '초안토론'=true, '모듈토론'=true,
	'미디어위키토론'=true,
	}
local uncategorized_subpages = {'/Ssandbox', '/Ttestcases', '/연습장', '시험장'};				-- 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
	'모듈토론:Webarchive/시험장' = true,								-- test cases pages used during development
	'틀:Webarchive/시험장/Production' = true,
	}
--------------------------------------------------------------------------------------
this is a table of all categories supported by Module:Webarchive
local categories = {
	archiveis = '분류:웹아카이브 틀 archiveis 링크',
	error = '분류:웹아카이브 틀 오류',
	other = '분류:웹아카이브 틀 기타 아카이브',
	unknown = '분류:웹아카이브 틀 알 수 없는 아카이브',
	warning = '분류:웹아카이브 틀 경고',
	wayback = '분류:웹아카이브 틀 웨이백 링크',
	webcite = '분류:웹아카이브 틀 웹인용 링크',
	}
------------------------------------------------------------------------------------------
used only with serviceName(), this table holds the two generic tail-text prefixes specified by services1
local prefixes = {
	at = '-', -- at
	atthe = '-', -- at the
	}
--=---------------------------------------------------------------------------------------
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.ec' = {false, 'archive.today', nil, 'archiveis', categories.archiveis},
	'archive.fo' = {false, 'archive.today', nil, 'archiveis', categories.archiveis},
	'archive.is' = {false, 'archive.today', nil, 'archiveis', categories.archiveis},
	'archive.li' = {false, 'archive.today', nil, 'archiveis', categories.archiveis},
	'archive.md' = {false, 'archive.today', nil, 'archiveis', categories.archiveis},
	'archive.org' = {true, '웨이백 머신', nil, 'wayback', categories.wayback},
	'archive.ph' = {false, 'archive.today', nil, 'archiveis', categories.archiveis},
	'archive.today' = {false, 'archive.today', nil, 'archiveis', categories.archiveis},
	'archive.vn' = {false, 'archive.today', nil, 'archiveis', categories.archiveis},
	'archive-it.org' = {false, 'Archive-It', nil, 'archiveit'},
	'arquivo.pt' = {true, nil, '포르투갈어 웹 아카이브'},
	'bibalex.org' = {false, '신 알렉산드리아 도서관', '신 알렉산드리아 도서관'},
	'collectionscanada' = {true, '캐나다 정부 웹 아카이브'},
	'europarchive.org' = {true, '아일랜드 국립도서관'},
	'freezepage.com' = {false, nil, '프리즈페이지'},
	'ghostarchive.org' = {false, nil, '고스트 아카이브'},
	'haw.nsk' = {true, '크로아티아어 웹 아카이브 (HAW)'},
	'langzeitarchivierung.bib-bvb.de' = {false, '바이에른 주립 도서관'},
	'loc.gov' = {true, '미국 의회도서관'},
	'nationalarchives.gov.uk' = {true, '영국 정부 웹 아카이브', nil, 'ukgwa'},
	'nlb.gov.sg' = {false, '웹 아카이브 싱가포르'},
	'parliament.uk' = {true, '영국 의회 웹 아카이브'},
	'perma.cc' = {false, 'Perma.cc'},
	'perma-archives.cc' = {false, 'Perma.cc'},
	'proni.gov' = {true, '북아일랜드 기록보관소'},
	'screenshots.com' = {false, nil, '스크린샷'},
	'stanford.edu' = {true, '스탠퍼드 대학교 도서관', '스탠퍼드 웹 아카이브'},
	'timetravel.mementoweb.org' = {false, '메멘토 프로젝트'},
	'uni-lj.si' = {true, nil, '슬로베니아어 웹 아카이브'},
	'veebiarhiiv.digar.ee' = {true, nil, '에스토니아어 웹 아카이브'},
	'vefsafn.is' = {true, '아이슬란드 국립 및 대학도서관'},
	'webarchive.bac-lac.gc.ca' = {false, '캐나다 도서관 기록관'},
	'webarchive.loc.gov' = {true, '미국 의회도서관', nil, 'locwebarchives', nil, '웹 아카이브'},
	'webarchive.nla.gov.au' = {true, '오스트레일리아어 웹 아카이브'},
	'webarchive.org.uk' = {true, '영국 웹 아카이브'},
	'webcache.googleusercontent.com' = {false, nil, '구글 캐시'},
	'webcitation.org' = {false, 'WebCite', nil, 'webcite', categories.webcite},
	'webharvest.gov' = {true, '미국 국립문서기록관리청'},
	'webrecorder.io' = {false, 'webrecorder.io'},
	'wikiwix.com' = {false, nil, '위키윅스'},
	'yorku.ca' = {false, '요크 대학교 도서관', '요크 대학교 디지털 도서관'},
	}
------------------------------------------------------------------------------------
for internationalzation
local s_text = {
	addlarchives = '추가 아카이브',
	addlpages = '추가 문서 보관됨 -',							-- TODO why the   there? replace with regular space?
	Archive_index = '아카이브 색인',
	Archived = '보관됨',
	archived = '보관됨',
	archive = '아카이브',
	Page = '문서',
	}
--------------------------------------------------------------------------------
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 = '(오류: 알 수 없는 아카이브 URL)',								-- serviceName
	unnamed_params = '(위치 변수 무시됨)',
--warnings
	mismatch = '(날짜 불일치)',									-- webarchive
	ts_len = '(타임스탬프 길이)',									-- decodeWaybackDate, decodeArchiveisDate timestamp not 14 digits
	ts_cal = '(달력)',											-- decodeWaybackDate timestamp has trailing splat
	}
local crit_err_msgs = {															-- critical error messages
	conflicting = '|$1= 및 |$2= 충돌',
	empty = '비어있는 url',
--	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 = '유효하지 않은 URL',
	ts_nan = '타임스탬프가 숫자가 아님',
	unknown = '알 수 없는 문제입니다. 틀토론 문서에 보고해 주십시오',
	}
--------------------------------------------------------
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,
	'1월' = 1, '2월' = 2, '3월' = 3, '4월' = 4, '5월' = 5, '6월' = 6, '7월' = 7, '8월' = 8, '9월' = 9, '10월' = 10, '11월' = 11, '12월' = 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 = false																-- set to true to enable local-digit to western-digit translation
	};
----------------------------------------------
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', 'datum', '날짜'},
	'title' = {'title', 'titel', '제목'},
	'nolink' = {'nolink'},
	'format' = {'format', '형식'}
	}
local enum_params = {
	'url#' = {'url#'},
	'date#' = {'date#', 'datum#', '날짜#'},
	'title#' = {'title#', 'titel#', '제목#'},
	}
local format_vals = {															-- |format= accepts two values; add local language variants here
	'addlpages' = {'addlpages'},
	'addlarchives' = {'addlarchives'},
	}
----------------------------------------------------------------------------
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,
	}