Jump to content

Module:Citation/CS1/Configuration: Difference between revisions

Synch from sandbox;
m>Trappist the monk
(Synch from sandbox;)
m>Trappist the monk
(Synch from sandbox;)
Line 14: Line 14:
]]
]]
local uncategorized_namespaces = { 'User', 'Talk', 'User_talk', 'Wikipedia_talk', 'File_talk', 'Template_talk',
local uncategorized_namespaces = { 'User', 'Talk', 'User_talk', 'Wikipedia_talk', 'File_talk', 'Template_talk',
'Help_talk', 'Category_talk', 'Portal_talk', 'Book_talk', 'Draft', 'Draft_talk', 'Education_Program_talk',  
'Help_talk', 'Category_talk', 'Portal_talk', 'Book_talk', 'Draft', 'Draft_talk', 'Education_Program_talk',
'Module_talk', 'MediaWiki_talk' };
'Module_talk', 'MediaWiki_talk' };


Line 37: Line 37:
['cartography'] = 'Cartography by $1',
['cartography'] = 'Cartography by $1',
['editor'] = 'ed.',
['editor'] = 'ed.',
['editors'] = 'eds.',  
['editors'] = 'eds.',
['edition'] = '($1 ed.)',  
['edition'] = '($1 ed.)',
['episode'] = 'Episode $1',
['episode'] = 'Episode $1',
['et al'] = 'et al.',  
['et al'] = 'et al.',
['in'] = 'In', -- edited works
['in'] = 'In', -- edited works
['inactive'] = 'inactive',
['inactive'] = 'inactive',
['inset'] = '$1 inset',
['inset'] = '$1 inset',
['interview'] = ' Interview with $1', -- cite interview when |type= not specified
['interview'] = 'Interview with $1',
['interview-type'] = ' $1 with $2', -- cite interview when |type= specified
['lay summary'] = 'Lay summary',
['lay summary'] = 'Lay summary',
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1',
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1',
Line 51: Line 50:
['published'] = ' (published $1)',
['published'] = ' (published $1)',
['retrieved'] = 'Retrieved $1',
['retrieved'] = 'Retrieved $1',
['season'] = 'Season $1',  
['season'] = 'Season $1',
['section'] = '§ $1',
['section'] = '§ $1',
['sections'] = '§§ $1',
['sections'] = '§§ $1',
Line 78: Line 77:
['subscription'] = '<span style="font-size:90%; color:#555">(subscription required (<span title="Sources are not required to be available online. Online sources do not have to be freely available. The site may require a paid subscription." style="border-bottom:1px dotted;cursor:help">help</span>))</span>' ..
['subscription'] = '<span style="font-size:90%; color:#555">(subscription required (<span title="Sources are not required to be available online. Online sources do not have to be freely available. The site may require a paid subscription." style="border-bottom:1px dotted;cursor:help">help</span>))</span>' ..
'[[Category:Pages containing links to subscription-only content]]',  
'[[Category:Pages containing links to subscription-only content]]',
['registration']='<span style="font-size:90%; color:#555">(registration required (<span title="Sources are not required to be available online. Online sources do not have to be freely available. The site may require registration." style="border-bottom:1px dotted;cursor:help">help</span>))</span>' ..
['registration']='<span style="font-size:90%; color:#555">(registration required (<span title="Sources are not required to be available online. Online sources do not have to be freely available. The site may require registration." style="border-bottom:1px dotted;cursor:help">help</span>))</span>' ..
'[[Category:Pages with login required references or sources]]',
'[[Category:Pages with login required references or sources]]',
['language'] = '(in $1)',  
['language'] = '(in $1)',
['via'] = " &ndash; via $1",
['via'] = " &ndash; via $1",
['event'] = 'Event occurs at',
['event'] = 'Event occurs at',
['minutes'] = 'minutes in',  
['minutes'] = 'minutes in',
['parameter-separator'] = ', ',
['parameter-separator'] = ', ',
Line 127: Line 126:
['format'] = ' <span style="font-size:85%;">($1)</span>', -- for |format=, |chapter-format=, etc
['format'] = ' <span style="font-size:85%;">($1)</span>', -- for |format=, |chapter-format=, etc
['free to read'] = '<span class="plainlinks">$1</span><span style="margin-left:.1em">[[File:Free-to-read lock 75.svg|9px|link=|free to read]]</span>',
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
['free'] = '<span class="plainlinks nowrap">$1<span style="margin-left:0.1em">[[File:Lock-green.svg|9px|link=|alt=Freely accessible|Freely accessible]]</span></span>',
['registration'] = '<span class="plainlinks nowrap">$1<span style="margin-left:0.1em">[[File:Lock-yellow.svg|9px|link=|alt=Free registration required|Free registration required]]</span></span>',
['limited'] = '<span class="plainlinks nowrap">$1<span style="margin-left:0.1em">[[File:Lock-yellow.svg|9px|link=|alt=Free access subject to limited trial, subscription normally required|Free access subject to limited trial, subscription normally required]]</span></span>',
['subscription'] = '<span class="plainlinks nowrap">$1<span style="margin-left:0.1em">[[File:Lock-red.svg|9px|link=|alt=Paid subscription required|Paid subscription required]]</span></span>',
['italic-title'] = "''$1''",
['italic-title'] = "''$1''",
Line 198: Line 201:
['Inset'] = 'inset',
['Inset'] = 'inset',
['Issue'] = {'issue', 'number'},
['Issue'] = {'issue', 'number'},
['Interviewers'] = {'interviewer', 'interviewers'},
['Language'] = {'language', 'in'},
['Language'] = {'language', 'in'},
['LastAuthorAmp'] = {'last-author-amp', 'lastauthoramp'},
['LastAuthorAmp'] = {'last-author-amp', 'lastauthoramp'},
Line 214: Line 218:
['Network'] = 'network',
['Network'] = 'network',
['NoPP'] = {'no-pp', 'nopp'},
['NoPP'] = {'no-pp', 'nopp'},
['NoTracking'] = {'template-doc-demo', 'template doc demo', 'no-cat', 'nocat',  
['NoTracking'] = {'template-doc-demo', 'template doc demo', 'no-cat', 'nocat',
'no-tracking', 'notracking'},
'no-tracking', 'notracking'},
['Number'] = 'number', -- this case only for cite techreport
['Number'] = 'number', -- this case only for cite techreport
['OrigYear'] = {'orig-year', 'origyear'},
['OrigYear'] = {'orig-year', 'origyear'},
['Others'] = {'others', 'interviewer', 'interviewers'},
['Others'] = 'others',
['Page'] = {'p', 'page'},
['Page'] = {'p', 'page'},
['Pages'] = {'pp', 'pages'},
['Pages'] = {'pp', 'pages'},
Line 259: Line 263:
['TransTitle'] = {'trans-title', 'trans_title'},
['TransTitle'] = {'trans-title', 'trans_title'},
['URL'] = {'url', 'URL'},
['URL'] = {'url', 'URL'},
['UrlAccess'] = {'url-access'},
['Vauthors'] = 'vauthors',
['Vauthors'] = 'vauthors',
['Veditors'] = 'veditors',
['Veditors'] = 'veditors',
Line 285: Line 290:
['TranslatorList-Mask'] = {'translator-mask#', 'translator#-mask'},
['TranslatorList-Mask'] = {'translator-mask#', 'translator#-mask'},
}
}
--[[--------------------------< 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 = {
['AuthorList'] = "authors list", -- these for multiple names maint categories
['ContributorList'] = "contributors list",
['EditorList'] = "editors list",
['TranslatorList'] = "translators list",
['authors'] = "authors", -- used in get_display_authors_editors()
['editors'] = "editors",
}


--[[--------------------------< D E F A U L T S >--------------------------------------------------------------
--[[--------------------------< D E F A U L T S >--------------------------------------------------------------
Line 306: Line 329:
]]
]]


local templates_using_volume = {'citation', 'audio-visual', 'book', 'conference', 'encyclopaedia', 'interview', 'journal', 'magazine', 'map', 'news', 'report', 'techreport'}
local templates_using_volume = {'citation', 'audio-visual', 'book', 'conference', 'encyclopaedia', 'interview', 'journal', 'magazine', 'map', 'news', 'report', 'techreport', 'thesis'}
local templates_using_issue = {'citation', 'conference', 'episode', 'interview', 'journal', 'magazine', 'map', 'news'}
local templates_using_issue = {'citation', 'conference', 'episode', 'interview', 'journal', 'magazine', 'map', 'news'}
local templates_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'}
local templates_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'}
Line 321: Line 344:
['yes_true_y'] = {'yes', 'true', 'y'}, -- ignore-isbn-error, last-author-amp, no-tracking, nopp, registration, subscription
['yes_true_y'] = {'yes', 'true', 'y'}, -- 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
-- ['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
['deadurl'] = {'yes', 'true', 'y', 'no', 'unfit', 'usurped', 'bot: unknown'},
['deadurl'] = {'yes', 'true', 'y', 'no', 'unfit', 'usurped', 'bot: unknown'},
['mode'] = {'cs1', 'cs2'},
['mode'] = {'cs1', 'cs2', 'mla'},
['name-list-format'] = {'vanc'},
['name-list-format'] = {'vanc'},
['contribution'] = {'afterword', 'foreword', 'introduction', 'preface'}, -- generic contribution titles that are rendered unquoted in the 'chapter' position
['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'}
['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
}
}


Line 402: Line 427:
['date_format'] = 'CS1 maint: Date format',
['date_format'] = 'CS1 maint: Date format',
['date_year'] = 'CS1 maint: Date and year',
['date_year'] = 'CS1 maint: Date and year',
['disp_auth_ed'] = 'CS1 maint: display-$1', -- $1 is authors or editors
['disp_auth_ed'] = 'CS1 maint: display-$1', -- $1 is authors or editors; gets value from special_case_translation table
['editors'] = 'CS1 maint: Uses editors parameter',
['editors'] = 'CS1 maint: Uses editors parameter',
['embargo'] = 'CS1 maint: PMC embargo expired',
['embargo'] = 'CS1 maint: PMC embargo expired',
Line 410: Line 435:
['ignore_isbn_err'] = 'CS1 maint: Ignored ISBN errors',
['ignore_isbn_err'] = 'CS1 maint: Ignored ISBN errors',
['missing_pipe'] = 'CS1 maint: Missing pipe',
['missing_pipe'] = 'CS1 maint: Missing pipe',
['mult_names'] = 'CS1 maint: Multiple names: $1', -- $1 is authors or editors
['mult_names'] = 'CS1 maint: Multiple names: $1', -- $1 is <name>s list; gets value from special_case_translation table
['unfit'] = 'CS1 maint: Unfit url',
['unfit'] = 'CS1 maint: Unfit url',
['unknown_lang'] = 'CS1 maint: Unrecognized language',
['unknown_lang'] = 'CS1 maint: Unrecognized language',
Line 439: Line 464:
local title_types = {
local title_types = {
['AV-media-notes'] = 'Media notes',
['AV-media-notes'] = 'Media notes',
['DVD-notes'] = 'Media notes',
['interview'] = 'Interview', -- special case for cite interview  TODO: make cite interview not need special cases
['interview'] = '(Interview)', -- special case for cite interview  TODO: make cite interview not need special cases
['mailinglist'] = 'Mailing list',
['mailinglist'] = 'Mailing list',
['map'] = 'Map',
['map'] = 'Map',
Line 506: Line 530:
anchor = 'bad_bibcode',
anchor = 'bad_bibcode',
category = 'CS1 errors: bibcode',
category = 'CS1 errors: bibcode',
hidden = false },
bad_biorxiv = {
message = 'Check <code style="'..code_style..'">&#124;biorxiv=</code> value',
anchor = 'bad_biorxiv',
category = 'CS1 errors: biorxiv',
hidden = false },
bad_citeseerx = {
message = 'Check <code style="'..code_style..'">&#124;citeseerx=</code> value',
anchor = 'bad_citeseerx',
category = 'CS1 errors: citeseerx',
hidden = false },
hidden = false },
bad_date = {
bad_date = {
Line 646: Line 680:
anchor = 'missing_name',
anchor = 'missing_name',
category = 'CS1 errors: missing author or editor',
category = 'CS1 errors: missing author or editor',
hidden = false },
param_access_requires_param = {
message = '<code style="'..code_style..'">&#124;$1-access=</code> requires <code style="'..code_style..'">&#124;$1=</code>',
anchor = 'param_access_requires_param',
category = 'CS1 errors: param-access',
hidden = false },
hidden = false },
param_has_ext_link = {
param_has_ext_link = {
Line 707: Line 746:
set to nil to leave the identifier out of the COinS
set to nil to leave the identifier out of the COinS
separator: character or text between label and the identifier in the rendered citation
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 = {
local id_handlers = {
['ARXIV'] = {
['ARXIV'] = {
parameters = {'arxiv', 'ARXIV', 'eprint'},  
parameters = {'arxiv', 'ARXIV', 'eprint'},
link = 'arXiv',
link = 'arXiv',
label = 'arXiv',
label = 'arXiv',
Line 719: Line 762:
COinS = 'info:arxiv',
COinS = 'info:arxiv',
separator = ':',
separator = ':',
free=true, -- free to read
access = 'free', -- free to read
},
},
['ASIN'] = {
['ASIN'] = {
parameters = { 'asin', 'ASIN' },  
parameters = { 'asin', 'ASIN' },
link = 'Amazon Standard Identification Number',
link = 'Amazon Standard Identification Number',
label = 'ASIN',
label = 'ASIN',
Line 732: Line 775:
},
},
['BIBCODE'] = {
['BIBCODE'] = {
parameters = {'bibcode', 'BIBCODE'},  
parameters = {'bibcode','BIBCODE'},
link = 'Bibcode',
link = 'Bibcode',
label = 'Bibcode',
label = 'Bibcode',
Line 741: Line 784:
COinS = 'info:bibcode',
COinS = 'info:bibcode',
separator = ':',
separator = ':',
custom_access = 'bibcode-access',
},
['BIORXIV'] = {
parameters = {'biorxiv'},
link = 'bioRxiv',
label = 'bioRxiv',
mode = 'manual',
prefix = '//dx.doi.org/10.1101/',
COinS = 'pre', -- use prefix value
access = 'free', -- free to read
encode = true,
separator = '&nbsp;',
},
['CITESEERX'] = {
parameters = {'citeseerx'},
link = 'CiteSeerX',
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'] = {
['DOI'] = {
Line 751: Line 817:
separator = ':',
separator = ':',
encode = true,
encode = true,
custom_access = 'doi-access',
},
},
['EISSN'] = {
['EISSN'] = {
parameters = {'eissn', 'EISSN'},  
parameters = {'eissn', 'EISSN'},
link = 'International_Standard_Serial_Number#Electronic_ISSN',
link = 'International_Standard_Serial_Number#Electronic_ISSN',
label = 'eISSN',
label = 'eISSN',
Line 771: Line 838:
separator = ':',
separator = ':',
encode = true,
encode = true,
custom_access = 'hdl-access',
},
},
['ISBN'] = {
['ISBN'] = {
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},  
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},
link = 'International Standard Book Number',
link = 'International Standard Book Number',
label = 'ISBN',
label = 'ISBN',
Line 782: Line 850:
},
},
['ISMN'] = {
['ISMN'] = {
parameters = {'ismn', 'ISMN'},  
parameters = {'ismn', 'ISMN'},
link = 'International Standard Music Number',
link = 'International Standard Music Number',
label = 'ISMN',
label = 'ISMN',
mode = 'manual',
mode = 'manual',
prefix = '', -- not currently used;  
prefix = '', -- not currently used;
COinS = 'nil', -- nil because we can't use pre or rft or info:
COinS = 'nil', -- nil because we can't use pre or rft or info:
separator = '&nbsp;',
separator = '&nbsp;',
},
},
['ISSN'] = {
['ISSN'] = {
parameters = {'issn', 'ISSN'},  
parameters = {'issn', 'ISSN'},
link = 'International Standard Serial Number',
link = 'International Standard Serial Number',
label = 'ISSN',
label = 'ISSN',
Line 801: Line 869:
},
},
['JFM'] = {
['JFM'] = {
parameters = {'jfm', 'JFM'},  
parameters = {'jfm', 'JFM'},
link = 'Jahrbuch über die Fortschritte der Mathematik',
link = 'Jahrbuch über die Fortschritte der Mathematik',
label = 'JFM',
label = 'JFM',
Line 811: Line 879:
},
},
['JSTOR'] = {
['JSTOR'] = {
parameters = {'jstor', 'JSTOR'},  
parameters = {'jstor', 'JSTOR'},
link = 'JSTOR',
link = 'JSTOR',
label = 'JSTOR',
label = 'JSTOR',
Line 819: Line 887:
encode = false,
encode = false,
separator = '&nbsp;',
separator = '&nbsp;',
custom_access = 'jstor-access',
},
},
['LCCN'] = {
['LCCN'] = {
parameters = {'LCCN', 'lccn'},  
parameters = {'LCCN', 'lccn'},
link = 'Library of Congress Control Number',
link = 'Library of Congress Control Number',
label = 'LCCN',
label = 'LCCN',
Line 831: Line 900:
},
},
['MR'] = {
['MR'] = {
parameters = {'MR', 'mr'},  
parameters = {'MR', 'mr'},
link = 'Mathematical Reviews',
link = 'Mathematical Reviews',
label = 'MR',
label = 'MR',
Line 841: Line 910:
},
},
['OCLC'] = {
['OCLC'] = {
parameters = {'OCLC', 'oclc'},  
parameters = {'OCLC', 'oclc'},
link = 'OCLC',
link = 'OCLC',
label = 'OCLC',
label = 'OCLC',
Line 859: Line 928:
separator = '&nbsp;',
separator = '&nbsp;',
encode = true,
encode = true,
custom_access = 'ol-access',
},
},
['OSTI'] = {
['OSTI'] = {
parameters = {'OSTI', 'osti'},  
parameters = {'OSTI', 'osti'},
link = 'Office of Scientific and Technical Information',
link = 'Office of Scientific and Technical Information',
label = 'OSTI',
label = 'OSTI',
Line 869: Line 939:
encode = true,
encode = true,
separator = '&nbsp;',
separator = '&nbsp;',
custom_access = 'osti-access',
},
},
['PMC'] = {
['PMC'] = {
parameters = {'PMC', 'pmc'},  
parameters = {'PMC', 'pmc'},
link = 'PubMed Central',
link = 'PubMed Central',
label = 'PMC',
label = 'PMC',
mode = 'manual',
mode = 'manual',
prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',  
prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',
suffix = " ",
suffix = " ",
COinS = 'pre', -- use prefix value
COinS = 'pre', -- use prefix value
encode = true,
encode = true,
separator = '&nbsp;',
separator = '&nbsp;',
free = true,
access = 'free', -- free to read
},
},
['PMID'] = {
['PMID'] = {
parameters = {'PMID', 'pmid'},  
parameters = {'PMID', 'pmid'},
link = 'PubMed Identifier',
link = 'PubMed Identifier',
label = 'PMID',
label = 'PMID',
Line 893: Line 964:
},
},
['RFC'] = {
['RFC'] = {
parameters = {'RFC', 'rfc'},  
parameters = {'RFC', 'rfc'},
link = 'Request for Comments',
link = 'Request for Comments',
label = 'RFC',
label = 'RFC',
Line 901: Line 972:
encode = false,
encode = false,
separator = '&nbsp;',
separator = '&nbsp;',
free = true,
access = 'free', -- free to read
},
},
['SSRN'] = {
['SSRN'] = {
parameters = {'SSRN', 'ssrn'},  
parameters = {'SSRN', 'ssrn'},
link = 'Social Science Research Network',
link = 'Social Science Research Network',
label = 'SSRN',
label = 'SSRN',
Line 912: Line 983:
encode = true,
encode = true,
separator = '&nbsp;',
separator = '&nbsp;',
access = 'free', -- always free to read
},
},
['USENETID'] = {
['USENETID'] = {
Line 924: Line 996:
},
},
['ZBL'] = {
['ZBL'] = {
parameters = {'ZBL', 'zbl'},  
parameters = {'ZBL', 'zbl'},
link = 'Zentralblatt MATH',
link = 'Zentralblatt MATH',
label = 'Zbl',
label = 'Zbl',
Line 937: Line 1,009:
return {
return {
aliases = aliases,
aliases = aliases,
special_case_translation = special_case_translation,
defaults = defaults,
defaults = defaults,
error_conditions = error_conditions,
error_conditions = error_conditions,
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.