Jump to content

Module:Citation/CS1/Configuration: Difference between revisions

ISSN error detection; Expand uncategorized namespaces; Reg/Sub required msg tweak; Trap coauthors without authors; Hide error messages;
m>Trappist the monk
(Subscription/Registration help; Via cat fix; identifier protocol relative urls; PMC identifier fix; iso639-1 support;)
m>Trappist the monk
(ISSN error detection; Expand uncategorized namespaces; Reg/Sub required msg tweak; Trap coauthors without authors; Hide error messages;)
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', 'User_talk', 'Wikipedia_talk' };
citation_config.uncategorized_namespaces = { 'User', 'Talk', 'User_talk', 'Wikipedia_talk', 'File_talk',
'Template_talk', 'Help_talk', 'Category_talk', 'Portal_talk', 'Book_talk', 'Education_Program_talk', 'Module_talk' };


--[[
--[[
Line 39: Line 40:
   ['et al'] = 'et al.',  
   ['et al'] = 'et al.',  
    
    
  -- include category when 'via' parameter is not used in the citation
   ['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>' ..
   ['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]]',  
   '[[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>' ..
   ['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]]',
   '[[Category:Pages with login required references or sources]]',
    
    
   ['language'] = '(in $1)',  
   ['language'] = '(in $1)',  
   ['via'] = " &ndash; via $1", -- Category removed because via shouldn't add a subscription
   ['via'] = " &ndash; via $1",
   ['event'] = 'Event occurs at',
   ['event'] = 'Event occurs at',
   ['minutes'] = 'minutes in',  
   ['minutes'] = 'minutes in',  
Line 212: Line 212:


citation_config.error_conditions = {
citation_config.error_conditions = {
    accessdate_missing_url = {
accessdate_missing_url = {
        message = '<code>&#124;accessdate=</code> requires <code>&#124;url=</code>',
message = '<code>&#124;accessdate=</code> requires <code>&#124;url=</code>',
        anchor = 'accessdate_missing_url',
anchor = 'accessdate_missing_url',
        category = 'Pages using citations with accessdate and no URL',
category = 'Pages using citations with accessdate and no URL',
        hidden = false },
hidden = true },
    archive_missing_date = {
archive_missing_date = {
        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_doi = {
bad_doi = {
        message = 'Check <code>&#124;doi=</code> value',
message = 'Check <code>&#124;doi=</code> value',
        anchor = 'bad_doi',
anchor = 'bad_doi',
        category = 'Pages with DOI errors',
category = 'Pages with DOI errors',
        hidden = false },
hidden = false },
    bad_isbn = {
bad_isbn = {
        message = 'Check <code>&#124;isbn=</code> value',
message = 'Check <code>&#124;isbn=</code> value',
        anchor = 'bad_isbn',
anchor = 'bad_isbn',
        category = 'Pages with ISBN errors',
category = 'Pages with ISBN errors',
        hidden = false },
hidden = false },
    bad_ol = {
bad_issn = {
        message = 'Check <code>&#124;ol=</code> value',
message = 'Check <code>&#124;issn=</code> value',
        anchor = 'bad_ol',
anchor = 'bad_issn',
        category = 'Pages with OL errors',
category = 'CS1 errors: ISSN',
        hidden = false },
hidden = false },
    bad_url = {
bad_ol = {
        message = 'Check <code>&#124;url=</code> scheme',
message = 'Check <code>&#124;ol=</code> value',
        anchor = 'bad_url',
anchor = 'bad_ol',
        category = 'Pages with URL errors',
category = 'Pages with OL errors',
        hidden = false },
hidden = false },
    bare_url_missing_title = {
bad_url = {
        message = '$1 missing title',
message = 'Check <code>&#124;url=</code> scheme',
        anchor = 'bare_url_missing_title',
anchor = 'bad_url',
        category = 'Pages with citations having bare URLs‎',
category = 'Pages with URL errors',
        hidden = false },
hidden = false },
    citation_missing_title = {
bare_url_missing_title = {
        message = 'Missing or empty <code>&#124;title=</code>',
message = '$1 missing title',
        anchor = 'citation_missing_title',
anchor = 'bare_url_missing_title',
        category = 'Pages with citations lacking titles‎',
category = 'Pages with citations having bare URLs‎',
        hidden = false },
hidden = false },
    cite_web_url = {
citation_missing_title = {
        message = 'Missing or empty <code>&#124;url=</code>',
message = 'Missing or empty <code>&#124;title=</code>',
        anchor = 'cite_web_url',
anchor = 'citation_missing_title',
        category = 'Pages using web citations with no URL‎',
category = 'Pages with citations lacking titles‎',
        hidden = false },
hidden = false },
    empty_citation = {
cite_web_url = {
        message = 'Empty citation‎',
message = 'Missing or empty <code>&#124;url=</code>',
        anchor = 'empty_citation',
anchor = 'cite_web_url',
        category = 'Pages with empty citations‎',
category = 'Pages using web citations with no URL‎',
        hidden = false },
hidden = true },
    extra_pages = {
coauthors_missing_author = {
        message = 'Extra <code>&#124;pages=</code> or <code>&#124;at=</code>',
message = '<code>&#124;coauthors=</code> requires <code>&#124;author=</code>',
        anchor = 'extra_pages',
anchor = 'coauthors_missing_author',
        category = 'Pages with citations using conflicting page specifications‎',
category = 'CS1 errors: coauthors without author‎',
        hidden = false },
hidden = false },
    format_missing_url = {
empty_citation = {
        message = '<code>&#124;format=</code> requires <code>&#124;url=</code>',
message = 'Empty citation‎',
        anchor = 'format_missing_url',
anchor = 'empty_citation',
        category = 'Pages using citations with format and no URL‎',
category = 'Pages with empty citations‎',
        hidden = false },
hidden = false },
    implict_etal_author = {
extra_pages = {
        message = '<code>&#124;displayauthors=</code> suggested',
message = 'Extra <code>&#124;pages=</code> or <code>&#124;at=</code>',
        anchor = 'displayauthors',
anchor = 'extra_pages',
        category = 'Pages using citations with old-style implicit et al.‎',
category = 'Pages with citations using conflicting page specifications‎',
        hidden = false },
hidden = false },
    implict_etal_editor = {
format_missing_url = {
        message = '<code>&#124;displayeditors=</code> suggested',
message = '<code>&#124;format=</code> requires <code>&#124;url=</code>',
        anchor = 'displayeditors',
anchor = 'format_missing_url',
        category = 'Pages using citations with old-style implicit et al.‎',
category = 'Pages using citations with format and no URL‎',
        hidden = false },
hidden = true },
    parameter_ignored = {
implict_etal_author = {
        message = 'Unknown parameter <code>&#124;$1=</code> ignored',
message = '<code>&#124;displayauthors=</code> suggested',
        anchor = 'parameter_ignored',
anchor = 'displayauthors',
        category = 'Pages with citations using unsupported parameters',
category = 'Pages using citations with old-style implicit et al.‎',
        hidden = false },
hidden = true },
    parameter_ignored_suggest = {
implict_etal_editor = {
        message = 'Unknown parameter <code>&#124;$1=</code> ignored (<code>&#124;$2=</code> suggested)',
message = '<code>&#124;displayeditors=</code> suggested',
        anchor = 'parameter_ignored_suggest',
anchor = 'displayeditors',
        category = 'Pages with citations using unsupported parameters',
category = 'Pages using citations with old-style implicit et al.‎',
        hidden = false },
hidden = true },
    redundant_parameters = {
parameter_ignored = {
        message = 'More than one of $1 specified',
message = 'Unknown parameter <code>&#124;$1=</code> ignored',
        anchor = 'redundant_parameters',
anchor = 'parameter_ignored',
        category = 'Pages with citations having redundant parameters',
category = 'Pages with citations using unsupported parameters',
        hidden = false },
hidden = false },
    text_ignored = {
parameter_ignored_suggest = {
        message = 'Text "$1" ignored',
message = 'Unknown parameter <code>&#124;$1=</code> ignored (<code>&#124;$2=</code> suggested)',
        anchor = 'text_ignored',
anchor = 'parameter_ignored_suggest',
        category = 'Pages with citations using unnamed parameters',
category = 'Pages with citations using unsupported parameters',
        hidden = false },
hidden = false },
    trans_missing_chapter = {
redundant_parameters = {
        message = '<code>&#124;trans-chapter=</code> requires <code>&#124;chapter=</code>',
message = 'More than one of $1 specified',
        anchor = 'trans_missing_chapter',
anchor = 'redundant_parameters',
        category = 'Pages with citations using translated terms without the original',
category = 'Pages with citations having redundant parameters',
        hidden = false },
hidden = false },
    trans_missing_title = {
text_ignored = {
        message = '<code>&#124;trans-title=</code> requires <code>&#124;title=</code>',
message = 'Text "$1" ignored',
        anchor = 'trans_missing_title',
anchor = 'text_ignored',
        category = 'Pages with citations using translated terms without the original',
category = 'Pages with citations using unnamed parameters',
        hidden = false },
hidden = false },
    wikilink_in_url = {
trans_missing_chapter = {
        message = 'Wikilink embedded in URL title',
message = '<code>&#124;trans-chapter=</code> requires <code>&#124;chapter=</code>',
        anchor = 'wikilink_in_url',
anchor = 'trans_missing_chapter',
        category = 'Pages with citations having wikilinks embedded in URL titles',
category = 'Pages with citations using translated terms without the original',
        hidden = false },
hidden = false },
trans_missing_title = {
message = '<code>&#124;trans-title=</code> requires <code>&#124;title=</code>',
anchor = 'trans_missing_title',
category = 'Pages with citations using translated terms without the original',
hidden = false },
wikilink_in_url = {
message = 'Wikilink embedded in URL title',
anchor = 'wikilink_in_url',
category = 'Pages with citations having wikilinks embedded in URL titles',
hidden = false },
}
}


Line 377: Line 387:
         link = 'International Standard Serial Number',
         link = 'International Standard Serial Number',
         label = 'ISSN',
         label = 'ISSN',
         mode = 'external',
         mode = 'manual',
         prefix = '//www.worldcat.org/issn/',
         prefix = '//www.worldcat.org/issn/',
         COinS = 'rft.issn',
         COinS = 'rft.issn',
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.