Module:Citation/CS1/Configuration: Difference between revisions

undo nowrap;
m (1 revision imported: Help:Footnotes)
(undo nowrap;)
Line 14:
]]
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',
'Module_talk', 'MediaWiki_talk' };
 
Line 37:
['cartography'] = 'Cartography by $1',
['editor'] = 'ed.',
['editors'] = 'eds.',
['edition'] = '($1 ed.)',
['episode'] = 'Episode $1',
['et al'] = 'et al.',
['in'] = 'In', -- edited works
['inactive'] = 'inactive',
['inset'] = '$1 inset',
['interview'] = ' Interview with $1', -- cite interview when |type= not specified
['interview-type'] = ' $1 with $2', -- cite interview when |type= specified
['lay summary'] = 'Lay summary',
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1',
Line 51 ⟶ 50:
['published'] = ' (published $1)',
['retrieved'] = 'Retrieved $1',
['season'] = 'Season $1',
['section'] = '§ $1',
['sections'] = '§§ $1',
Line 78 ⟶ 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>' ..
'[[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>' ..
'[[Category:Pages with login required references or sources]]',
['language'] = '(in $1)',
['via'] = " &ndash; via $1",
['event'] = 'Event occurs at',
['minutes'] = 'minutes in',
['parameter-separator'] = ', ',
Line 127 ⟶ 126:
['format'] = ' <span style="font-size:85%;">($1)</span>', -- for |format=, |chapter-format=, etc
-- various access levels, for |access=, |doi-access=, |arxiv=, ...
['free to read'] = '<span class="plainlinks">$1</span><span style="margin-left:0.1em">[[File:FreeLock-to-read lock 75green.svg|9px|link=|freealt=Freely toaccessible|Freely readaccessible]]</span></span>',
['registration'] = '<span class="plainlinks">$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">$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">$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''",
Line 198 ⟶ 201:
['Inset'] = 'inset',
['Issue'] = {'issue', 'number'},
['Interviewers'] = {'interviewer', 'interviewers'},
['Language'] = {'language', 'in'},
['LastAuthorAmp'] = {'last-author-amp', 'lastauthoramp'},
Line 214 ⟶ 218:
['Network'] = 'network',
['NoPP'] = {'no-pp', 'nopp'},
['NoTracking'] = {'template-doc-demo', 'template doc demo', 'no-cat', 'nocat',
'no-tracking', 'notracking'},
['Number'] = 'number', -- this case only for cite techreport
['OrigYear'] = {'orig-year', 'origyear'},
['Others'] = {'others', 'interviewer', 'interviewers'},
['Page'] = {'p', 'page'},
['Pages'] = {'pp', 'pages'},
Line 259 ⟶ 263:
['TransTitle'] = {'trans-title', 'trans_title'},
['URL'] = {'url', 'URL'},
['UrlAccess'] = {'url-access'},
['Vauthors'] = 'vauthors',
['Veditors'] = 'veditors',
Line 285 ⟶ 290:
['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 >--------------------------------------------------------------
Line 306 ⟶ 329:
]]
 
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_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'}
Line 321 ⟶ 344:
['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', 'bot: unknown'},
['mode'] = {'cs1', 'cs2', 'mla'},
['name-list-format'] = {'vanc'},
['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
}
 
