Modül:Kaynak/KB1/Yapılandırma

Vikisöz, özgür söz dizini

Bu modül için bir Modül:Kaynak/KB1/Yapılandırma/belge belgelendirmesi oluşturabilirsiniz

local citation_config = {};

-- override <code>...</code> styling to remove color, border, and padding.  <code> css is specified here:
-- https://git.wikimedia.org/blob/mediawiki%2Fcore.git/69cd73811f7aadd093050dbf20ed70ef0b42a713/skins%2Fcommon%2FcommonElements.css#L199
local code_style="color:inherit; border:inherit; padding:inherit;";

--[[--------------------------< 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 = { 'Kullanıcı', 'Tartışma', 'Kullanıcı_mesaj', 'Vikipedi_tartışma', 'Dosya_tartışma', 'Şablon', 'Şablon_tartışma',
	'Yardım_tartışma', 'Kategori_tartışma', 'Portal_tartışma', 'Kitap_tartışma', 'Modül', 'Modül_tartışma', 'MediaWiki', 'MediaWiki_tartışma' };

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


--[[--------------------------< M E S S A G E S >--------------------------------------------------------------

Translation table

The following contains fixed text that may be output as part of a citation.
This is separated from the main body to aid in future translations of this
module.

]]

local messages = {
	['arşiv-ölü'] = '$2 tarihinde $1 arşivlendi',
	['arşiv-ölü-değil'] = '$2 tarihinde kaynağından $1',
	['arşiv-eksik'] = '$2 tarihinde $1 arşivlendi',
	['arşiv'] = 'arşivlendi',
	['tarafından'] = 'tarafından',																-- contributions to authored works: introduction, foreword, afterword
	['harita'] = '$1 tarafından harita',
	['editör'] = '(Ed.)',
	['editörler'] = '(Edl.)',
	['sürüm'] = '($1 bas.)',
	['bölüm'] = 'Bölüm $1',
	['diğerleri'] = 've diğerleri.',
	['in'] = 'In',																-- edited works
	['pasif'] = 'kapalı',
	['ek'] = '$1 inset',
	['görüşme'] = '$1 tarafından görüşme yapıldı',										
	['diğer özet'] = 'Diğer özet',
	['haber-grubu'] = '[[Haber grubu]]:&nbsp;$1',
	['esas'] = 'kaynağından',
	['yayınlandı'] = ' ($1 tarihinde yayınlandı)',
	['erişildi'] = 'Erişim tarihi: $1',
	['sezon'] = '$1. sezon',
	['kısım'] = '§ $1',
	['kısımlar'] = '§§ $1',
	['seri'] = 'Seri $1',
	['çevrildi'] = '$1 tarafından çevrildi',
	['tür'] = ' ($1)',															-- for titletype
	['yazıldı'] = 'Written at $1',

	['cilt'] = '$1 Cilt&nbsp;$2',												-- $1 is sepc; bold journal style volume is in presentation{}
	['cilt-no'] = "$1 '''$2''' ($3)",									-- sepc, volume, issue
	['sayı'] = "$1, ''$2''",														-- $1 is sepc

	['d-cilt'] = '$1 $2',														-- sepc, volume; bold journal volume is in presentation{}
	['d-sayı'] = ' ($1)',

	['ssyok'] = '$1 $2';															-- page(s) without prefix; $1 is sepc

	['s-önek'] = "$1 s.&nbsp;$2",												-- $1 is sepc
	['ss-önek'] = "$1 ss.&nbsp;$2",											-- $1 is sepc
	['d-sayfa(lar)'] = ': $1',														-- same for page and pages

	['yaprak'] = '$1 Sheet&nbsp;$2',												-- $1 is sepc
	['yapraklar'] = '$1 Sheets&nbsp;$2',											-- $1 is sepc
	['d-yaprak'] = ': Sheet&nbsp;$1',
	['d-yapraklar'] = ': Sheets&nbsp;$1',
	
	['aboneli'] = '<span style="font-size:90%; color:#555">(Abonelik gerekiyor (<span title="Site, sayfaya erişmek için ödemeli abonelik gerektiriyor." style="border-bottom:1px dotted;cursor:help">yardım</span>))</span>' ..
		'[[Kategori:Abonelik gerektiren bağlantılar içeren sayfalar]]',
	
	['kayıtlı']='<span style="font-size:90%; color:#555">(Kayıt gerekiyor (<span title="Site, sayfaya erişmek için kayıt gerektiriyor." style="border-bottom:1px dotted;cursor:help">yardım</span>))</span>' ..
		'[[Kategori:Kayıt gerektiren referans veya kaynak içeren sayfalar]]',
	
	['dil'] = '($1)',
	['ile'] = " &ndash; $1 vasıtasıyla",
	['etkinlik'] = 'Etkinlik zamanı:',
	['dakika'] = 'dakika',
	
	['ebilgiedinmeno'] = 'e-Bilgi Edinme numarası $1',
	['edilekçeno'] = 'e-Dilekçe numarası $1',
	['cimerbaşvuruno'] = 'CİMER başvuru numarası $1',
	
	['parametre-ayırıcı'] = ', ',
	['parametre-son-ayırıcı'] = ', ve ',
	['parametre-eş-ayırıcı'] = ' ve ',
	
	-- Determines the location of the help page
	['yardım sayfası bağı'] = 'Yardım:KB1 hataları',
	['yardım sayfası etiketi'] = 'yardım',
	
	-- Internal errors (should only occur if configuration is bad)
	['tanımlanamayan_hata'] = 'Called with an undefined error condition',
	['tanımlanamayan_manuel_ID'] = 'Unrecognized manual ID mode',
	['bilinmeyen_ID_modu'] = 'Unrecognized ID mode',
	['bilinmeyen_argüman_haritası'] = 'Argument map not defined for this variable',
	['bilgisiz_url_orijin_yok'] = 'Bare url found but origin indicator is nil or empty',
	}


--[[--------------------------< P R E S E N T A T I O N >------------------------------------------------------

Fixed presentation markup.  Originally part of citation_config.messages it has been moved into its own, more semantically
correct place.

]]

local presentation = 
	{
	-- Error output
	-- .error class is specified at https://git.wikimedia.org/blob/mediawiki%2Fcore.git/9553bd02a5595da05c184f7521721fb1b79b3935/skins%2Fcommon%2Fshared.css#L538
	-- .citation-comment class is specified at Help:CS1_errors#Controlling_error_message_display
	['gizli-hata'] = '<span style="display:none;font-size:100%" class="error citation-comment">$1</span>',
	['görünür-hata'] = '<span style="font-size:100%" class="error citation-comment">$1</span>',

	['erişimtarihi'] = '<span class="reference-accessdate">$1$2</span>',			-- to allow editors to hide accessdate using personal css

	['bdi'] = '<bdi$1>$2</bdi>',												-- bidirectional isolation used with |script-title= and the like

	['kaynak'] = '<cite class="$1">$2</cite>';									-- |ref= not set so no id="..." attribute
	['kaynak-id'] = '<cite id="$1" class="$2">$3</cite>';							-- for use when |ref= is set

	['biçim'] = ' <span style="font-size:85%;">($1)</span>',					-- for |format=, |chapter-format=, etc
	
																				-- various access levels, for |access=, |doi-access=, |arxiv=, ...
																				-- narrow no-break space &#8239; may work better than nowrap css. Or not? browser support?

	['erişim-sinyali'] = '<span class="plainlinks">$1&#8239;$2</span>',			-- external link with appropriate lock icon
		['ücretsiz'] = '[[File:Lock-green.svg|9px|link=|alt=Özgürce erişilebilir|Özgürce erişilebilir]]',
		['kayıtlı'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt=Ücretsiz kayıt gerekli|Ücretsiz kayıt gerekli]]',
		['kısıtlı'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt=Sınırlı deneme süresince özgürce erişilebilir, normalde ise abonelik gereklidir|Sınırlı deneme süresince özgürce erişilebilir, normalde ise abonelik gereklidir]]',
		['aboneli'] = '[[File:Lock-red-alt.svg|9px|link=|alt=Ücretli abonelik gerekli|Ücretli abonelik gerekli]]',

	['italik-başlık'] = "''$1''",

	['boşluk-sol'] = '<span style="padding-left:0.2em;">$1</span>$2',			-- spacing to use when title contains leading single or double quote mark
	['boşluk-sağ'] = '$1<span style="padding-right:0.2em;">$2</span>',			-- spacing to use when title contains trailing single or double quote mark

																				-- these for simple wikilinked titles [["text]], [[text"]] and [["text"]]
																				-- span wraps entire wikilink
	['boşluk-wl-sol'] = '<span style="padding-left:0.2em;">$1</span>',			-- when title contains leading single or double quote mark
	['boşluk-wl-sağ'] = '<span style="padding-right:0.2em;">$1</span>',			-- when title contains trailing single or double quote mark
	['boşluk-wl-ikisi'] = '<span style="padding-left:0.2em;padding-right:0.2em;">$1</span>',	-- when title contains leading and trailing single or double quote marks

	['boşlukyok1'] = '<span class="nowrap">$1</span>',								-- for nowrapping an item: <span ...>yyyy-mm-dd</span>
	['boşlukyok2'] = '<span class="nowrap">$1</span> $2',							-- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space)

	['ocins'] = '<span title="$1" class="Z3988"><span style="display:none;">&nbsp;</span></span>',		-- Note: Using display: none on the COinS span breaks some clients

	['parametre'] = '<code style="'..code_style..'">&#124;$1=</code>',

	['ps_kb1'] = '.';															-- cs1 style postscript (terminal) character
	['ps_kb2'] = '';															-- cs2 style postscript (terminal) character (empty string)

	['alıntı-yazı'] = '<q>$1</q>',												-- for wrapping |quote= content
	['alıntı-başlık'] = '"$1"',

	['ayır_kb1'] = '.',															-- cs1 element separator
	['ayır_kb2'] = ',',															-- cs2 separator
	['ayır_nl'] = ';',															-- cs1|2 style name-list separator between authors is a semicolon
	['ayır_adı'] = ', ',														-- cs1|2 style last/first separator is <comma><space>
	['ayır_nl_vanc'] = ',',														-- Vancouver style name-list separator between authors is a comma
	['ayır_adı_vanc'] = ' ',													-- Vancouver style last/first separator is a space

	['çeviri-italik-başlık'] = "&#91;''$1''&#93;",
	['çeviri-alıntı-başlık'] = "&#91;$1&#93;",
	['cilt-kalın'] = '$1 <b>$2</b>',												-- sepc, volume; for bold journal cites; for other cites ['vol'] in messages{}
	}

	
