Module:Citation/CS1/Configuration
< Module:Citation | CS1
Documentation for this module may be created at Module:Citation/CS1/Configuration/doc
--[[--------------------------< L A N G U A G E >--------------------------------------------------------------
make a language object for the local language; used here for languages and dates
]]
local lang_obj = mw.language.getContentLanguage();
--[[--------------------------< S E T T I N G S >--------------------------------------------------------------
boolean settings used to control various things. these setting located here to make them easy to find
]]
local local_digits_from_mediawiki = false;
local local_date_names_from_mediawiki = false;
local use_identifier_redirects = true;
local local_lang_cat_enable = false;
local date_name_auto_xlate_enable = false;
local date_digit_auto_xlate_enable = false;
local enable_sort_keys = true;
--[[--------------------------< U N C A T E G O R I Z E D _ N A M E S P A C E S >------------------------------]]
local uncategorized_namespaces_t = {[2]=true};
for k, _ in pairs (mw.site.talkNamespaces) do
uncategorized_namespaces_t[k] = true;
end
local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases', '/[^/]*[Ll]og', '/[Aa]rchive'};
local name_space_sort_keys = {
[4] = 'ω',
[10] = 'τ',
[118] = 'Δ',
['other'] = 'ο',
}
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------]]
local messages = {
['agency'] = '$1 $2',
['archived-dead'] = 'Archived from $1 on $2',
['archived-live'] = '$1 from the original on $2',
['archived-unfit'] = 'Archived from the original on ',
['archived'] = 'Archived',
['by'] = 'By',
['cartography'] = 'Cartography by $1',
['editor'] = 'ed.',
['editors'] = 'eds.',
['edition'] = '($1 ed.)',
['episode'] = 'Episode $1',
['et al'] = 'et al.',
['in'] = 'In',
['inactive'] = 'inactive',
['inset'] = '$1 inset',
['interview'] = 'Interviewed by $1',
['mismatch'] = '<code class="cs1-code">|$1=</code> / <code class="cs1-code">|$2=</code> mismatch',
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1',
['notitle'] = 'No title',
['original'] = 'the original',
['origdate'] = ' [$1]',
['published'] = ' (published $1)',
['retrieved'] = 'Retrieved $1',
['season'] = 'Season $1',
['section'] = '§ $1',
['sections'] = '§§ $1',
['series'] = '$1 $2',
['seriesnum'] = 'Series $1',
['translated'] = 'Translated by $1',
['type'] = ' ($1)',
['written'] = 'Written at $1',
['vol'] = '$1 Vol. $2',
['vol-no'] = '$1 Vol. $2, no. $3',
['issue'] = '$1 No. $2',
['art'] = '$1 Art. $2',
['vol-art'] = '$1 Vol. $2, art. $3',
['j-vol'] = '$1 $2',
['j-issue'] = ' ($1)',
['j-article-num'] = ' $1',
['nopp'] = '$1 $2',
['p-prefix'] = "$1 p. $2",
['pp-prefix'] = "$1 pp. $2",
['j-page(s)'] = ': $1',
['sheet'] = '$1 Sheet $2',
['sheets'] = '$1 Sheets $2',
['j-sheet'] = ': Sheet $1',
['j-sheets'] = ': Sheets $1',
['language'] = '(in $1)',
['via'] = " – via $1",
['event'] = 'Event occurs at',
['minutes'] = 'minutes in',
['help page link'] = 'Help:CS1 errors',
['help page label'] = 'help',
['cat wikilink'] = '[[Category:$1]]',
['cat wikilink sk'] = '[[Category:$1|$2]]',
[':cat wikilink'] = '[[:Category:$1|link]]',
['undefined_error'] = 'Called with an undefined error condition',
['unknown_ID_key'] = 'Unrecognized ID key: ',
['unknown_ID_access'] = 'Unrecognized ID access keyword: ',
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare URL found but origin indicator is nil or empty',
['warning_msg_e'] = '<span style="color:#d33">Templates have errors</span>',
['warning_msg_m'] = '<span style="color:#085">Templates have maintenance messages</span>',
}
--[[--------------------------< P R E S E N T A T I O N >------------------------------------------------------]]
local presentation = {
['hidden-error'] = '<span class="cs1-hidden-error citation-comment">$1</span>',
['visible-error'] = '<span class="cs1-visible-error citation-comment">$1</span>',
['hidden-maint'] = '<span class="cs1-maint citation-comment">$1</span>',
['accessdate'] = '<span class="reference-accessdate">$1$2</span>',
['bdi'] = '<bdi$1>$2</bdi>',
['cite'] = '<cite class="$1">$2</cite>',
['cite-id'] = '<cite id="$1" class="$2">$3</cite>',
['format'] = ' <span class="cs1-format">($1)</span>',
['italic-title'] = "''$1''",
['quoted-title'] = '"$1"',
['ps_cs1'] = '.',
['ps_cs2'] = '',
['sep_cs1'] = '.',
['sep_cs2'] = ',',
['parameter'] = '<code class="cs1-code">|$1=</code>',
}
--[[--------------------------< A L I A S E S >--------------------------------------------------------------]]
local aliases = {
['AccessDate'] = {'access-date', 'accessdate'},
['ArchiveDate'] = {'archive-date', 'archivedate'},
['ArchiveURL'] = {'archive-url', 'archiveurl'},
['URL'] = {'url', 'URL'},
['Title'] = 'title',
['Year'] = 'year',
['Date'] = 'date',
['PublisherName'] = {'publisher', 'institution'},
['AuthorList-Last'] = {"last#", "author-last#", "author#-last", "author#"},
['AuthorList-First'] = {"first#", "author-first#", "author#-first", "given#"},
['Periodical'] = {'journal', 'magazine', 'newspaper', 'periodical', 'website', 'work'},
}
--[[--------------------------< I D E N T I F I E R S >------------------------------------------------------]]
-- BU BÖLÜM MANUEL DÜZELTİLMİŞTİR (LUA NIL ERROR ÇÖZÜMÜ)
local id_limits_data_t = {
["doi"] = 200000,
["isbn"] = 9999999999999,
["pmid"] = 99999999,
["pmc"] = 99999999
}
local id_limits_data_load_fail = false;
--[[--------------------------< R E T U R N T A B L E >----------------------------------------------------]]
return {
aliases = aliases,
messages = messages,
presentation = presentation,
id_limits_data_t = id_limits_data_t,
id_limits_data_load_fail = id_limits_data_load_fail,
uncategorized_namespaces_t = uncategorized_namespaces_t,
uncategorized_subpages = uncategorized_subpages,
use_identifier_redirects = use_identifier_redirects,
local_lang_cat_enable = local_lang_cat_enable,
date_name_auto_xlate_enable = date_name_auto_xlate_enable,
date_digit_auto_xlate_enable = date_digit_auto_xlate_enable,
enable_sort_keys = enable_sort_keys,
}