Module:Citation/CS1/Configuration: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Subscription/Registration help; Via cat fix; identifier protocol relative urls; PMC identifier fix; iso639-1 support;) |
(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.', |
||
⚫ | ['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>' .. |
||
-- 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"> |
||
'[[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"> |
['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'] = " – via $1", |
['via'] = " – 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 = { |
|||
message = '<code>|accessdate=</code> requires <code>|url=</code>', |
|||
anchor = 'accessdate_missing_url', |
|||
category = 'Pages using citations with accessdate and no URL', |
|||
hidden = true }, |
|||
archive_missing_date = { |
|||
message = '<code>|archiveurl=</code> requires <code>|archivedate=</code>', |
|||
anchor = 'archive_missing_date', |
|||
category = 'Pages with archiveurl citation errors', |
|||
hidden = false }, |
|||
archive_missing_url = { |
|||
message = '<code>|archiveurl=</code> requires <code>|url=</code>', |
|||
anchor = 'archive_missing_url', |
|||
category = 'Pages with archiveurl citation errors', |
|||
hidden = false }, |
|||
bad_doi = { |
|||
message = 'Check <code>|doi=</code> value', |
|||
anchor = 'bad_doi', |
|||
category = 'Pages with DOI errors', |
|||
hidden = false }, |
|||
bad_isbn = { |
|||
message = 'Check <code>|isbn=</code> value', |
|||
anchor = 'bad_isbn', |
|||
category = 'Pages with ISBN errors', |
|||
hidden = false }, |
|||
bad_issn = { |
|||
message = 'Check <code>|issn=</code> value', |
|||
anchor = 'bad_issn', |
|||
category = 'CS1 errors: ISSN', |
|||
hidden = false }, |
|||
bad_ol = { |
|||
message = 'Check <code>|ol=</code> value', |
|||
anchor = 'bad_ol', |
|||
category = 'Pages with OL errors', |
|||
hidden = false }, |
|||
bad_url = { |
|||
⚫ | |||
message = 'Check <code>|url=</code> scheme', |
|||
anchor = 'bad_url', |
|||
category = 'Pages with URL errors', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
message = '$1 missing title', |
|||
anchor = 'bare_url_missing_title', |
|||
category = 'Pages with citations having bare URLs', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
message = 'Missing or empty <code>|title=</code>', |
|||
anchor = 'citation_missing_title', |
|||
category = 'Pages with citations lacking titles', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
anchor = 'cite_web_url', |
|||
category = 'Pages using web citations with no URL', |
|||
hidden = true }, |
|||
coauthors_missing_author = { |
|||
⚫ | |||
message = '<code>|coauthors=</code> requires <code>|author=</code>', |
|||
anchor = 'coauthors_missing_author', |
|||
category = 'CS1 errors: coauthors without author', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
anchor = 'empty_citation', |
|||
category = 'Pages with empty citations', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
message = 'Extra <code>|pages=</code> or <code>|at=</code>', |
|||
anchor = 'extra_pages', |
|||
category = 'Pages with citations using conflicting page specifications', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
message = '<code>|format=</code> requires <code>|url=</code>', |
|||
anchor = 'format_missing_url', |
|||
category = 'Pages using citations with format and no URL', |
|||
hidden = true }, |
|||
⚫ | |||
⚫ | |||
message = '<code>|displayauthors=</code> suggested', |
|||
anchor = 'displayauthors', |
|||
category = 'Pages using citations with old-style implicit et al.', |
|||
hidden = true }, |
|||
⚫ | |||
⚫ | |||
message = '<code>|displayeditors=</code> suggested', |
|||
anchor = 'displayeditors', |
|||
category = 'Pages using citations with old-style implicit et al.', |
|||
hidden = true }, |
|||
⚫ | |||
⚫ | |||
message = 'Unknown parameter <code>|$1=</code> ignored', |
|||
anchor = 'parameter_ignored', |
|||
category = 'Pages with citations using unsupported parameters', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
message = 'Unknown parameter <code>|$1=</code> ignored (<code>|$2=</code> suggested)', |
|||
anchor = 'parameter_ignored_suggest', |
|||
category = 'Pages with citations using unsupported parameters', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
message = 'More than one of $1 specified', |
|||
⚫ | |||
anchor = 'redundant_parameters', |
|||
category = 'Pages with citations having redundant parameters', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
message = 'Text "$1" ignored', |
|||
⚫ | |||
anchor = 'text_ignored', |
|||
category = 'Pages with citations using unnamed parameters', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
anchor = 'trans_missing_chapter', |
|||
category = 'Pages with citations using translated terms without the original', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
anchor = 'trans_missing_title', |
|||
category = 'Pages with citations using translated terms without the original', |
|||
hidden = false }, |
|||
⚫ | |||
⚫ | |||
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 = ' |
mode = 'manual', |
||
prefix = '//www.worldcat.org/issn/', |
prefix = '//www.worldcat.org/issn/', |
||
COinS = 'rft.issn', |
COinS = 'rft.issn', |