--[[--------------------------< A L I A S E S >----------------------------------------------------------------

Aliases table for commonly passed parameters

]]

local aliases = {
	--Çeviri bekleyen parametreler
	['AirDate'] = {'air-date', 'airdate'},
	['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},
	['At'] = 'at',
	['Callsign'] = {'call-sign', 'callsign'},									-- cite interview
	['Cartography'] = 'cartography',
	['DF'] = 'df',
	['Docket'] = 'docket',
	['Embargo'] = 'embargo',
	['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'},
	['Inset'] = 'inset',
	['Mode'] = 'mode',
	['NameListFormat'] = 'name-list-format',
	['NoTracking'] = {'template-doc-demo', 'template doc demo', 'no-cat', 'nocat', 
		'no-tracking', 'notracking'},
	['PostScript'] = {'postscript', 'PS'},
	['RegistrationRequired'] = 'registration',
	['Scale'] = 'scale',
	['ScriptChapter'] = 'script-chapter',
	['ScriptTitle'] = 'script-title',
	['Section'] = 'section',
	['Sections'] = 'sections',													-- cite map only
	['SeriesSeparator'] = 'series-separator',
	['Sheet'] = 'sheet',														-- cite map only
	['Sheets'] = 'sheets',														-- cite map only
	['SubscriptionRequired'] = 'subscription',
	['TimeCaption'] = {'time-caption', 'timecaption'},
	['TransMap'] = 'trans-map',													-- cite map only
	['Transcript'] = 'transcript',
	['TranscriptFormat'] = 'transcript-format',
	['TranscriptURL'] = {'transcript-url', 'transcripturl'},
	['Vauthors'] = 'vauthors',
	['Veditors'] = 'veditors',
	
	
	--Çevrilmiş parametreler
	['Ajans'] = {'agency', 'ajans'},
	['ErişimTarihi'] = {'access-date', 'accessdate', 'erişim-tarihi', 'erişimtarihi', 'erişim tarihi'},
	['ErişimYılı'] = 'erişimyılı',
	['ArşivTarihi'] = {'archive-date', 'archivedate', 'arşiv-tarihi', 'arşivtarihi'},
	['ArşivBiçimi'] = {'archive-format', 'arşiv-biçimi'},
	['ArşivEngelli'] = {'arşivengeli', 'arşivengelli'},
	['ArşivURL'] = {'archive-url', 'archiveurl', 'arşiv-url', 'arşivurl', 'arşivURL'},
	['Yazarlar'] = {'authors', 'people', 'host', 'credits', 'yazarlar', 'yazars', 'katkıdabulunanlar', 'muhataplar', 'kişiler'},
	['KitapBaşlığı'] = {'book-title', 'booktitle', 'kitap-başlığı', 'kitapbaşlığı'},
	['Kısım'] = {'chapter', 'contribution', 'entry', 'article', 'section', 'kısım', 'makale', 'madde', 'bölüm'},
	['KısımBiçimi'] = {'chapter-format', 'contribution-format', 'section-format', 'bölüm-biçimi', 'kısım-biçimi'};
	['KısımURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'section-url', 'sectionurl', 'kısım-url', 'bölüm-url', 'bölümurl'},
	['KısımUrlErişimi'] = {'chapter-url-access', 'contribution-url-access', 'entry-url-access', 'article-url-access', 'section-url-access', 'kısım-url-erişimi', 'bölüm-url-erişimi', 'madde-url-erişimi', 'girdi-url-erişimi'},	--  (Used by InternetArchiveBot)
	['Şehir'] = {'city', 'şehir'},															-- cite interview
	['Sınıf'] = {'class', 'sınıf'},														-- cite arxiv and arxiv identifiers
	['ID'] = {'id', 'ID', 'tanıtıcı'},
	['EşYazarlar'] = {'coauthors', 'coauthor', 'eşyazarlar', 'ortakyazarlar', 'yardımcıyazarlar', 'yardımcı yazarlar'},									-- coauthor and coauthors are deprecated; remove after 1 January 2015?
	['İşbirliği'] = {'collaboration', 'işbirliği'},
	['Konferans'] = {'conference', 'event', 'konferans', 'etkinlik'},
	['KonferansBiçimi'] = {'conference-format', 'event-format', 'konferans-biçimi', 'etkinlik-biçimi'},
	['KonferansURL'] = {'conference-url', 'conferenceurl', 'event-url', 'eventurl', 'konferans-url', 'etkinlik-url'},
	['Katkı'] = {'contribution', 'katkı'},											-- introduction, foreword, afterword, etc; required when |contributor= set
	['Tarih'] = {'date', 'air-date', 'airdate', 'tarih'},
	['ÖlüURL'] = {'dead-url', 'deadurl', 'ölüurl', 'ölü-url', 'bozukurl', 'bozukURL', 'url-durumu', 'url-status'},
	['Lisans'] = {'degree', 'lisans'},
	['YazarlarıGöster'] = {'display-authors', 'displayauthors', 'yazarları-göster', 'yazar-göster'},
	['EditörleriGöster'] = {'display-editors', 'displayeditors', 'editörleri-göster', 'editör-göster'},
	['DoiKırık'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date', 'doi_brokendate', 'doi_inactivedate', 'doi-kırık-tarih', 'doibozuk', 'doi_bozuktarihi'},
	['Sürüm'] = {'edition', 'sürüm', 'basım', 'baskı'},
	['Editörler'] = {'editors', 'editörler'},
	['Ansiklopedi'] = {'encyclopedia', 'encyclopaedia', 'ansiklopedi'},						-- this one only used by citation
	['Bölüm'] = {'episode', 'bölüm'},													-- cite serial only TODO: make available to cite episode?
	['Biçim'] = {'format', 'biçim'},
	['Sayı'] = {'issue', 'number', 'sayı', 'numara'},
	['Numara'] = {'number', 'numara'},														-- this case only for cite techreport
	['Dil'] = {'language', 'in', 'dil'},
	['SonYazarVe'] = {'last-author-amp', 'lastauthoramp', 'sonyazarve'},
	['DiğerTarih'] = {'lay-date', 'laydate', 'diğertarih'},
	['DiğerBiçim'] = {'lay-format', 'diğer-biçim'},
	['DiğerKaynak'] = {'lay-source', 'laysource', 'diğer-kaynak', 'diğerkaynak'},
	['DiğerURL'] = {'lay-url', 'lay-summary', 'layurl', 'laysummary', 'diğer-url', 'diğerurl', 'diğerözet'},
	['PostaListesi'] = {'mailinglist', 'mailing-list', 'posta-listesi', 'e-posta', 'kurum'},							-- cite mailing list only
	['Harita'] = {'map', 'harita'},															-- cite map only
	['HaritaBiçimi'] = {'map-format', 'harita-biçimi'},												-- cite map only
	['HaritaURL'] = {'mapurl', 'map-url', 'harita-url'},											-- cite map only
	['HaritaUrlErişimi'] = {'map-url-access', 'harita-url-erişimi'},								-- cite map only	--  (Used by InternetArchiveBot)
	['MesajID'] = {'message-id', 'mesaj-id'},
	['Dakika'] = {'minutes', 'dakika'},
	['Ağ'] = {'network', 'ağ', 'şebeke', 'kurum'},
	['Sayfa'] = {'p', 'page', 's', 'sayfa'},
	['Sayfalar'] = {'pp', 'pages', 'ss', 'sayfalar'},
	['SSYok'] = {'no-pp', 'nopp', 'ssyok'},
	['Periyodik'] = {'journal', 'newspaper', 'magazine', 'work',
		'website',  'periodical', 'encyclopedia', 'encyclopaedia', 'dictionary', 'mailinglist',
		'dergi', 'gazete', 'eser', 'çalışma', 'iş', 'websitesi', 'süreliyayın', 'ansiklopedi', 'sözlük', 'program'},
	['Yer'] = {'place', 'location', 'yer', 'konum', 'şehir'},
	['Program'] = 'program',													-- cite interview
	['YayınTarihi'] = {'publicationdate', 'publication-date', 'yayın-tarihi', 'yayıntarihi'},
	['YayınYeri'] = {'publication-place', 'publicationplace', 'yayın-yeri', 'yayınyeri'},
	['Yayıncı'] = {'publisher', 'distributor', 'institution', 'newsgroup', 'yayıncı', 'yayımcı', 'çağrıişareti', 'habergrubu'},
	['Alıntı'] = {'quote', 'quotation', 'alıntı'},
	['Kaynak'] = {'ref', 'kaynak'},
	['Sezon'] = {'season', 'sezon'},
	['Seri'] = {'series', 'version', 'seri', 'sürüm', 'versiyon'},
	['SeriBağlantısı'] = {'series-link', 'serieslink', 'seri-bağlantısı', 'seribağı'},
	['SeriNumarası'] = {'series-number', 'series-no', 'seriesnumber', 'seriesno', 'seri-numarası'},
	['İstasyon'] = {'station', 'istasyon', 'kanal'},
	['Başlık'] = {'title', 'başlık'},
	['BaşlıkYok'] = 'başlıkyok',
	['BaşlıkBağı'] = {'title-link', 'episode-link', 'titlelink', 'episodelink', 
					'bölüm-bağlantısı', 'başlık-bağlantısı', 'bölüm-url', 'bölümurl', 'başlıklink', 'başlıkbağı', 'başlık-bağı'},
	['BaşlıkNotu'] = 'department',
	['BaşlıkTürü'] = {'type', 'medium', 'tür', 'medya', 'tip', 'ortam'},
	['ÇeviriBölüm'] = {'trans-chapter', 'trans_chapter', 'çeviri_bölüm', 'çeviri_bölümü', 'çeviribölümü'},
	['ÇeviriBaşlık'] = {'trans-title', 'trans_title', 'çeviri-başlık', 'çeviribaşlık', 'çeviri_başlık'},
	['URL'] = {'url', 'URL', 'katkı-url'},
	['UrlErişimi'] = {'url-erişimi', 'url-access', 'URLerişimi'},								--  (Used by InternetArchiveBot)
	['Ay'] = {'ay', 'month'},
	['Yıl'] = {'year', 'yıl', 'sene'},
	['ÖzgünYıl'] = {'orig-year', 'origyear', 'özgünyıl'},
	['Zaman'] = {'time', 'zaman'},
	['İle'] = {'via', 'ile'},
	['Cilt'] = {'volume', 'cilt'},
	['EDilekçeNo'] = 'edilekçeno',
	['EBilgiEdinmeNo'] = 'ebilgiedinmeno',
	['CimerBaşvuruNo'] = 'cimerbaşvuruno',
	['Diğerleri'] = {'others', 'interviewer', 'interviewers', 'diğerleri'},

	['YazarListesi-Ad'] = {"first#", "given#", "author-first#", "author#-first", "ad#", "ilk#", "muhatapadı#"},
	['YazarListesi-Soyadı'] = {"last#", "author#", "surname#", "author-last#", "author#-last", "subject#", "son#", "soyadı#", "yazar#",
							   "muhatap#", "muhatapsoyadı#", "özne#", "süje#", "konu#"},
	['YazarListesi-Bağ'] = {"authorlink#", "author-link#", "author#-link", "subjectlink#", "author#link", "subject-link#", "subject#-link", "subject#link",
						   "yazar#-bağ", "yazarbağı#", "yazarlink#", "konubağı#", "muhatapbağı#", "öznebağı#", "süjebağı#"},
	['YazarListesi-Maske'] = {"author-mask#", "authormask#", "author#mask", "author#-mask", "yazarmaskesi#"},
	
	['KatkıcıListesi-Ad'] = {'contributor-first#','contributor#-first', 'katkı-ad#'},
	['KatkıcıListesi-Soyadı'] = {'contributor#', 'contributor-last#', 'contributor#-last', 'katkı-soyadı#'},
	['KatkıcıListesi-Bağ'] = {'contributor-link#', 'contributor#-link', 'katkı-bağı#'},
	['KatkıcıListesi-Maske'] = {'contributor-mask#', 'contributor#-mask', 'katkı-maskesi#'},

	['EditörListesi-Ad'] = {"editor-first#", "editor#-first", "editor-given#", "editor#-given", "editör#-ilk", "editör#-ad"},
	['EditörListesi-Soyadı'] = {"editor#", "editor-last#", "editor#-last", "editor-surname#", "editor#-surname", "editör#-soyadı", "editör#-son", "editör#"},
	['EditörListesi-Bağ'] = {"editor-link#", "editor#-link", "editorlink#", "editor#link", "editör#-bağı", "editör#-bağ"},
	['EditörListesi-Maske'] = {"editor-mask#", "editor#-mask", "editormask#", "editor#mask", "editör#-maskesi"},
	
	['GörüşmeciListesi-Ad'] = {'interviewer-first#', 'interviewer#-first', 'görüşmeci#-ad'},
	['GörüşmeciListesi-Soyadı'] = {'interviewer#', 'interviewer-last#', 'interviewer#-last', 'görüşmeci#-soyadı', 'görüşmeci#'},
	['GörüşmeciListesi-Bağ'] = {'interviewer-link#', 'interviewer#-link', 'görüşmeci#-bağlantı'},
	['GörüşmeciListesi-Maske'] = {'interviewer-mask#', 'interviewer#-mask', 'görüşmeci#-maskesi'},
	
	['ÇevirmenListesi-Ad'] = {'translator-first#','translator#-first', 'çevirmen#-ad'},
	['ÇevirmenListesi-Soyadı'] = {'translator#', 'translator-last#', 'translator#-last', 'çevirmen#-soyadı', 'çevirmen#'},
	['ÇevirmenListesi-Bağ'] = {'translator-link#', 'translator#-link', 'çevirmen#-bağı'},
	['ÇevirmenListesi-Maske'] = {'translator-mask#', 'translator#-mask', 'çevirmen#-maskesi'},
}


--[[--------------------------< S P E C I A L   C A S E   T R A N S L A T I O N S >----------------------------

This table is primarily here to support internationalization.  Translations in this table are used, for example,
when an error message, category name, etc is extracted from the English alias key.  There may be other cases where
this translation table may be useful.

]]

local special_case_translation = {
	['YazarListesi'] = "yazar listesi",											-- these for multiple names maint categories
	['KatkıcıListesi'] = "katkıcı listesi",
	['EditörListesi'] = "editör listesi",
	['GörüşmeciListesi'] = "görüşmeci listesi",
	['ÇevirmenListesi'] = "çevirmen listesi",
	
	['yazarlar'] = "yazarlar",													-- used in get_display_authors_editors()
	['editörler'] = "editörler",
	}


--[[--------------------------< D E F A U L T S >--------------------------------------------------------------

Default parameter values

TODO: keep this?  Only one default?
]]

local defaults = {
	['ÖlüURL'] = 'yes',
}


--[[--------------------------< D A T E _ N A M E S >----------------------------------------------------------

This table of tables lists local language date names and fallback English date names.  The code in Date_validation
will look first in the local table for valid date names.  If date names are not found in the local table, the code
will look in the English table.

Because citations can be copied to the local wiki from en.wiki, the English is required when the date-name translation
function date_name_xlate() is used.

In these tables, season numbering is defined by ISO DIS 8601:2016 part 2 §4.7 'Divisions of a year'.  The standard
defines various divisions using numbers 21-41.  cs1|2 only supports generic seasons.  ISO DIS 8601:2016 does support
the distinction between north and south hemispere seasons but cs1|2 has no way to make that distinction.

The standard does not address 'named' dates so, for the purposes of cs1|2, Christmas is defined here as 99, which
should be out of the ISO DIS 8601:2016 range of uses for a while.

]]

local date_names = {
	['en'] = {			-- English
		['uzun']	= {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12};
		['kisa']	= {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12};
		['mevsim']	= {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23};
		['isimli']	= {['Christmas']=99};
		},
	['local'] = {		-- replace these English date names with the local language equivalents
		['uzun']	= {['Ocak']=1, ['Şubat']=2, ['Mart']=3, ['Nisan']=4, ['Mayıs']=5, ['Haziran']=6, ['Temmuz']=7, ['Ağustos']=8, ['Eylül']=9, ['Ekim']=10, ['Kasım']=11, ['Aralık']=12};
		['kisa']	= {['Oca']=1, ['Şub']=2, ['Mar']=3, ['Nis']=4, ['May']=5, ['Haz']=6, ['Tem']=7, ['Ağu']=8, ['Eyl']=9, ['Eki']=10, ['Kas']=11, ['Ara']=12};
		['mevsim']	= {['Kış']=24, ['İlbahar']=21, ['Bahar']=21, ['Yaz']=22, ['Güz']=23, ['Sonbahar']=23};
		['isimli']	= {['Noel']=99};
		},
	['yerel_rakamlar'] = {['0'] = '0', ['1'] = '1', ['2'] = '2', ['3'] = '3', ['4'] = '4', ['5'] = '5', ['6'] = '6', ['7'] = '7', ['8'] = '8', ['9'] = '9'};	-- used to convert local language digits to Western 0-9
	['xlate_digits'] = {};
	}

	for ld, ed in pairs (date_names.yerel_rakamlar) do							-- make a digit translation table for simple date translation from en to local language using local_digits table
		date_names.xlate_digits [ed] = ld;										-- en digit becomes index with local digit as the value
	end


--[[--------------------------< V O L U M E ,  I S S U E ,  P A G E S >----------------------------------------

These tables hold cite class values (from the template invocation) and identify those templates that support
|volume=, |issue=, and |page(s)= parameters.  Cite conference and cite map require further qualification which
is handled in the main module.

]]

local templates_using_volume = {'kaynak', 'audio-visual', 'kitap', 'konferans', 'ansiklopedi', 'görüşme', 'akademik-dergi', 'dergi', 'harita', 'haber', 'report', 'bilimsel-rapor', 'tez'}
local templates_using_issue = {'kaynak', 'konferans', 'bölüm', 'görüşme', 'akademik-dergi', 'dergi', 'harita', 'haber'}
local templates_not_using_page = {'audio-visual', 'bölüm', 'e-posta', 'haber-grubu', 'podcast', 'program', 'tabela', 'konuşma'}


--[[--------------------------< K E Y W O R D S >--------------------------------------------------------------

This table holds keywords for those parameters that have defined sets of acceptible keywords.

]]

local keywords = {
	['evet_doğru_e'] = {'yes', 'true', 'y', 'e', 'evet', 'doğru'},										-- ignore-isbn-error, last-author-amp, no-tracking, nopp, registration, subscription
--	['deadurl'] = {'yes', 'true', 'y', 'no', 'unfit', 'usurped', 'unfit no archive', 'usurped no archive'},		-- hidden 2016-04-10; see Help_talk:Citation_Style_1#Recycled_urls
	['ölüurl'] = {'yes', 'true', 'y', 'no', 'unfit', 'usurped', 'evet', 'y', 'hayır', 'h', 'live', 'dead'},
	['mod'] = {'kb1', 'kb2'},
	['ad-listesi-biçimi'] = {'vanc'},
	['katkı'] = {'afterword', 'foreword', 'introduction', 'preface'},	-- generic contribution titles that are rendered unquoted in the 'chapter' position
	['tarih-biçimi'] = {'dmy', 'dmy-all', 'mdy', 'mdy-all', 'ymd', 'ymd-all'},
	['url-erişimi'] = {'aboneli', 'kısıtlı', 'kayıtlı'}, 	   -- access level of a URL (subscription required, limited access, free registration required), free to read by default
    ['id-erişimi'] = {'ücretsiz'},                                          -- access level of an identifier (free to read), subscription required (or no full text) by default
}


--[[--------------------------< S T R I P M A R K E R S >------------------------------------------------------

Common pattern definition location for stripmarkers so that we don't have to go hunting for them if (when)
MediaWiki changes their form.

]]

local stripmarkers = {
	['any'] = '\127[^\127]*UNIQ%-%-(%a+)%-[%a%d]+%-QINU[^\127]*\127',			-- capture returns name of stripmarker
	['math'] = '\127[^\127]*UNIQ%-%-math%-[%a%d]+%-QINU[^\127]*\127'			-- math stripmarkers used in coins_cleanup() and coins_replace_math_stripmarker()
	}


--[[--------------------------< I N V I S I B L E _ C H A R A C T E R S >--------------------------------------

This table holds non-printing or invisible characters indexed either by name or by Unicode group. Values are decimal
representations of UTF-8 codes.  The table is organized as a table of tables because the lua pairs keyword returns
table data in an arbitrary order.  Here, we want to process the table from top to bottom because the entries at
the top of the table are also found in the ranges specified by the entries at the bottom of the table.

This list contains patterns for templates like {{'}} which isn't an error but transcludes characters that are
invisible.  These kinds of patterns must be recognized by the functions that use this list.

Also here is a pattern that recognizes stripmarkers that begin and end with the delete characters.  The nowiki
stripmarker is not an error but some others are because the parameter values that include them become part of the
template's metadata before stripmarker replacement.

]]

local invisible_chars = {
	{'replacement', '\239\191\189'},											-- U+FFFD, EF BF BD
	{'zero width joiner', '\226\128\141'},										-- U+200D, E2 80 8D
	{'zero width space', '\226\128\139'},										-- U+200B, E2 80 8B
	{'hair space', '\226\128\138'},												-- U+200A, E2 80 8A
	{'soft hyphen', '\194\173'},												-- U+00AD, C2 AD
	{'horizontal tab', '\009'},													-- U+0009 (HT), 09
	{'line feed', '\010'},														-- U+000A (LF), 0A
	{'carriage return', '\013'},												-- U+000D (CR), 0D
	{'stripmarker', stripmarkers.any},											-- stripmarker; may or may not be an error; capture returns the stripmaker type
	{'delete', '\127'},															-- U+007F (DEL), 7F; must be done after stripmarker test
	{'C0 control', '[\000-\008\011\012\014-\031]'},								-- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D))
	{'C1 control', '[\194\128-\194\159]'},										-- U+0080–U+009F (XXX–APC), C2 80 – C2 9F
--	{'Specials', '[\239\191\185-\239\191\191]'},								-- U+FFF9-U+FFFF, EF BF B9 – EF BF BF
--	{'Private use area', '[\238\128\128-\239\163\191]'},						-- U+E000–U+F8FF, EE 80 80 – EF A3 BF
--	{'Supplementary Private Use Area-A', '[\243\176\128\128-\243\191\191\189]'},	-- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD
--	{'Supplementary Private Use Area-B', '[\244\128\128\128-\244\143\191\189]'},	-- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD
	}


-- Indic script makes use of zero width joiner as a character modifier so zwj characters must be left in.  This
-- pattern covers all of the unicode characters for these languages:
--	Devanagari					0900–097F – https://unicode.org/charts/PDF/U0900.pdf
--		Devanagari extended		A8E0–A8FF – https://unicode.org/charts/PDF/UA8E0.pdf
--	Bengali						0980–09FF – https://unicode.org/charts/PDF/U0980.pdf
--	Gurmukhi					0A00–0A7F – https://unicode.org/charts/PDF/U0A00.pdf
--	Gujarati					0A80–0AFF – https://unicode.org/charts/PDF/U0A80.pdf
--	Oriya						0B00–0B7F – https://unicode.org/charts/PDF/U0B00.pdf
--	Tamil						0B80–0BFF – https://unicode.org/charts/PDF/U0B80.pdf
--	Telugu						0C00–0C7F – https://unicode.org/charts/PDF/U0C00.pdf
--	Kannada						0C80–0CFF – https://unicode.org/charts/PDF/U0C80.pdf
--	Malayalam					0D00–0D7F – https://unicode.org/charts/PDF/U0D00.pdf
-- plus the not-necessarily Indic scripts for Sinhala and Burmese:
--  Sinhala						0D80-0DFF - https://unicode.org/charts/PDF/U0D80.pdf
--	Myanmar						1000-109F - https://unicode.org/charts/PDF/U1000.pdf
--		Myanmar extended A		AA60-AA7F - https://unicode.org/charts/PDF/UAA60.pdf
--		Myanmar extended B		A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf
-- the pattern is used by has_invisible_chars() and coins_cleanup()
-- TODO: find a better place for this?

local indic_script = '[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]';


--[[--------------------------< L A N G U A G E S >------------------------------------------------------------

This table is used to hold ISO 639-1 two-character language codes that apply only to |script-title= and |script-chapter=

]]

local script_lang_codes = {
	'am', 'ar', 'be', 'bg', 'bn', 'bs', 'dv', 'el', 'fa',						-- ISO 639-1 codes only for |script-title= and |script-chapter=
	'gu', 'he', 'hy', 'ja', 'ka', 'kn', 'ko', 'ku',
	'mk', 'ml', 'mn', 'mr', 'my', 'ps', 'ru', 'sd',
	'sr', 'tg', 'th', 'uk', 'ug', 'ur', 'yi', 'zh'
	};


--[[--------------------------< L A N G U A G E   R E M A P P I N G >------------------------------------------

These tables hold language information that is different (correct) from MediaWiki's definitions

]]

	local lang_code_remap = {													-- used for |language= and |script-title= / |script-chapter=
		['bh'] = 'Bihari',														-- MediaWiki uses 'bh' as a subdomain name for Bhojpuri wWikipedia: bh.wikipedia.org
		['bn'] = 'Bengali',														-- MediaWiki returns Bangla
		['cnr'] = 'Montenegrin',												-- 'new' 639 code that MediaWiki does not yet understand
	}

	local lang_name_remap = {													-- used for |language=
		['bangla'] = {'Bengali', 'bn'},											-- MediaWiki returns Bangla (the endonym) but we want Bengali (the exonym); here we remap
		['bengali'] = {'Bengali', 'bn'},										-- MediaWiki doesn't use exonym so here we provide correct language name and 639-1 code
		['bihari'] = {'Bihari', 'bh'},											-- MediaWiki replaces 'Bihari' with 'Bhojpuri' so 'Bihari' cannot be found
		['bhojpuri'] = {'Bhojpuri', 'bho'},										-- MediaWiki uses 'bh' as a subdomain name for Bhojpuri wWikipedia: bh.wikipedia.org
		['montenegrin'] = {'Montenegrin', 'cnr'},								-- 'new' 639 code that MediaWiki does not yet understand
	}

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

Here we name maintenance categories to be used in maintenance messages.

]]

local maint_cats = {
	['archive_needed'] = 'Arşivlenmesi gereken bağlantıya sahip kaynak şablonu içeren maddeler',
	['ASIN'] = 'KB1 bakım: ISBN kullanan ASIN',
	['authors'] = 'KB1 bakım: Yazarlar parametresi kullanan',
	['bot:_unknown'] = 'KB1 bakım: BOT: esas-url durumu bilinmeyen',
	['date_format'] = 'KB1 bakım: Tarih biçimi',
	['date_year'] = 'KB1 bakım: Tarih ve yıl',
	['disp_auth_ed'] = 'KB1 bakım: göster-$1',									-- $1 is authors or editors; gets value from special_case_translation table
	['editors'] = 'KB1 bakım: Editörler parametresini kullanan',
	['embargo'] = 'KB1 bakım: PMC yasağı kalkmış',
	['english'] = 'KB1 bakım: İngilizce diline özel',
	['etal'] = 'KB1 bakım: Diğerlerinin yanlış kullanımı',
	['extra_text'] = 'KB1 bakım: Fazladan yazı',
	['extra_text_names'] = 'KB1 bakım: Fazladan yazı: $1',							-- $1 is <name>s list; gets value from special_case_translation table
	['ignore_isbn_err'] = 'KB1 bakım: Görmezlikten gelinen ISBN hataları',
	['interviewers'] = 'KB1 bakım: Görüşmeciler parametresini kullanan',
	['missing_pipe'] = 'KB1 bakım: Dikey çizgi eksik',
	['mult_names'] = 'KB1 bakım: Birden fazla ad: $1',							-- $1 is <name>s list; gets value from special_case_translation table
	['pmc_format'] = 'KB1 bakım: PMC biçimi',
	['unfit'] = 'KB1 bakım: Uygun olmayan url',
	['unknown_lang'] = 'KB1 bakım: Tanımlanamayan dil',
	['untitled'] = 'KB1 bakım: Başlıksız periyodik',
	}


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

Here we name properties categories

]]

