Modul:Citation/CS1/Configuration: Pabidaan ralatan
Konten dihapus Konten ditambahkan
Kadada kasimpulan babakan |
sKadada kasimpulan babakan |
||
Baris 1:
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 >------------------------------
Baris 23 ⟶ 29:
local messages = {
['archived-dead'] = '
['archived-not-dead'] = '$1
['archived-missing'] = '
['archived'] = '
['by'] = '
['cartography'] = '
['editor'] = 'ed.',
['editors'] = '
['edition'] = '(edisi ke-$1
['episode'] = 'Episode ke-$1',
['et al'] = 'et al.',
['in'] = '
['inactive'] = '
['inset'] = '$1 inset',
['interview'] = '
['lay summary'] = '
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1',
['original'] = '
['published'] = ' (
['retrieved'] = '
['season'] = '
['section'] = '§ $1',
['sections'] = '§§ $1',
['series'] = '
['translated'] = '
['type'] = ' ($1)', -- for titletype
['written'] = '
['vol'] = '$1 Vol. $2', -- $1 is sepc; bold journal style volume is in presentation{}
Baris 60 ⟶ 66:
['nopp'] = '$1 $2'; -- page(s) without prefix; $1 is sepc
['p-prefix'] = "$1
['pp-prefix'] = "$1
['j-page(s)'] = ': $1', -- same for page and pages
Baris 69 ⟶ 75:
['j-sheets'] = ': Sheets $1',
['subscription'] = '<span
'[[Kategori:Halaman yang mengandung pranala ke konten yang hanya dapat diakses dengan berlangganan]]',
['registration']='<span
'[[Kategori:Halaman dengan rujukan atau sumber yang hanya dapat diakses dengan masuk log]]',
['language'] = '(
['via'] = " – via $1",
['event'] = '
['minutes'] = '
['parameter-separator'] = ', ',
['parameter-final-separator'] = ',
['parameter-pair-separator'] = '
-- Determines the location of the help page
['help page link'] = '
['help page label'] = '
-- Internal errors (should only occur if configuration is bad)
Baris 94 ⟶ 100:
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare url found but origin indicator is nil or empty',
}
Baris 144 ⟶ 115:
-- .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
['hidden-error'] = '<span
['visible-error'] = '<span
['accessdate'] = '<span class="reference-accessdate">$1$2</span>', -- to allow editors to hide accessdate using personal css
Baris 155 ⟶ 125:
['cite-id'] = '<cite id="$1" class="$2">$3</cite>'; -- for use when |ref= is set
['format'] = ' <span
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
-- narrow no-break space   may work better than nowrap css. Or not? browser support?
['
['free'] = '[[File:Lock-green.svg|9px|link=|alt=alt=Dapat diakses gratis|Dapat diakses gratis]]',
['registration'] =
['limited'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt=Akses gratis dibatasi (uji coba), biasanya perlu berlangganan|Akses gratis dibatasi (uji coba), biasanya perlu berlangganan]]',
['subscription'] =
['italic-title'] = "''$1''",
['kern-left'] = '<span
['kern-right'] = '$1<span
-- these for simple wikilinked titles [["text]], [[text"]] and [["text"]]
-- span wraps entire wikilink
['kern-wl-left'] = '<span
['kern-wl-right'] = '<span
['kern-wl-both'] = '<span
['nowrap1'] = '<span class="nowrap">$1</span>', -- for nowrapping an item: <span ...>yyyy-mm-dd</span>
['nowrap2'] = '<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;"> </span></span>', -- Note: Using display: none on the COinS span breaks some clients
['parameter'] = '<code
['ps_cs1'] = '.'; -- cs1 style postscript (terminal) character
['ps_cs2'] = ''; -- cs2 style postscript (terminal) character (empty string)
Baris 221 ⟶ 188:
['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},
['At'] = 'at',
['Authors'] = {'authors', 'people', 'host', 'credits'},
['BookTitle'] = {'book-title', 'booktitle'},
['Cartography'] = 'cartography',
Baris 239 ⟶ 206:
['DF'] = 'df',
['DisplayAuthors'] = {'display-authors', 'displayauthors'},
['DisplayEditors'] = {'display-editors', 'displayeditors'},
['Docket'] = 'docket',
['DoiBroken'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date'},
Baris 255 ⟶ 219:
['Inset'] = 'inset',
['Issue'] = {'issue', 'number'},
['
['Language'] = {'language', 'in', 'lang'},
['LastAuthorAmp'] = {'last-author-amp', 'lastauthoramp'},
['LayDate'] = {'lay-date', 'laydate'},
Baris 323 ⟶ 288:
['AuthorList-First'] = {"first#", "given#", "author-first#", "author#-first"},
['AuthorList-Last'] = {"last#", "author#", "surname#", "author-last#", "author#-last", "subject#"
['AuthorList-Link'] = {"authorlink#", "author-link#", "author#-link", "subjectlink#", "author#link", "subject-link#", "subject#-link", "subject#link"},
['AuthorList-Mask'] = {"author-mask#", "authormask#", "author#mask", "author#-mask"},
Baris 358 ⟶ 323:
local special_case_translation = {
['AuthorList'] =
['ContributorList'] =
['EditorList'] =
['InterviewerList'] =
['TranslatorList'] =
['authors'] =
['
}
Baris 407 ⟶ 366:
local date_names = {
['en'] = { -- English
['long'] = {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12}
['short'] = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12}
['season'] = {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23}
['named'] = {['Christmas']=99}
},
['local'] = { -- replace these English date names with the local language equivalents
['long'] = {['
['short'] = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['
['season'] = {['
['named'] = {['
},
['local_digits'] = {['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.local_digits) 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
Baris 497 ⟶ 413:
['contribution'] = {'afterword', 'foreword', 'introduction', 'preface'}, -- generic contribution titles that are rendered unquoted in the 'chapter' position
['date-format'] = {'dmy', 'dmy-all', 'mdy', 'mdy-all', 'ymd', 'ymd-all'},
['url-access'] = {'subscription', 'limited', 'registration'}, -- access level of a URL (subscription required, limited access, free registration required), free to read by default
['id-access'] = {'free'}, -- access level of an identifier (free to read), subscription required (or no full text) by default
Baris 522 ⟶ 437:
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
Baris 548 ⟶ 466:
}
-- 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 extended A8E0–A8FF – https://unicode.org/charts/PDF/UA8E0.pdf
-- plus the not-necessarily Indic scripts for Sinhala and Burmese:
-- 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]';
Baris 580 ⟶ 497:
local script_lang_codes = {
'am', 'ar', 'be', 'bg', 'bn', 'bs', 'dv', 'el', 'fa',
'
'mk', 'ml', 'mn', 'mr', 'my
'sr
};
Baris 594 ⟶ 511:
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
['
}
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
['
}
--[[--------------------------< M A I N T E N A N C E _ C A T E G O R I E S >----------------------------------
Baris 620 ⟶ 531:
local maint_cats = {
['ASIN'] = '
['
['
['
['
['disp_auth_ed'] = 'Pemeliharaan CS1: Tampilkan $1', -- $1 is authors or editors; gets value from special_case_translation table
['editors'] = 'Pemeliharaan CS1: Menggunakan parameter penyunting',
['
['
['
['extra_text'] = '
['extra_text_names'] = '
['ignore_isbn_err'] = '
['interviewers'] = 'Pemeliharaan CS1: Menggunakan parameter pewawancara',
['
['mult_names'] = 'Pemeliharaan CS1: Banyak nama: $1', -- $1 is <name>s list; gets value from special_case_translation table
['
['
['
['untitled'] = 'Pemeliharaan CS1: Terbitan berkala tanpa judul',
}
Baris 649 ⟶ 561:
local prop_cats = {
['foreign_lang_source'] = 'CS1 sumber berbahasa $1
['foreign_lang_source_2'] = 'CS1
['script'] = 'CS1
['script_with_name'] = 'CS1 uses $1-language script ($2)', -- |script-title=xx: has matching category; $1 is language name, $2 is ISO639-1 code
['jul_greg_uncertainty'] = 'CS1:
}
Baris 665 ⟶ 576:
local title_types = {
['AV-media-notes'] = '
['interview'] = '
['mailinglist'] = '
['map'] = '
['podcast'] = 'Podcast',
['pressrelease'] = '
['report'] = '
['techreport'] = '
['thesis'] = '
}
Baris 690 ⟶ 601:
local error_conditions = {
accessdate_missing_url = {
message = 'Parameter <code
anchor = 'accessdate_missing_url',
category = '
hidden =
archive_missing_date = {
message = 'Parameter <code
anchor = 'archive_missing_date',
category = '
hidden = false },
archive_missing_url = {
message = 'Parameter <code
anchor = 'archive_missing_url',
category = '
hidden = false },
archive_url = {
message = 'Parameter <code
anchor = 'archive_url',
category = '
hidden = false },
arxiv_missing = {
message = 'Membutuhkan parameter <code
anchor = 'arxiv_missing',
category = '
hidden = false },
arxiv_params_not_supported = {
message = '
anchor = 'arxiv_params_not_supported',
category = '
hidden = false },
bad_arxiv = {
message = '
anchor = 'bad_arxiv',
category = '
hidden =
bad_asin = {
message = '
anchor = 'bad_asin',
category ='
hidden = false },
bad_bibcode = {
message = '
anchor = 'bad_bibcode',
category = '
hidden = false },
bad_biorxiv = {
message = '
anchor = 'bad_biorxiv',
category = '
hidden = false },
bad_citeseerx = {
message = '
anchor = 'bad_citeseerx',
category = '
hidden = false },
bad_date = {
message = '
anchor = 'bad_date',
category = '
hidden =
bad_doi = {
message = '
anchor = 'bad_doi',
category = '
hidden = false },
bad_hdl = {
message = '
anchor = 'bad_hdl',
category = '
hidden = false },
bad_isbn = {
message = '
anchor = 'bad_isbn',
category = '
hidden = false },
bad_ismn = {
message = '
anchor = 'bad_ismn',
category = '
hidden = false },
bad_issn = {
message = '
anchor = 'bad_issn',
category = '
hidden = false },
bad_jfm = {
message = '
anchor = 'bad_jfm',
category = '
hidden = false },
bad_lccn = {
message = '
anchor = 'bad_lccn',
category = '
hidden = false },
bad_usenet_id = {
message = '
anchor = 'bad_message_id',
category = '
hidden = false },
bad_mr = {
message = '
anchor = 'bad_mr',
category = '
hidden = false },
bad_ol = {
message = '
anchor = 'bad_ol',
category = '
hidden = false },
bad_paramlink = { -- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link=
message = '
anchor = 'bad_paramlink',
category = '
hidden = false },
bad_pmc = {
message = '
anchor = 'bad_pmc',
category = '
hidden = false },
bad_pmid = {
message = '
anchor = 'bad_pmid',
category = '
hidden = false },
bad_oclc = {
message = '
anchor = 'bad_oclc',
category = '
hidden = false },
bad_ssrn = {
message = '
anchor = 'bad_ssrn',
category = '
hidden = false },
bad_url = {
message = '
anchor = 'bad_url',
category = '
hidden = false },
bad_zbl = {
message = '
anchor = 'bad_zbl',
category = '
hidden = false },
bare_url_missing_title = {
message = '$1
anchor = 'bare_url_missing_title',
category = '
hidden = false },
biorxiv_missing = {
message = 'Membutuhkan parameter <code
anchor = 'biorxiv_missing',
category = '
hidden = false },
chapter_ignored = {
message = 'Parameter <code
anchor = 'chapter_ignored',
category = '
hidden = false },
citation_missing_title = {
message = '
anchor = 'citation_missing_title',
category = '
hidden = false },
citeseerx_missing = {
message = 'Membutuhkan parameter <code
anchor = 'citeseerx_missing',
category = '
hidden = false },
cite_web_url = { -- this error applies to cite web and to cite podcast
message = '
anchor = 'cite_web_url',
category = '
hidden =
contributor_ignored = {
message = 'Parameter <code
anchor = 'contributor_ignored',
category = '
hidden =
contributor_missing_required_param = {
message = 'Parameter <code
anchor = 'contributor_missing_required_param',
category = '
hidden = false },
deprecated_params = {
message = '
anchor = 'deprecated_params',
category = '
hidden = false },
empty_citation = {
message = '
anchor = 'empty_citation',
category = '
hidden = false },
first_missing_last = {
message = 'Parameter <code
anchor = 'first_missing_last',
category = 'Galat CS1
hidden =
format_missing_url = {
message = 'Parameter <code
anchor = 'format_missing_url',
category = '
hidden =
invalid_param_val = {
message = '
anchor = 'invalid_param_val',
category = '
hidden = false },
invisible_char = {
message = '$1
anchor = 'invisible_char',
category = '
hidden = false },
missing_name = {
message = '
anchor = 'missing_name',
category = 'Galat CS1
hidden = false },
param_access_requires_param = {
message = 'Parameter <code
anchor = 'param_access_requires_param',
category = '
hidden = false },
param_has_ext_link = {
message = '
anchor = 'param_has_ext_link',
category = '
hidden = false },
parameter_ignored = {
message = '
anchor = 'parameter_ignored',
category = '
hidden =
parameter_ignored_suggest = {
message = '
anchor = 'parameter_ignored_suggest',
category = '
hidden =
redundant_parameters = {
message = '
anchor = 'redundant_parameters',
category = '
hidden =
text_ignored = {
message = '
anchor = 'text_ignored',
category = '
hidden = false },
trans_missing_title = {
message = 'Parameter <code
anchor = 'trans_missing_title',
category = '
hidden = false },
vancouver = {
message = '
anchor = 'vancouver',
category = '
hidden = false },
wikilink_in_url = {
message = '
anchor = 'wikilink_in_url',
category = '
hidden = false },
}
Baris 1.065 ⟶ 905:
separator = ':',
access = 'free', -- free to read
['ASIN'] = {
parameters = { 'asin', 'ASIN' },
Baris 1.076 ⟶ 916:
separator = ' ',
encode = false;
['BIBCODE'] = {
parameters = {'bibcode'},
Baris 1.088 ⟶ 928:
separator = ':',
custom_access = 'bibcode-access',
['BIORXIV'] = {
parameters = {'biorxiv'},
Baris 1.100 ⟶ 940:
encode = true,
separator = ' ',
['CITESEERX'] = {
parameters = {'citeseerx'},
Baris 1.112 ⟶ 952:
encode = true,
separator = ' ',
['DOI'] = {
parameters = { 'doi', 'DOI' },
Baris 1.124 ⟶ 964:
encode = true,
custom_access = 'doi-access',
['EISSN'] = {
parameters = {'eissn', 'EISSN'},
Baris 1.135 ⟶ 975:
encode = false,
separator = ' ',
['HDL'] = {
parameters = { 'hdl', 'HDL' },
Baris 1.147 ⟶ 987:
encode = true,
custom_access = 'hdl-access',
['ISBN'] = {
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},
Baris 1.157 ⟶ 997:
COinS = 'rft.isbn',
separator = ' ',
['ISMN'] = {
parameters = {'ismn', 'ISMN'},
Baris 1.167 ⟶ 1.007:
COinS = 'nil', -- nil because we can't use pre or rft or info:
separator = ' ',
['ISSN'] = {
parameters = {'issn', 'ISSN'},
Baris 1.178 ⟶ 1.018:
encode = false,
separator = ' ',
['JFM'] = {
parameters = {'jfm', 'JFM'},
Baris 1.189 ⟶ 1.029:
encode = true,
separator = ' ',
['JSTOR'] = {
parameters = {'jstor', 'JSTOR'},
Baris 1.201 ⟶ 1.041:
separator = ' ',
custom_access = 'jstor-access',
['LCCN'] = {
parameters = {'LCCN', 'lccn'},
Baris 1.212 ⟶ 1.052:
encode = false,
separator = ' ',
['MR'] = {
parameters = {'MR', 'mr'},
Baris 1.223 ⟶ 1.063:
encode = true,
separator = ' ',
['OCLC'] = {
parameters = {'OCLC', 'oclc'},
Baris 1.234 ⟶ 1.074:
encode = true,
separator = ' ',
['OL'] = {
parameters = { 'ol', 'OL' },
Baris 1.246 ⟶ 1.086:
encode = true,
custom_access = 'ol-access',
['OSTI'] = {
parameters = {'OSTI', 'osti'},
Baris 1.253 ⟶ 1.093:
label = 'OSTI',
mode = 'external',
prefix = '//www.osti.gov/energycitations/product.biblio
COinS = 'pre', -- use prefix value
encode = true,
separator = ' ',
custom_access = 'osti-access',
['PMC'] = {
parameters = {'PMC', 'pmc'},
Baris 1.271 ⟶ 1.111:
separator = ' ',
access = 'free', -- free to read
['PMID'] = {
parameters = {'PMID', 'pmid'},
Baris 1.282 ⟶ 1.122:
encode = false,
separator = ' ',
['RFC'] = {
parameters = {'RFC', 'rfc'},
Baris 1.294 ⟶ 1.134:
separator = ' ',
access = 'free', -- free to read
['SSRN'] = {
parameters = {'SSRN', 'ssrn'},
Baris 1.306 ⟶ 1.146:
separator = ' ',
access = 'free', -- always free to read
['USENETID'] = {
parameters = {'message-id'},
Baris 1.317 ⟶ 1.157:
COinS = 'pre', -- use prefix value
separator = ' ',
['ZBL'] = {
parameters = {'ZBL', 'zbl'},
Baris 1.328 ⟶ 1.168:
encode = true,
separator = ' ',
}
return {
Baris 1.341 ⟶ 1.178:
date_names = date_names,
error_conditions = error_conditions,
id_handlers = id_handlers,
keywords = keywords,
|