Line 402 ⟶ 427:
['date_format'] = 'CS1 maint: Date format',
['date_year'] = 'CS1 maint: Date and year',
['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',
['embargo'] = 'CS1 maint: PMC embargo expired',
Line 410 ⟶ 435:
['ignore_isbn_err'] = 'CS1 maint: Ignored ISBN errors',
['missing_pipe'] = 'CS1 maint: Missing pipe',
['mult_names'] = 'CS1 maint: Multiple names: $1', -- $1 is authors<name>s orlist; editorsgets value from special_case_translation table
['unfit'] = 'CS1 maint: Unfit url',
['unknown_lang'] = 'CS1 maint: Unrecognized language',
Line 439 ⟶ 464:
local title_types = {
['AV-media-notes'] = 'Media notes',
['interview'] = '(Interview)', -- special case for cite interview TODO: make cite interview not need special cases
['DVD-notes'] = 'Media notes',
['interview'] = '(Interview)', -- special case for cite interview TODO: make cite interview not need special cases
['mailinglist'] = 'Mailing list',
['map'] = 'Map',
Line 506 ⟶ 530:
anchor = 'bad_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 },
bad_date = {
Line 646 ⟶ 680:
anchor = 'missing_name',
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 },
param_has_ext_link = {
Line 707 ⟶ 746:
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', 'ARXIV', 'eprint'},
link = 'arXiv',
label = 'arXiv',
Line 719 ⟶ 762:
COinS = 'info:arxiv',
separator = ':',
freeaccess =true 'free', -- free to read
},
['ASIN'] = {
parameters = { 'asin', 'ASIN' },
link = 'Amazon Standard Identification Number',
label = 'ASIN',
Line 732 ⟶ 775:
},
['BIBCODE'] = {
parameters = {'bibcode', 'BIBCODE'},
link = 'Bibcode',
label = 'Bibcode',
Line 741 ⟶ 784:
COinS = 'info:bibcode',
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
freeencode = 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
freeencode = true,
separator = '&nbsp;',
},
['DOI'] = {
Line 751 ⟶ 817:
separator = ':',
encode = true,
custom_access = 'doi-access',
},
['EISSN'] = {
parameters = {'eissn', 'EISSN'},
link = 'International_Standard_Serial_Number#Electronic_ISSN',
label = 'eISSN',
Line 771 ⟶ 838:
separator = ':',
encode = true,
custom_access = 'hdl-access',
},
['ISBN'] = {
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},
link = 'International Standard Book Number',
label = 'ISBN',
Line 782 ⟶ 850:
},
['ISMN'] = {
parameters = {'ismn', 'ISMN'},
link = 'International Standard Music Number',
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 = 'International Standard Serial Number',
label = 'ISSN',
Line 801 ⟶ 869:
},
['JFM'] = {
parameters = {'jfm', 'JFM'},
link = 'Jahrbuch über die Fortschritte der Mathematik',
label = 'JFM',
Line 811 ⟶ 879:
},
['JSTOR'] = {
parameters = {'jstor', 'JSTOR'},
link = 'JSTOR',
label = 'JSTOR',
Line 819 ⟶ 887:
encode = false,
separator = '&nbsp;',
custom_access = 'jstor-access',
},
['LCCN'] = {
parameters = {'LCCN', 'lccn'},
link = 'Library of Congress Control Number',
label = 'LCCN',
Line 831 ⟶ 900:
},
['MR'] = {
parameters = {'MR', 'mr'},
link = 'Mathematical Reviews',
label = 'MR',
Line 841 ⟶ 910:
},
['OCLC'] = {
parameters = {'OCLC', 'oclc'},
link = 'OCLC',
label = 'OCLC',
Line 859 ⟶ 928:
separator = '&nbsp;',
encode = true,
custom_access = 'ol-access',
},
['OSTI'] = {
parameters = {'OSTI', 'osti'},
link = 'Office of Scientific and Technical Information',
label = 'OSTI',
Line 869 ⟶ 939:
encode = true,
separator = '&nbsp;',
custom_access = 'osti-access',
},
['PMC'] = {
parameters = {'PMC', 'pmc'},
link = 'PubMed Central',
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
free = true,
},
['PMID'] = {
parameters = {'PMID', 'pmid'},
link = 'PubMed Identifier',
label = 'PMID',
Line 893 ⟶ 964:
},
['RFC'] = {
parameters = {'RFC', 'rfc'},
link = 'Request for Comments',
label = 'RFC',
Line 901 ⟶ 972:
encode = false,
separator = '&nbsp;',
access = 'free', -- free to read
free = true,
},
['SSRN'] = {
parameters = {'SSRN', 'ssrn'},
link = 'Social Science Research Network',
label = 'SSRN',
Line 912 ⟶ 983:
encode = true,
separator = '&nbsp;',
access = 'free', -- always free to read
},
['USENETID'] = {
Line 924 ⟶ 996:
},
['ZBL'] = {
parameters = {'ZBL', 'zbl'},
link = 'Zentralblatt MATH',
label = 'Zbl',
Line 937 ⟶ 1,009:
return {
aliases = aliases,
special_case_translation = special_case_translation,
defaults = defaults,
error_conditions = error_conditions,
Anonymous user