local prop_cats = {
	['foreign_lang_source'] = 'KB1 $1 kaynakları ($2)',					-- |language= categories; $1 is language name, $2 is ISO639-1 code
	['foreign_lang_source_2'] = 'KB1 yabancı dildeki kaynaklar (ISO 639-2)|$1',	-- |language= category; a cat for ISO639-2 languages; $1 is the ISO 639-2 code
	['script'] = 'KB1 yabancı dil alfabesi kullanan kaynaklar',							-- when language specified by |script-title=xx: doesn't have its own category
	['script_with_name'] = 'KB1 $1 alfabesini kullanan kaynaklar ($2)',					-- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code
	['jul_greg_uncertainty'] = 'KB1: Jülyen-Miladi belirsizliği',				-- probably temporary cat to identify scope of template with dates 1 October 1582 – 1 January 1926
	}


--[[--------------------------< T I T L E _ T Y P E S >--------------------------------------------------------

Here we map a template's CitationClass to TitleType (default values for |type= parameter)

]]

local title_types = {
	['medya-notları'] = 'Medya notları',
	['DVD-notları'] = 'Medya notları',
	['harita'] = 'Harita',
	['podcast'] = 'Podcast',
	['basın-açıklaması'] = 'Basın açıklaması',
	['tez'] = 'Tez',
	['e-posta'] = 'E-posta',
	}


