Module:Citation/CS1/Configuration: Difference between revisions

support for bars
m>Dragons flight
(add error condition)
m>Dragons flight
(support for bars)
Line 47: Line 47:
data.error_conditions = {
data.error_conditions = {
     accessdate_missing_url = {
     accessdate_missing_url = {
         message = '<code>&#124;accessdate=</code> requires <code>&#124;url=</code>',
         message = '<code>|accessdate=</code> requires <code>|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',
Line 62: Line 62:
         hidden = false },
         hidden = false },
     extra_pages = {
     extra_pages = {
         message = 'Extra <code>&#124;pages=</code> or <code>&#124;at=</code>',
         message = 'Extra <code>|pages=</code> or <code>|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 = true },
         hidden = true },
     bare_url_missing_title = {
     bare_url_missing_title = {
         message = 'Missing or empty <code>&#124;title=</code>',
         message = 'Missing or empty <code>|title=</code>',
         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 = true },
         hidden = true },
     citation_missing_title = {
     citation_missing_title = {
         message = 'Missing or empty <code>&#124;title=</code>',
         message = 'Missing or empty <code>|title=</code>',
         anchor = 'citation_missing_title',
         anchor = 'citation_missing_title',
         category = 'Pages with citations lacking titles‎',
         category = 'Pages with citations lacking titles‎',
Line 82: Line 82:
         hidden = false },
         hidden = false },
     implict_etal_author = {
     implict_etal_author = {
         message = '<code>&#124;displayauthors=</code> suggested',
         message = '<code>|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>|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.‎',
         hidden = true },
         hidden = true },
     format_missing_url = {
     format_missing_url = {
         message = '<code>&#124;format=</code> requires <code>&#124;url=</code>',
         message = '<code>|format=</code> requires <code>|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 },
     archive_missing_date = {
     archive_missing_date = {
         message = '<code>&#124;archiveurl=</code> requires <code>&#124;archivedate=</code>',
         message = '<code>|archiveurl=</code> requires <code>|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_not_dead = {
     archive_missing_url_not_dead = {
         message = '<code>&#124;archiveurl=</code> and <code>&#124;deadurl=no</code> requires <code>&#124;url=</code>',
         message = '<code>|archiveurl=</code> and <code>|deadurl=no</code> requires <code>|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 },
     archive_missing_url = {
     archive_missing_url = {
         message = '<code>&#124;archiveurl=</code> requires <code>&#124;url=</code>',
         message = '<code>|archiveurl=</code> requires <code>|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 },
     cite_web_title = {
     cite_web_title = {
         message = 'Missing or empty <code>&#124;title=</code>',
         message = 'Missing or empty <code>|title=</code>',
         anchor = 'cite_web_title',
         anchor = 'cite_web_title',
         category = '‎Pages using web citations with no title',
         category = '‎Pages using web citations with no title',
         hidden = false },
         hidden = false },
     cite_web_url = {
     cite_web_url = {
         message = 'Missing or empty <code>&#124;url=</code>',
         message = 'Missing or empty <code>|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 },
     trans_missing_chapter = {
     trans_missing_chapter = {
         message = 'Missing or empty <code>&#124;chapter=</code>',
         message = 'Missing or empty <code>|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 = true },
         hidden = true },
     trans_missing_title = {
     trans_missing_title = {
         message = 'Missing or empty <code>&#124;title=</code>',
         message = 'Missing or empty <code>|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',
         hidden = true },
         hidden = true },
     parameter_ignored = {
     parameter_ignored = {
         message = 'Unknown parameter <code>&#124;$1=</code> ignored',
         message = 'Unknown parameter <code>|$1=</code> ignored',
         anchor = 'parameter_ignored',
         anchor = 'parameter_ignored',
         category = 'Pages with citations using unsupported parameters',
         category = 'Pages with citations using unsupported parameters',
         hidden = true },
         hidden = true },
     parameter_ignored_suggest = {
     parameter_ignored_suggest = {
         message = 'Unknown parameter <code>&#124;$1=</code> ignored (suggest <code>&#124;$2=</code>)',
         message = 'Unknown parameter <code>|$1=</code> ignored (suggest <code>|$2=</code>)',
         anchor = 'parameter_ignored_suggest',
         anchor = 'parameter_ignored_suggest',
         category = 'Pages with citations using unsupported parameters',
         category = 'Pages with citations using unsupported parameters',
Anonymous user