Module:Citation/CS1/Configuration: Difference between revisions

Jump to navigation Jump to search
m
Reverted edits by Abhidevananda (talk) to last revision by Tito Dutta
m (1 revision)
 
m (Reverted edits by Abhidevananda (talk) to last revision by Tito Dutta)
 
(16 intermediate revisions by 2 users not shown)
Line 7: Line 7:
Note: Namespace names should use underscores instead of spaces.
Note: Namespace names should use underscores instead of spaces.
]]
]]
citation_config.uncategorized_namespaces = { 'User', 'Talk', 'User_talk', 'Wikipedia_talk', 'File_talk',  
citation_config.uncategorized_namespaces = { 'User', 'Talk', 'User_talk', 'Wikipedia_talk', 'File_talk', 'Template_talk',
'Template_talk', 'Help_talk', 'Category_talk', 'Portal_talk', 'Book_talk', 'Education_Program_talk', 'Module_talk' };
'Help_talk', 'Category_talk', 'Portal_talk', 'Book_talk', 'Draft', 'Draft_talk', 'Education_Program_talk',  
'Module_talk', 'MediaWiki_talk' };


--[[
--[[
Line 87: Line 88:
     ['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},
     ['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},
     ['At'] = 'at',
     ['At'] = 'at',
     ['Authors'] = {'authors', 'people'},
     ['Authors'] = {'authors', 'people', 'host'},
     ['AuthorFormat'] = {"author-format", "authorformat" },
     ['AuthorFormat'] = {"author-format", "authorformat" },
     ['AuthorSeparator'] = 'author-separator',
     ['AuthorSeparator'] = 'author-separator',
     ['AuthorNameSeparator'] = 'author-name-separator',
     ['AuthorNameSeparator'] = 'author-name-separator',
     ['BookTitle'] = 'booktitle',
     ['BookTitle'] = 'booktitle',
['Callsign'] = 'callsign', -- cite interview
     ['Cartography'] = 'cartography',
     ['Cartography'] = 'cartography',
     ['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section' },
     ['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section', 'notestitle'}, -- notestitle is deprecated used by old cite AV media notes; remove after 1 October 2014;
     ['ChapterLink'] = 'chapterlink',
     ['ChapterLink'] = 'chapterlink',
     ['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'sectionurl' },
     ['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'sectionurl' },
['City'] = 'city', -- cite interview
     ['Coauthors'] = {'coauthors', 'coauthor' },
     ['Coauthors'] = {'coauthors', 'coauthor' },
     ['Conference'] = 'conference',
    ['Cointerviewers'] = 'cointerviewers', -- cite interview
     ['ConferenceURL'] = {'conference-url', 'conferenceurl' },
     ['Conference'] = {'conference', 'event' },
     ['ConferenceURL'] = {'conference-url', 'conferenceurl', 'eventurl' },
     ['Date'] = 'date',
     ['Date'] = 'date',
     ['Day'] = 'day',
     ['Day'] = 'day',
     ['DeadURL'] = 'deadurl',
     ['DeadURL'] = 'deadurl',
    ['Degree'] = 'degree',
     ['DisplayAuthors'] = {"display-authors", "displayauthors"},
     ['DisplayAuthors'] = {"display-authors", "displayauthors"},
     ['DisplayEditors'] = {"display-editors", "displayeditors"},
     ['DisplayEditors'] = {"display-editors", "displayeditors"},
    ['Docket'] = 'docket',
     ['DoiBroken'] = {'doi_inactivedate', 'doi_brokendate', 'DoiBroken'},
     ['DoiBroken'] = {'doi_inactivedate', 'doi_brokendate', 'DoiBroken'},
     ['Edition'] = 'edition',
     ['Edition'] = 'edition',
Line 112: Line 118:
     ['Embargo'] = {'Embargo', 'embargo'},
     ['Embargo'] = {'Embargo', 'embargo'},
     ['Format'] = 'format',
     ['Format'] = 'format',
     ['ID'] = {'id', 'ID', 'docket'},
     ['ID'] = {'id', 'ID', 'publisherid'}, -- publisherid is deprecated; used by old cite AV media notes and old cite DVD notes; remove after 1 October 2014;
     ['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'},
     ['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'},
     ['Inset'] = 'inset',
     ['Inset'] = 'inset',
    ['Interviewer'] = 'interviewer', -- cite interview
     ['Issue'] = {'issue', 'number'},
     ['Issue'] = {'issue', 'number'},
     ['Language'] = {'language', 'in'},
     ['Language'] = {'language', 'in'},
Line 128: Line 135:
     ['NoTracking'] = {"template doc demo", 'nocat',  
     ['NoTracking'] = {"template doc demo", 'nocat',  
         'notracking', "no-tracking"},
         'notracking', "no-tracking"},
     ['OrigYear'] = 'origyear',
     ['OrigYear'] = {'origyear', 'titleyear'}, -- titleyear is deprecated; used in old cite DVD notes; remove after 1 October 2014
     ['Others'] = 'others',
     ['Others'] = {'others', 'artist', 'director'}, -- artist and director are deprecated; used in old cite AV media notes and old cite DVD notes; remove after 1 October 2014
     ['Page'] = {'p', 'page'},
     ['Page'] = {'p', 'page'},
     ['Pages'] = {'pp', 'pages'},
     ['Pages'] = {'pp', 'pages'},
Line 137: Line 144:
     ['PPrefix'] = 'PPrefix',
     ['PPrefix'] = 'PPrefix',
     ['PPPrefix'] = 'PPPrefix',
     ['PPPrefix'] = 'PPPrefix',
['Program'] = 'program', -- cite interview
     ['PostScript'] = 'postscript',
     ['PostScript'] = 'postscript',
     ['PublicationDate'] = {'publicationdate', 'publication-date' },
     ['PublicationDate'] = {'publicationdate', 'publication-date' },
     ['PublicationPlace'] = {'publication-place', 'publicationplace' },
     ['PublicationPlace'] = {'publication-place', 'publicationplace' },
     ['PublisherName'] = {'publisher', 'distributor'},
     ['PublisherName'] = {'publisher', 'distributor', 'institution'},
     ['Quote'] = {'quote', 'quotation'},
     ['Quote'] = {'quote', 'quotation'},
     ['Ref'] = {'ref', 'Ref'},
     ['Ref'] = {'ref', 'Ref'},
Line 157: Line 165:
     ['TimeCaption'] = 'timecaption',
     ['TimeCaption'] = 'timecaption',
     ['Title'] = 'title',
     ['Title'] = 'title',
     ['TitleLink'] = {'titlelink', 'episodelink' },
     ['TitleLink'] = {'titlelink', 'episodelink', 'albumlink' }, -- albumlink is deprecated; used by old cite AV media notes; remove after 1 October 2014
     ['TitleNote'] = 'department',
     ['TitleNote'] = 'department',
     ['TitleType'] = {'type', 'medium'},
     ['TitleType'] = {'type', 'medium'},
Line 172: Line 180:
         "first#", "given#"},
         "first#", "given#"},
     ['AuthorList-Last'] = {"author#-last", "author-last#",  
     ['AuthorList-Last'] = {"author#-last", "author-last#",  
         "last#", "surname#", "Author#", "author#", "authors#"},
         "last#", "surname#", "Author#", "author#", "authors#", "subject#"},
     ['AuthorList-Link'] = {"author#-link", "author-link#",  
     ['AuthorList-Link'] = {"author#-link", "author-link#",  
         "author#link", "authorlink#"},
         "author#link", "authorlink#", "subjectlink#"},
     ['AuthorList-Mask'] = {"author#-mask", "author-mask#",  
     ['AuthorList-Mask'] = {"author#-mask", "author-mask#",  
         "author#mask", "authormask#"},
         "author#mask", "authormask#"},
Line 192: Line 200:
citation_config.defaults = {
citation_config.defaults = {
     ['DeadURL'] = 'yes',
     ['DeadURL'] = 'yes',
    ['PostScript'] = '.',
    ['Separator'] = '.',
     ['AuthorSeparator'] = ';',
     ['AuthorSeparator'] = ';',
     ['EditorSeparator'] = ';',
     ['EditorSeparator'] = ';',
Line 220: Line 226:
message = '<code>&#124;archiveurl=</code> requires <code>&#124;archivedate=</code>',
message = '<code>&#124;archiveurl=</code> requires <code>&#124;archivedate=</code>',
anchor = 'archive_missing_date',
anchor = 'archive_missing_date',
category = 'Pages with archiveurl citation errors‎',
category = 'Pages with archiveurl citation errors',
hidden = false },
hidden = false },
archive_missing_url = {
archive_missing_url = {
message = '<code>&#124;archiveurl=</code> requires <code>&#124;url=</code>',
message = '<code>&#124;archiveurl=</code> requires <code>&#124;url=</code>',
anchor = 'archive_missing_url',
anchor = 'archive_missing_url',
category = 'Pages with archiveurl citation errors‎',
category = 'Pages with archiveurl citation errors',
hidden = false },
hidden = false },
bad_authorlink = {
message = 'Check <code>&#124;authorlink=</code> value',
anchor = 'bad_authorlink',
category = 'CS1 errors: authorlink',
hidden = false },
bad_date = {
message = 'Check date values in: <code>$1</code>',
anchor = 'bad_date',
category = 'CS1 errors: dates',
hidden = true },
bad_doi = {
bad_doi = {
message = 'Check <code>&#124;doi=</code> value',
message = 'Check <code>&#124;doi=</code> value',
Line 241: Line 257:
anchor = 'bad_issn',
anchor = 'bad_issn',
category = 'CS1 errors: ISSN',
category = 'CS1 errors: ISSN',
hidden = false },
bad_lccn = {
message = 'Check <code>&#124;lccn=</code> value',
anchor = 'bad_lccn',
category = 'CS1 errors: LCCN',
hidden = false },
hidden = false },
bad_ol = {
bad_ol = {
Line 246: Line 267:
anchor = 'bad_ol',
anchor = 'bad_ol',
category = 'Pages with OL errors',
category = 'Pages with OL errors',
hidden = false },
bad_pmc = {
message = 'Check <code>&#124;pmc=</code> value',
anchor = 'bad_pmc',
category = 'CS1 errors: PMC',
hidden = false },
bad_pmid = {
message = 'Check <code>&#124;pmid=</code> value',
anchor = 'bad_pmid',
category = 'CS1 errors: PMID',
hidden = false },
hidden = false },
bad_url = {
bad_url = {
Line 255: Line 286:
message = '$1 missing title',
message = '$1 missing title',
anchor = 'bare_url_missing_title',
anchor = 'bare_url_missing_title',
category = 'Pages with citations having bare URLs‎',
category = 'Pages with citations having bare URLs',
hidden = false },
hidden = false },
citation_missing_title = {
citation_missing_title = {
message = 'Missing or empty <code>&#124;title=</code>',
message = 'Missing or empty <code>&#124;title=</code>',
anchor = 'citation_missing_title',
anchor = 'citation_missing_title',
category = 'Pages with citations lacking titles‎',
category = 'Pages with citations lacking titles',
hidden = false },
hidden = false },
cite_web_url = {
cite_web_url = { -- this error applies to cite web and to cite podcast
message = 'Missing or empty <code>&#124;url=</code>',
message = 'Missing or empty <code>&#124;url=</code>',
anchor = 'cite_web_url',
anchor = 'cite_web_url',
category = 'Pages using web citations with no URL‎',
category = 'Pages using web citations with no URL',
hidden = true },
hidden = true },
coauthors_missing_author = {
coauthors_missing_author = {
message = '<code>&#124;coauthors=</code> requires <code>&#124;author=</code>',
message = '<code>&#124;coauthors=</code> requires <code>&#124;author=</code>',
anchor = 'coauthors_missing_author',
anchor = 'coauthors_missing_author',
category = 'CS1 errors: coauthors without author‎',
category = 'CS1 errors: coauthors without author',
hidden = false },
hidden = false },
deprecated_params = {
message = 'Cite uses deprecated parameters',
anchor = 'deprecated_params',
category = 'Pages containing cite templates with deprecated parameters',
hidden = true },
empty_citation = {
empty_citation = {
message = 'Empty citation‎',
message = 'Empty citation',
anchor = 'empty_citation',
anchor = 'empty_citation',
category = 'Pages with empty citations‎',
category = 'Pages with empty citations',
hidden = false },
hidden = false },
extra_pages = {
extra_pages = {
message = 'Extra <code>&#124;pages=</code> or <code>&#124;at=</code>',
message = 'Extra <code>&#124;pages=</code> or <code>&#124;at=</code>',
anchor = 'extra_pages',
anchor = 'extra_pages',
category = 'Pages with citations using conflicting page specifications‎',
category = 'Pages with citations using conflicting page specifications',
hidden = false },
hidden = false },
format_missing_url = {
format_missing_url = {
message = '<code>&#124;format=</code> requires <code>&#124;url=</code>',
message = '<code>&#124;format=</code> requires <code>&#124;url=</code>',
anchor = 'format_missing_url',
anchor = 'format_missing_url',
category = 'Pages using citations with format and no URL‎',
category = 'Pages using citations with format and no URL',
hidden = true },
hidden = true },
implict_etal_author = {
implict_etal_author = {
message = '<code>&#124;displayauthors=</code> suggested',
message = '<code>&#124;displayauthors=</code> suggested',
anchor = 'displayauthors',
anchor = 'displayauthors',
category = 'Pages using citations with old-style implicit et al.',
category = 'Pages using citations with old-style implicit et al.',
hidden = true },
hidden = true },
implict_etal_editor = {
implict_etal_editor = {
message = '<code>&#124;displayeditors=</code> suggested',
message = '<code>&#124;displayeditors=</code> suggested',
anchor = 'displayeditors',
anchor = 'displayeditors',
category = 'Pages using citations with old-style implicit et al.',
category = 'Pages using citations with old-style implicit et al. in editors',
hidden = true },
hidden = true },
parameter_ignored = {
parameter_ignored = {
Line 318: Line 354:
hidden = false },
hidden = false },
trans_missing_chapter = {
trans_missing_chapter = {
message = '<code>&#124;trans-chapter=</code> requires <code>&#124;chapter=</code>',
message = '<code>&#124;trans_chapter=</code> requires <code>&#124;chapter=</code>',
anchor = 'trans_missing_chapter',
anchor = 'trans_missing_chapter',
category = 'Pages with citations using translated terms without the original',
category = 'Pages with citations using translated terms without the original',
hidden = false },
hidden = false },
trans_missing_title = {
trans_missing_title = {
message = '<code>&#124;trans-title=</code> requires <code>&#124;title=</code>',
message = '<code>&#124;trans_title=</code> requires <code>&#124;title=</code>',
anchor = 'trans_missing_title',
anchor = 'trans_missing_title',
category = 'Pages with citations using translated terms without the original',
category = 'Pages with citations using translated terms without the original',
Line 417: Line 453:
         link = 'Library of Congress Control Number',
         link = 'Library of Congress Control Number',
         label = 'LCCN',
         label = 'LCCN',
         mode = 'external',
         mode = 'manual',
         prefix = 'http://lccn.loc.gov/',
         prefix = 'http://lccn.loc.gov/',
         COinS = 'rft.lccn',
         COinS = 'rft.lccn',
Line 477: Line 513:
         link = 'PubMed Identifier',
         link = 'PubMed Identifier',
         label = 'PMID',
         label = 'PMID',
         mode = 'external',
         mode = 'manual', -- changed from external manual to support PMID validation
         prefix = '//www.ncbi.nlm.nih.gov/pubmed/',
         prefix = '//www.ncbi.nlm.nih.gov/pubmed/',
         COinS = 'info:pmid',
         COinS = 'info:pmid',

Navigation menu