--[[--------------------------< E R R O R _ C O N D I T I O N S >----------------------------------------------

Error condition table

The following contains a list of IDs for various error conditions defined in the code.  For each ID, we specify a
text message to display, an error category to include, and whether the error message should be wrapped as a hidden comment.

Anchor changes require identical changes to matching anchor in Help:CS1 errors

]]

local error_conditions = {
	['erişimtarihi-eksik-url'] = {
		message = '<code style="'..code_style..'">&#124;erişim-tarihi=</code> kullanmak için <code style="'..code_style..'">&#124;url=</code> gerekiyor',
		anchor = 'accessdate_missing_url',
		category = 'URL adresi olmayan erişimtarihli kaynak kullanan sayfalar',
		hidden = true },
	['arşiv-eksik-tarih'] = {
		message = '<code style="'..code_style..'">&#124;arşiv-url=</code> kullanmak için <code style="'..code_style..'">&#124;arşiv-tarihi=</code> gerekiyor',
		anchor = 'archive_missing_date',
		category = 'Arşivurl kaynak hataları bulunan sayfalar',
		hidden = false },
	['arşiv-eksik-url'] = {
		message = '<code style="'..code_style..'">&#124;arşiv-url=</code> kullanmak için <code style="'..code_style..'">&#124;url=</code> gerekiyor',
		anchor = 'archive_missing_url',
		category = 'Arşivurl kaynak hataları bulunan sayfalar',
		hidden = false },
	['arşiv-url'] = {
		message = '<code style="'..code_style..'">&#124;arşiv-url=</code> hatalı: $1',
		anchor = 'archive_url',
		category = 'Arşivurl kaynak hataları bulunan sayfalar',
		hidden = false },
	['arxiv-eksik'] = {
		message = '<code style="'..code_style..'">&#124;arxiv=</code> gerekiyor',
		anchor = 'arxiv_missing',
		category = 'KB1 hataları: arXiv',											-- same as bad arxiv
		hidden = false },
	['arxiv-param-desteklenmeyen'] = {
		message = 'arXiv kaynağında desteklenmeyen parametre(ler)',
		anchor = 'arxiv_params_not_supported',
		category = 'KB1 hataları: arXiv',											-- same as bad arxiv
		hidden = false },
	['kötü-arxiv'] = {
		message = '<code style="'..code_style..'">&#124;arxiv=</code> değerini kontrol edin',
		anchor = 'bad_arxiv',
		category = 'KB1 hataları: arXiv',
		hidden = false },
	['kötü-asin'] = {
		message = '<code style="'..code_style..'">&#124;asin=</code> değerini kontrol edin',
		anchor = 'bad_asin',
		category ='KB1 hataları: ASIN',
		hidden = false },
	['kötü-bibcode'] = {
		message = '<code style="'..code_style..'">&#124;bibcode=</code> $1 kontrol edin',
		anchor = 'bad_bibcode',
		category = 'KB1 hataları: bibcode',
		hidden = false },
	['kötü-biorxiv'] = {
		message = '<code style="'..code_style..'">&#124;biorxiv=</code> değerini kontrol edin',
		anchor = 'bad_biorxiv',
		category = 'KB1 hataları: bioRxiv',
		hidden = false },
	['kötü-citeseerx'] = {
		message = '<code style="'..code_style..'">&#124;citeseerx=</code> değerini kontrol edin',
		anchor = 'bad_citeseerx',
		category = 'KB1 hataları: citeseerx',
		hidden = false },
	['kötü-tarih'] = {
		message = 'Tarih değerini gözden geçirin: <code style="'..code_style..'">$1</code>',
		anchor = 'bad_date',
		category = 'KB1 hataları: tarihler',
		hidden = false },
	['kötü-doi'] = {
		message = '<code style="'..code_style..'">&#124;doi=</code> değerini kontrol edin',
		anchor = 'bad_doi',
		category = 'KB1 hataları: DOI',
		hidden = false },
	['kötü-hdl'] = {
		message = '<code style="'..code_style..'">&#124;hdl=</code> değerini kontrol edin',
		anchor = 'bad_hdl',
		category = 'KB1 hataları: HDL',
		hidden = false },
	['kötü-isbn'] = {
		message = '<code style="'..code_style..'">&#124;isbn=</code> değerini kontrol edin: $1',
		anchor = 'bad_isbn',
		category = 'KB1 hataları: ISBN',
		hidden = false },
	['kötü-ismn'] = {
		message = '<code style="'..code_style..'">&#124;ismn=</code> değerini kontrol edin',
		anchor = 'bad_ismn',
		category = 'KB1 hataları: ISMN',
		hidden = false },
	['kötü-issn'] = {
		message = '<code style="'..code_style..'">&#124;$1issn=</code> değerini kontrol edin',
		anchor = 'bad_issn',
		category = 'KB1 hataları: ISSN',
		hidden = false },
	['kötü-jfm'] = {
		message = '<code style="'..code_style..'">&#124;jfm=</code> değerini kontrol edin',
		anchor = 'bad_jfm',
		category = 'KB1 hataları: JFM',
		hidden = false },
	['kötü-lccn'] = {
		message = '<code style="'..code_style..'">&#124;lccn=</code> değerini kontrol edin',
		anchor = 'bad_lccn',
		category = 'KB1 hataları: LCCN',
		hidden = false },
	['kötü-usenet_-id'] = {
		message = '<code style="'..code_style..'">&#124;mesaj-id=</code> değerini kontrol edin',
		anchor = 'bad_message_id',
		category = 'KB1 hataları: mesaj-id',
		hidden = false },
	['kötü-mr'] = {
		message = '<code style="'..code_style..'">&#124;mr=</code> değerini kontrol edin',
		anchor = 'bad_mr',
		category = 'KB1 hataları: MR',
		hidden = false },
	['kötü-ol'] = {
		message = '<code style="'..code_style..'">&#124;ol=</code> değerini kontrol edin',
		anchor = 'bad_ol',
		category = 'KB1 hataları: OL',
		hidden = false },
	['kötü-parambağı'] = {															-- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link=
		message = '<code style="'..code_style..'">&#124;$1=</code> değerini kontrol edin',
		anchor = 'bad_paramlink',
		category = 'KB1 hataları: parametre bağları',
		hidden = false },
	['kötü-pmc'] = {
		message = '<code style="'..code_style..'">&#124;pmc=</code> değerini kontrol edin',
		anchor = 'bad_pmc',
		category = 'KB1 hataları: PMC',
		hidden = false },
	['kötü-pmid'] = {
		message = '<code style="'..code_style..'">&#124;pmid=</code> değerini kontrol edin',
		anchor = 'bad_pmid',
		category = 'KB1 hataları: PMID',
		hidden = false },
	['kötü-oclc'] = {
		message = '<code style="'..code_style..'">&#124;oclc=</code> değerini kontrol edin',
		anchor = 'bad_oclc',
		category = 'KB1 hataları: OCLC',
		hidden = false },
	['kötü-ssrn'] = {
		message = '<code style="'..code_style..'">&#124;ssrn=</code> değerini kontrol edin',
		anchor = 'bad_ssrn',
		category = 'KB1 hataları: SSRN',
		hidden = false },
	['kötü-url'] = {
		message = '$1 değerini kontrol edin',
		anchor = 'bad_url',
		category = 'URL hataları olan sayfalar',
		hidden = false },
	['kötü-zbl'] = {
		message = '<code style="'..code_style..'">&#124;zbl=</code> değerini kontrol edin',
		anchor = 'bad_zbl',
		category = 'KB1 hataları: ZBL',
		hidden = false },
	['bilgisiz-url-eksik-başlık'] = {
		message = '$1 eksik başlık',
		anchor = 'bare_url_missing_title',
		category = 'Bilgisiz URL adresine sahip kaynaklı sayfalar',
		hidden = false },
	['biorxiv-eksik'] = {
		message = '<code style="'..code_style..'">&#124;biorxiv=</code> gerekiyor',
		anchor = 'biorxiv_missing',
		category = 'KB1 hataları: bioRxiv',										-- same as bad bioRxiv
		hidden = false },
	['kısım-görme'] = {
		message = '<code style="'..code_style..'">&#124;$1=</code> görmezden gelindi',
		anchor = 'chapter_ignored',
		category = 'KB1 hataları: kısım parametresi',
		hidden = false },
	['kaynak-eksik-başlık'] = {
		message = 'Eksik ya da boş <code style="'..code_style..'">&#124;$1=</code>',
		anchor = 'citation_missing_title',
		category = 'Başlığı olmayan kaynak içeren sayfalar',
		hidden = false },
	['citeseerx-eksik'] = {
		message = '<code style="'..code_style..'">&#124;citeseerx=</code> gerekli',
		anchor = 'citeseerx_missing',
		category = 'KB1 hataları: citeseerx',										-- same as bad citeseerx
		hidden = false },
	['web-kaynağı-url'] = {															-- this error applies to cite web and to cite podcast
		message = 'Eksik ya da boş <code style="'..code_style..'">&#124;url=</code>',
		anchor = 'cite_web_url',
		category = 'URL adresi olmayan web kaynağı kullanan sayfalar',
		hidden = true },
	['katkıcı-görme'] = {
		message = '<code style="'..code_style..'">&#124;katkıcı=</code> görmezden gelindi',
		anchor = 'contributor_ignored',
		category = 'KB1 hataları: katkıcı',
		hidden = false },
	['katkıcı-eksik-gerekli-param'] = {
		message = '<code style="'..code_style..'">&#124;katkıcı=</code> kullanmak için <code style="'..code_style..'">&#124;$1=</code> gerekiyor',
		anchor = 'contributor_missing_required_param',
		category = 'KB1 hataları: katkıcı',
		hidden = false },
	['kaldırılmış-param'] = {
		message = 'Kaynak kaldırılmış <code style="'..code_style..'">&#124;$1=</code> parametresini kullanıyor',
		anchor = 'deprecated_params',
		category = 'KB1 hataları: kaldırılmış parametreler',
		hidden = false },
	['boş-kaynak'] = {
		message = 'Boş kaynak',
		anchor = 'empty_citation',
		category = 'Boş kaynak içeren sayfalar',
		hidden = false },
	['adı-eksik-soyadı'] = {
		message = '$1 <code style="'..code_style..'">&#124;ad$2=</code> eksik <code style="'..code_style..'">&#124;soyadı$2=</code>',
		anchor = 'first_missing_last',
		category = 'KB1 hataları: yazar veya editörü eksik',
		hidden = false },
	['biçimi-eksik-url'] = {
		message = '<code style="'..code_style..'">&#124;$1=</code> kullanmak için <code style="'..code_style..'">&#124;$2=</code> gerekiyor',
		anchor = 'format_missing_url',
		category = 'Biçimi olup URL adresi olmayan kaynak kullanan sayfalar',
		hidden = true },
	['geçersiz-param-değeri'] = {
		message = 'Geçersiz <code style="'..code_style..'">&#124;$1=$2</code>',
		anchor = 'invalid_param_val',
		category = 'KB1 hataları: geçersiz parametre değeri',
		hidden = false },
	['görünmez-kar'] = {
		message = '$3. harf sırasında bulunan $2 parametresi $1 içeriyor',
		anchor = 'invisible_char',
		category = 'KB1 hataları: görünmeyen karakterler',
		hidden = false },
	['eksik-ad'] = {
		message = '$1 eksik <code style="'..code_style..'">&#124;soyadı$2=</code>',
		anchor = 'missing_name',
		category = 'KB1 hataları: yazar veya editörü eksik',
		hidden = false },
	['param-erişimi-gerektiren-param'] = {
		message = '<code style="'..code_style..'">&#124;$1-erişimi=</code> kullanmak için <code style="'..code_style..'">&#124;$1=</code> gerekiyor',
		anchor = 'param_access_requires_param',
		category = 'KB1 hataları: parametre erişimi',
		hidden = false },
	['dış-bağı-olan-param'] = {
		message = '<code style="'..code_style..'">$1</code> dış bağlantı',
		anchor = 'param_has_ext_link',
		category = 'KB1 hataları: dış bağlantılar',
		hidden = false },
	['parametre-görme'] = {
		message = 'Bilinmeyen parametre <code style="'..code_style..'">&#124;$1=</code> görmezden gelindi',
		anchor = 'parameter_ignored',
		category = 'Desteklenmeyen parametre içeren kaynak kullanan sayfalar',
		hidden = false },
	['parametre-görme-öneri'] = {
		message = 'Bilinmeyen parametre <code style="'..code_style..'">&#124;$1=</code> görmezden gelindi (<code style="'..code_style..'">&#124;$2=</code> kullanımı öneriliyor)',
		anchor = 'parameter_ignored_suggest',
		category = 'Desteklenmeyen parametre içeren kaynak kullanan sayfalar',
		hidden = false },
	['gereksiz-param'] = {
		message = 'Birden fazla $1 kullanıldı',
		anchor = 'redundant_parameters',
		category = 'Gereksiz parametre içeren kaynak kullanan sayfalar',
		hidden = false },
	['yazı-görme'] = {
		message = '"$1" yazısı görmezden gelindi',
		anchor = 'text_ignored',
		category = 'Adlandırılmamış parametreli kaynak kullanan sayfalar',
		hidden = false },
	['çeviri-eksik-başlık'] = {
		message = '<code style="'..code_style..'">&#124;çeviri-$1=</code> kullanmak için <code style="'..code_style..'">&#124;$1=</code> gerekiyor',
		anchor = 'trans_missing_title',
		category = 'KB1 hataları: çeviri başlık',
		hidden = false },
	['vancouver'] = {
		message = 'Vancouver tarzı hatası: $1',
		anchor = 'vancouver',
		category = 'KB1 hataları: Vancouver tarzı',
		hidden = false },
	['url-içinde-vikibağı'] = {
		message = 'URL–vikibağı karışıklığı',										-- uses ndash
		anchor = 'wikilink_in_url',
		category = 'KB1 hataları: URL–vikibağı karışıklığı',							-- uses ndash
		hidden = false },
	}


