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.', | ||
['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"> | |||
'[[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 }, | |||
bare_url_missing_title = { | |||
message = '$1 missing title', | |||
anchor = 'bare_url_missing_title', | |||
category = 'Pages with citations having bare URLs', | |||
hidden = false }, | |||
citation_missing_title = { | |||
message = 'Missing or empty <code>|title=</code>', | |||
anchor = 'citation_missing_title', | |||
category = 'Pages with citations lacking titles', | |||
hidden = false }, | |||
cite_web_url = { | |||
message = 'Missing or empty <code>|url=</code>', | |||
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 }, | |||
empty_citation = { | |||
message = 'Empty citation', | |||
anchor = 'empty_citation', | |||
category = 'Pages with empty citations', | |||
hidden = false }, | |||
extra_pages = { | |||
message = 'Extra <code>|pages=</code> or <code>|at=</code>', | |||
anchor = 'extra_pages', | |||
category = 'Pages with citations using conflicting page specifications', | |||
hidden = false }, | |||
format_missing_url = { | |||
message = '<code>|format=</code> requires <code>|url=</code>', | |||
anchor = 'format_missing_url', | |||
category = 'Pages using citations with format and no URL', | |||
hidden = true }, | |||
implict_etal_author = { | |||
message = '<code>|displayauthors=</code> suggested', | |||
anchor = 'displayauthors', | |||
category = 'Pages using citations with old-style implicit et al.', | |||
hidden = true }, | |||
implict_etal_editor = { | |||
message = '<code>|displayeditors=</code> suggested', | |||
anchor = 'displayeditors', | |||
category = 'Pages using citations with old-style implicit et al.', | |||
hidden = true }, | |||
parameter_ignored = { | |||
message = 'Unknown parameter <code>|$1=</code> ignored', | |||
anchor = 'parameter_ignored', | |||
category = 'Pages with citations using unsupported parameters', | |||
hidden = false }, | |||
parameter_ignored_suggest = { | |||
message = 'Unknown parameter <code>|$1=</code> ignored (<code>|$2=</code> suggested)', | |||
anchor = 'parameter_ignored_suggest', | |||
category = 'Pages with citations using unsupported parameters', | |||
hidden = false }, | |||
redundant_parameters = { | |||
message = 'More than one of $1 specified', | |||
anchor = 'redundant_parameters', | |||
category = 'Pages with citations having redundant parameters', | |||
hidden = false }, | |||
text_ignored = { | |||
message = 'Text "$1" ignored', | |||
anchor = 'text_ignored', | |||
category = 'Pages with citations using unnamed parameters', | |||
hidden = false }, | |||
trans_missing_chapter = { | |||
message = '<code>|trans-chapter=</code> requires <code>|chapter=</code>', | |||
anchor = 'trans_missing_chapter', | |||
category = 'Pages with citations using translated terms without the original', | |||
hidden = false }, | |||
trans_missing_title = { | |||
message = '<code>|trans-title=</code> requires <code>|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 = ' | mode = 'manual', | ||
prefix = '//www.worldcat.org/issn/', | prefix = '//www.worldcat.org/issn/', | ||
COinS = 'rft.issn', | COinS = 'rft.issn', |