32,512
edits
(Synch from sandbox;) |
m (1 revision imported: Modules) |
||
Line 30:
local messages = {
['lay summary'] = 'Lay summary',
['archived-dead'] = 'Archived from $1 on $2',
['archived-missing'] = 'Archived from the original$1 on $2',
['edition'] = '($1 ed.)',
['cartography'] = 'Cartography by $1',
['subscription'] = '<span style="font-size:0.95em; 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:0.95em; 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'] = " – via $1",
['event'] = 'Event occurs at',
['minutes'] = 'minutes in',
['parameter-separator'] = ', ',
['parameter-pair-separator'] = ' and ',
-- Determines the location of the help page
['help page link'] = 'Help:CS1 errors',
['help page label'] = 'help',
-- Internal errors (should only occur if configuration is bad)
['undefined_error'] = 'Called with an undefined error condition',
['unknown_manual_ID'] = 'Unrecognized manual ID mode',
['unknown_ID_mode'] = 'Unrecognized ID mode',
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare url found but origin indicator is nil or empty',
}
Line 118 ⟶ 97:
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like
['format'] = ' <span style="font-size:85%;">($1)</span>', -- for |format=, |chapter-format=, etc
Line 131 ⟶ 107:
['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)
['parameter'] = '<code style="'..code_style..'">|$1=</code>',
Line 141 ⟶ 115:
['trans-italic-title'] = "[''$1'']",
['trans-quoted-title'] = "[$1]",
}
--[[--------------------------< A L I A S E S >----------------------------------------------------------------
Line 161 ⟶ 133:
['At'] = 'at',
['Authors'] = {'authors', 'people', 'host', 'credits'},
['AuthorFormat'] = {'author-format', 'authorformat'}, -- deprecated in favor of NameListFormat;
['AuthorSeparator'] = 'author-separator', -- deprecated
['AuthorNameSeparator'] = 'author-name-separator', -- deprecated
['Began'] = 'began', -- cite episode and cite series
['BookTitle'] = {'book-title', 'booktitle'},
['Callsign'] = {'call-sign', 'callsign'}, -- cite interview
Line 166 ⟶ 142:
['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section'},
['ChapterFormat'] = {'chapter-format', 'contribution-format', 'section-format'};
['ChapterLink'] = {'chapter-link', 'chapterlink'}, -- deprecated; remove after 1 January 2015?
['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'section-url', 'sectionurl'},
['City'] = 'city', -- cite interview
['Class'] = 'class', -- cite arxiv and arxiv identifiers
['Coauthors'] = {'coauthors', 'coauthor'}, -- coauthor and coauthors are deprecated; remove after 1 January 2015?
['Conference'] = {'conference', 'event'},
['ConferenceFormat'] = {'conference-format', 'event-format'},
['ConferenceURL'] = {'conference-url', 'conferenceurl', 'event-url', 'eventurl'},
['Date'] = {'date', 'air-date', 'airdate'},
['DeadURL'] = {'dead-url', 'deadurl'},
['Degree'] = 'degree',
['DisplayAuthors'] = {'display-authors', 'displayauthors'},
['DisplayEditors'] = {'display-editors', 'displayeditors'},
Line 185 ⟶ 159:
['Edition'] = 'edition',
['Editors'] = 'editors',
['EditorFormat'] = {'editor-format', 'editorformat'}, -- deprecated in favor of NameListFormat;
['EditorSeparator'] = 'editor-separator', -- deprecated
['EditorNameSeparator'] = 'editor-name-separator', -- deprecated
['Embargo'] = 'embargo',
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia'}, -- this one only used by citation
['Ended'] = 'ended', -- cite episode and cite series
['Episode'] = 'episode', -- cite serial only TODO: make available to cite episode?
['Format'] = 'format',
Line 206 ⟶ 184:
['Minutes'] = 'minutes',
['Mode'] = 'mode',
['Month'] = 'month', -- deprecated; remove after 1 January 2015?
['NameListFormat'] = {'name-list-format', 'author-format', 'authorformat', 'editor-format', 'editorformat'},
['NameSeparator'] = 'name-separator', -- deprecated
['Network'] = 'network',
['NoPP'] = {'no-pp', 'nopp'},
['NoTracking'] = {'template-doc-demo', 'template doc demo', 'no-cat', 'nocat',
'no-tracking', 'notracking'},
['OrigYear'] = {'orig-year', 'origyear'},
['Others'] = {'others', 'interviewer', 'interviewers'},
Line 217 ⟶ 196:
['Pages'] = {'pp', 'pages'},
['Periodical'] = {'journal', 'newspaper', 'magazine', 'work',
'website', 'periodical', 'encyclopedia', 'encyclopaedia', 'dictionary
['Place'] = {'place', 'location'},
['PPrefix'] = {'p-prefix', 'PPrefix'},
['PPPrefix'] = 'pp-prefix',
['Program'] = 'program', -- cite interview
['PostScript'] = 'postscript',
Line 225 ⟶ 206:
['PublisherName'] = {'publisher', 'distributor', 'institution', 'newsgroup'},
['Quote'] = {'quote', 'quotation'},
['Ref'] = {'ref', 'Ref'},
['RegistrationRequired'] = 'registration',
['Scale'] = 'scale',
['ScriptTitle'] = 'script-title',
['Section'] = 'section',
['Season'] = 'season',
['Sections'] = 'sections', -- cite map only
['Separator'] = 'separator', -- deprecated in favor of Mode
['Series'] = {'series', 'version'},
['SeriesSeparator'] = 'series-separator',
Line 254 ⟶ 235:
['TransTitle'] = {'trans-title', 'trans_title'},
['URL'] = {'url', 'URL'},
['Via'] = 'via',
['Volume'] = 'volume',
['Year'] = 'year',
['AuthorList-First'] = {"
['AuthorList-Last'] = {"
['AuthorList-Link'] = {"
['AuthorList-Mask'] = {"author#-mask
['
['EditorList-Last'] = {"editor#-last", "editor-last#", "editor#-surname", "editor-surname#", "EditorSurname#", "Editor#", "editor#", "editors#"},
['
['
}
--[[--------------------------< D E F A U L T S >--------------------------------------------------------------
-- Default parameter values
]]
local defaults = {
['DeadURL'] = 'yes',
['PPrefix'] = "p. ",
['PPPrefix'] = "pp. ",
}
--[[--------------------------< M A I N T E N A N C E _ C A T E G O R I E S >----------------------------------
Line 375 ⟶ 275:
['english'] = 'CS1 maint: English language specified',
['etal'] = 'CS1 maint: Explicit use of et al.',
['unknown_lang'] = 'CS1 maint: Unrecognized language',
['untitled'] = 'CS1 maint: Untitled periodical',
Line 396 ⟶ 295:
--[[--------------------------< T I T L E _ T Y P E S >--------------------------------------------------------
Here we map a template's CitationClass to TitleType
]]
Line 416 ⟶ 315:
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
Line 425 ⟶ 325:
local error_conditions = {
accessdate_missing_url = {
message = '<code style="'..code_style..'">|
anchor = 'accessdate_missing_url',
category = 'Pages using citations with accessdate and no URL',
hidden = true },
archive_missing_date = {
message = '<code style="'..code_style..'">|
anchor = 'archive_missing_date',
category = 'Pages with archiveurl citation errors',
hidden = false },
archive_missing_url = {
message = '<code style="'..code_style..'">|
anchor = 'archive_missing_url',
category = 'Pages with archiveurl citation errors',
Line 458 ⟶ 358:
anchor = 'bad_asin',
category ='CS1 errors: ASIN',
hidden = false },
bad_authorlink = {
message = 'Check <code style="'..code_style..'">|authorlink=</code> value',
anchor = 'bad_authorlink',
category = 'CS1 errors: authorlink',
hidden = false },
bad_date = {
Line 468 ⟶ 373:
anchor = 'bad_doi',
category = 'CS1 errors: DOI',
hidden = false },
bad_isbn = {
message = 'Check <code style="'..code_style..'">|isbn=</code> value',
anchor = 'bad_isbn',
category = '
hidden = false },
bad_issn = {
message = 'Check <code style="'..code_style..'">|
anchor = 'bad_issn',
category = 'CS1 errors: ISSN',
Line 503 ⟶ 398:
anchor = 'bad_ol',
category = 'CS1 errors: OL',
hidden = false },
bad_pmc = {
Line 518 ⟶ 408:
anchor = 'bad_pmid',
category = 'CS1 errors: PMID',
hidden = false },
bad_url = {
message = 'Check <code style="'..code_style..'">
anchor = 'bad_url',
category = 'Pages with URL errors',
Line 535 ⟶ 420:
hidden = false },
chapter_ignored = {
message = '<code style="'..code_style..'">|
anchor = 'chapter_ignored',
category = 'CS1 errors: chapter ignored',
hidden = false },
citation_missing_title = {
message = 'Missing or empty <code style="'..code_style..'">|
anchor = 'citation_missing_title',
category = 'Pages with citations lacking titles',
Line 553 ⟶ 438:
anchor = 'coauthors_missing_author',
category = 'CS1 errors: coauthors without author',
hidden = false },
deprecated_params = {
Line 568 ⟶ 443:
anchor = 'deprecated_params',
category = 'Pages containing cite templates with deprecated parameters',
hidden =
empty_citation = {
message = 'Empty citation',
anchor = 'empty_citation',
category = 'Pages with empty citations',
hidden = false },
extra_pages = {
message = 'Extra <code style="'..code_style..'">|pages=</code> or <code style="'..code_style..'">|at=</code>',
anchor = 'extra_pages',
category = 'Pages with citations using conflicting page specifications',
hidden = false },
first_missing_last = {
Line 583 ⟶ 463:
anchor = 'format_missing_url',
category = 'Pages using citations with format and no URL',
hidden = true },
implict_etal_editor = {
message = '<code style="'..code_style..'">|displayeditors=</code> suggested',
anchor = 'displayeditors',
category = 'Pages using citations with old-style implicit et al. in editors',
hidden = true },
invalid_param_val = {
Line 588 ⟶ 473:
anchor = 'invalid_param_val',
category = 'CS1 errors: invalid parameter value',
hidden = false },
missing_name = {
Line 598 ⟶ 478:
anchor = 'missing_name',
category = 'CS1 errors: missing author or editor',
hidden = false },
parameter_ignored = {
Line 623 ⟶ 498:
anchor = 'text_ignored',
category = 'Pages with citations using unnamed parameters',
hidden = false },
trans_missing_chapter = {
message = '<code style="'..code_style..'">|trans-chapter=</code> requires <code style="'..code_style..'">|chapter=</code>',
anchor = 'trans_missing_chapter',
category = 'Pages with citations using translated terms without the original',
hidden = false },
trans_missing_title = {
message = '<code style="'..code_style..'">|trans-
anchor = 'trans_missing_title',
category = '
hidden = false },
vancouver = {
Line 635 ⟶ 515:
hidden = false },
wikilink_in_url = {
message = '
anchor = 'wikilink_in_url',
category = 'Pages with citations having wikilinks embedded in URL titles',
hidden = false },
}
Line 653 ⟶ 533:
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: into rft.id
separator: character or text between label and the identifier in the rendered citation
]]
Line 667 ⟶ 543:
label = 'arXiv',
mode = 'manual',
prefix = '//arxiv.org/abs/',
encode = false,
COinS = 'info:arxiv',
Line 677 ⟶ 553:
label = 'ASIN',
mode = 'manual',
separator = ' ',
encode = false;
Line 699 ⟶ 574:
prefix = '//dx.doi.org/',
COinS = 'info:doi',
separator = ':',
encode = true,
Line 729 ⟶ 584:
prefix = 'Special:BookSources/',
COinS = 'rft.isbn',
separator = ' ',
},
Line 756 ⟶ 602:
mode = 'external',
prefix = '//zbmath.org/?format=complete&q=an:',
COinS = '
encode = true,
separator = ' ',
Line 765 ⟶ 611:
label = 'JSTOR',
mode = 'external',
prefix = '//www.jstor.org/stable/',
COinS = '
encode = false,
separator = ' ',
Line 775 ⟶ 621:
label = 'LCCN',
mode = 'manual',
prefix = 'http://lccn.loc.gov/',
COinS = '
encode = false,
separator = ' ',
Line 785 ⟶ 631:
label = 'MR',
mode = 'external',
prefix = '//www.ams.org/mathscinet-getitem?mr=',
COinS = '
encode = true,
separator = ' ',
Line 794 ⟶ 640:
link = 'OCLC',
label = 'OCLC',
mode = '
prefix = '//www.worldcat.org/oclc/',
COinS = 'info:oclcnum',
Line 805 ⟶ 651:
label = 'OL',
mode = 'manual',
separator = ' ',
},
['OSTI'] = {
Line 816 ⟶ 661:
mode = 'external',
prefix = '//www.osti.gov/energycitations/product.biblio.jsp?osti_id=', -- protocol relative tested 2013-09-04
COinS = '
encode = true,
separator = ' ',
Line 824 ⟶ 669:
link = 'PubMed Central',
label = 'PMC',
mode = 'manual', -- changed to support unlinking of PMC identifier when article is embargoed
prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',
suffix = " ",
COinS = '
encode = true,
separator = ' ',
Line 835 ⟶ 680:
link = 'PubMed Identifier',
label = 'PMID',
mode = 'manual', -- changed from external manual to support PMID validation
prefix = '//www.ncbi.nlm.nih.gov/pubmed/',
COinS = 'info:pmid',
Line 847 ⟶ 692:
mode = 'external',
prefix = '//tools.ietf.org/html/rfc',
COinS = '
encode = false,
separator = ' ',
Line 856 ⟶ 701:
label = 'SSRN',
mode = 'external',
prefix = '//ssrn.com/abstract=',
COinS = '
encode = true,
separator = ' ',
Line 868 ⟶ 713:
prefix = 'news:',
encode = false,
COinS = '
separator = ' ',
},
Line 877 ⟶ 722:
mode = 'external',
prefix = '//zbmath.org/?format=complete&q=an:',
COinS = '
encode = true,
separator = ' ',
Line 888 ⟶ 733:
error_conditions = error_conditions,
id_handlers = id_handlers,
maint_cats = maint_cats,
messages = messages,
Line 897 ⟶ 740:
uncategorized_namespaces = uncategorized_namespaces,
uncategorized_subpages = uncategorized_subpages,
}
|