--[[--------------------------< I D _ H A N D L E R S >--------------------------------------------------------

The following contains a list of values for various defined identifiers.  For each identifier we specify a
variety of information necessary to properly render the identifier in the citation.

	parameters: a list of parameter aliases for this identifier
	link: Wikipedia article name
	q: wikidata q number for the identifier
	label: the alternate name to apply to link
	mode: 	'manual' when there is a specific function in the code to handle the identifier;
			'external' for identifiers that link outside of Wikipedia;
	prefix: the first part of a url that will be concatenated with a second part which usually contains the identifier
	encode: true if uri should be percent encoded; otherwise false
	COinS: identifier link or keyword for use in COinS:
		for identifiers registered at info-uri.info use: info:....
		for identifiers that have COinS keywords, use the keyword: rft.isbn, rft.issn, rft.eissn
		for others make a url using the value in prefix, use the keyword: pre (not checked; any text other than 'info' or 'rft' works here)
		set to nil to leave the identifier out of the COinS
	separator: character or text between label and the identifier in the rendered citation
	access: use this parameter to set the access level for all instances of this identifier.
			the value must be a valid access level for an identifier (see ['id-access'] in this file).
	custom_access: to enable custom access level for an identifier, set this parameter
			to the parameter that should control it (normally 'id-access')
]]

local id_handlers = {
	['ARXIV'] = {
		parameters = {'arxiv', 'eprint'},
		link = 'arXiv',
		q = 'Q118398',
		label = 'arXiv',
		mode = 'manual',
		prefix = '//arxiv.org/abs/', 											-- protocol relative tested 2013-09-04
		encode = false,
		COinS = 'info:arxiv',
		separator = ':',
		access = 'free',														-- free to read
	},
	['ASIN'] = {
		parameters = { 'asin', 'ASIN' },
		link = 'Amazon Standart Kimlik Numarası',
		q = 'Q1753278',
		label = 'ASIN',
		mode = 'manual',
		prefix = '//www.amazon.',
		COinS = nil,															-- no COinS for this id (needs thinking on implementation because |asin-tld=)
		separator = '&nbsp;',
		encode = false;
	},
	['BIBCODE'] = {
		parameters = {'bibcode'},
		link = 'Bibcode',
		q = 'Q25754',
		label = 'Bibcode',
		mode = 'manual',
		prefix = 'http://adsabs.harvard.edu/abs/',
		encode = false,
		COinS = 'info:bibcode',
		separator = ':',
		custom_access = 'bibcode-access',
	},
	['BIORXIV'] = {
		parameters = {'biorxiv'},
		link = 'bioRxiv',
		q = 'Q19835482',
		label = 'bioRxiv',
		mode = 'manual',
		prefix = '//doi.org/10.1101/',
		COinS = 'pre',															-- use prefix value
		access = 'free',														-- free to read
		encode = true,
		separator = '&nbsp;',
	},
	['CITESEERX'] = {
		parameters = {'citeseerx'},
		link = 'CiteSeerX',
		q = 'Q2715061',
		label = 'CiteSeerX',
		mode = 'manual',														-- manual for custom validation of the "doi"
		prefix = '//citeseerx.ist.psu.edu/viewdoc/summary?doi=',
		COinS =  'pre',															-- use prefix value
		access = 'free',														-- free to read
		encode = true,
		separator = '&nbsp;',
	},
	['DOI'] = {
		parameters = { 'doi', 'DOI' },
		link = 'Sayısal nesne tanımlayıcısı',
		q = 'Q25670',
		label = 'doi',
		mode = 'manual',
		prefix = '//doi.org/',
		COinS = 'info:doi',
		separator = ':',
		encode = true,
		custom_access = 'doi-access',
	},
	['EISSN'] = {
		parameters = {'eissn', 'EISSN'},
		link = 'Uluslararası Standart Süreli Yayın Numarası#Elektronik ISSN',
		q = 'Q46339674',
		label = 'eISSN',
		mode = 'manual',
		prefix = '//www.worldcat.org/issn/',
		COinS = 'rft.eissn',
		encode = false,
		separator = '&nbsp;',
	},
	['HDL'] = {
		parameters = { 'hdl', 'HDL' },
		link = 'Handle Sistemi',
		q = 'Q3126718',
		label = 'hdl',
		mode = 'manual',
		prefix = '//hdl.handle.net/',
		COinS = 'info:hdl',
		separator = ':',
		encode = true,
		custom_access = 'hdl-access',
	},
	['ISBN'] = {
		parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},
		link = 'Uluslararası Standart Kitap Numarası',
		q = 'Q33057',
		label = 'ISBN',
		mode = 'manual',
		prefix = 'Special:BookSources/',
		COinS = 'rft.isbn',
		separator = '&nbsp;',
	},
	['ISMN'] = {
		parameters = {'ismn', 'ISMN'},
		link = 'Uluslararası Standart Müzik Numarası',
		q = 'Q1666938',
		label = 'ISMN',
		mode = 'manual',
		prefix = '',															-- not currently used;
		COinS = 'nil',															-- nil because we can't use pre or rft or info:
		separator = '&nbsp;',
	},
	['ISSN'] = {
		parameters = {'issn', 'ISSN'},
		link = 'Uluslararası Standart Süreli Yayın Numarası',
		q = 'Q131276',
		label = 'ISSN',
		mode = 'manual',
		prefix = '//www.worldcat.org/issn/',
		COinS = 'rft.issn',
		encode = false,
		separator = '&nbsp;',
	},
	['JFM'] = {
		parameters = {'jfm', 'JFM'},
		link = 'Zentralblatt MATH',
		q = '',
		label = 'JFM',
		mode = 'manual',
		prefix = '//zbmath.org/?format=complete&q=an:',
		COinS = 'pre',															-- use prefix value
		encode = true,
		separator = '&nbsp;',
	},
	['JSTOR'] = {
		parameters = {'jstor', 'JSTOR'},
		link = 'JSTOR',
		q = 'Q1420342',
		label = 'JSTOR',
		mode = 'external',
		prefix = '//www.jstor.org/stable/', 									-- protocol relative tested 2013-09-04
		COinS = 'pre',															-- use prefix value
		encode = false,
		separator = '&nbsp;',
		custom_access = 'jstor-access',
	},
	['LCCN'] = {
		parameters = {'LCCN', 'lccn'},
		link = 'Kongre Kütüphanesi Kontrol Numarası',
		q = 'Q620946',
		label = 'LCCN',
		mode = 'manual',
		prefix = '//lccn.loc.gov/', 											-- protocol relative tested 2015-12-28
		COinS = 'info:lccn',													-- use prefix value
		encode = false,
		separator = '&nbsp;',
	},
	['MR'] = {
		parameters = {'MR', 'mr'},
		link = 'Mathematical Reviews',
		q = 'Q211172',
		label = 'MR',
		mode = 'manual',
		prefix = '//www.ams.org/mathscinet-getitem?mr=', 						-- protocol relative tested 2013-09-04
		COinS = 'pre',															-- use prefix value
		encode = true,
		separator = '&nbsp;',
	},
	['OCLC'] = {
		parameters = {'OCLC', 'oclc'},
		link = 'OCLC',
		q = 'Q190593',
		label = 'OCLC',
		mode = 'manual',
		prefix = '//www.worldcat.org/oclc/',
		COinS = 'info:oclcnum',
		encode = true,
		separator = '&nbsp;',
	},
	['OL'] = {
		parameters = { 'ol', 'OL' },
		link = 'Open Library',
		q = 'Q1201876',
		label = 'OL',
		mode = 'manual',
		prefix = '//openlibrary.org/',
		COinS = nil,															-- no COinS for this id (needs thinking on implementation because /authors/books/works/OL)
		separator = '&nbsp;',
		encode = true,
		custom_access = 'ol-access',
	},
	['OSTI'] = {
		parameters = {'OSTI', 'osti'},
		link = 'Bilimsel ve Teknik Bilgi Dairesi',
		q = 'Q2015776',
		label = 'OSTI',
		mode = 'external',
		prefix = '//www.osti.gov/energycitations/product.biblio.jsp?osti_id=',	-- protocol relative tested 2013-09-04
		COinS = 'pre',															-- use prefix value
		encode = true,
		separator = '&nbsp;',
		custom_access = 'osti-access',
	},
	['PMC'] = {
		parameters = {'PMC', 'pmc'},
		link = 'PubMed',
		q = 'Q229883',
		label = 'PMC',
		mode = 'manual',
		prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',
		suffix = " ",
		COinS = 'pre',															-- use prefix value
		encode = true,
		separator = '&nbsp;',
		access = 'free',														-- free to read
	},
	['PMID'] = {
		parameters = {'PMID', 'pmid'},
		link = 'PubMed#PubMed tanımlayıcısı',
		q = '',
		label = 'PMID',
		mode = 'manual',
		prefix = '//www.ncbi.nlm.nih.gov/pubmed/',
		COinS = 'info:pmid',
		encode = false,
		separator = '&nbsp;',
	},
	['RFC'] = {
		parameters = {'RFC', 'rfc'},
		link = 'Yorumlar İçin Talep',
		q = 'Q212971',
		label = 'RFC',
		mode = 'external',
		prefix = '//tools.ietf.org/html/rfc',
		COinS = 'pre',															-- use prefix value
		encode = false,
		separator = '&nbsp;',
		access = 'free',														-- free to read
	},
	['SSRN'] = {
		parameters = {'SSRN', 'ssrn'},
		link = 'Sosyal Bilimler Araştırma Ağı',
		q = 'Q7550801',
		label = 'SSRN',
		mode = 'manual',
		prefix = '//ssrn.com/abstract=', 										-- protocol relative tested 2013-09-04
		COinS = 'pre',															-- use prefix value
		encode = true,
		separator = '&nbsp;',
		access = 'free',														-- always free to read
	},
	['USENETID'] = {
		parameters = {'message-id'},
		link = 'Usenet',
		q = 'Q193162',
		label = 'Usenet:',
		mode = 'manual',
		prefix = 'news:',
		encode = false,
		COinS = 'pre',															-- use prefix value
		separator = '&nbsp;',
	},
	['ZBL'] = {
		parameters = {'ZBL', 'zbl'},
		link = 'Zentralblatt MATH',
		q = 'Q190269',
		label = 'Zbl',
		mode = 'manual',
		prefix = '//zbmath.org/?format=complete&q=an:',
		COinS = 'pre',															-- use prefix value
		encode = true,
		separator = '&nbsp;',
	},
	}


return 	{
	aliases = aliases,
	special_case_translation = special_case_translation,
	defaults = defaults,
	date_names = date_names,
	error_conditions = error_conditions,
	id_handlers = id_handlers,
	keywords = keywords,
	stripmarkers=stripmarkers,
	invisible_chars = invisible_chars,
	indic_script = indic_script,
	maint_cats = maint_cats,
	messages = messages,
	presentation = presentation,
	prop_cats = prop_cats,
	script_lang_codes = script_lang_codes,
	lang_code_remap = lang_code_remap,
	lang_name_remap = lang_name_remap,
	title_types = title_types,
	uncategorized_namespaces = uncategorized_namespaces,
	uncategorized_subpages = uncategorized_subpages,
	templates_using_volume = templates_using_volume,
	templates_using_issue = templates_using_issue,
	templates_not_using_page = templates_not_using_page,
	}