Jump to content

Module:Citation/CS1/Configuration: Difference between revisions

Synch from sandbox;
m>Trappist the monk
(Synch from sandbox;)
m>Trappist the monk
(Synch from sandbox;)
Line 133: Line 133:
['At'] = 'at',
['At'] = 'at',
['Authors'] = {'authors', 'people', 'host', 'credits'},
['Authors'] = {'authors', 'people', 'host', 'credits'},
['AuthorFormat'] = {'author-format', 'authorformat'}, -- deprecated in favor of NameListFormat;
['AuthorSeparator'] = 'author-separator', -- deprecated
['AuthorNameSeparator'] = 'author-name-separator', -- deprecated
['Began'] = 'began', -- cite episode and cite series
['BookTitle'] = {'book-title', 'booktitle'},
['BookTitle'] = {'book-title', 'booktitle'},
['Callsign'] = {'call-sign', 'callsign'}, -- cite interview
['Callsign'] = {'call-sign', 'callsign'}, -- cite interview
Line 142: Line 138:
['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section'},
['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section'},
['ChapterFormat'] = {'chapter-format', 'contribution-format', 'section-format'};
['ChapterFormat'] = {'chapter-format', 'contribution-format', 'section-format'};
['ChapterLink'] = {'chapter-link', 'chapterlink'}, -- deprecated; remove after 1 January 2015?
['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'section-url', 'sectionurl'},
['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'section-url', 'sectionurl'},
['City'] = 'city', -- cite interview
['City'] = 'city', -- cite interview
Line 159: Line 154:
['Edition'] = 'edition',
['Edition'] = 'edition',
['Editors'] = 'editors',
['Editors'] = 'editors',
['EditorFormat'] = {'editor-format', 'editorformat'}, -- deprecated in favor of NameListFormat;
['EditorSeparator'] = 'editor-separator', -- deprecated
['EditorNameSeparator'] = 'editor-name-separator', -- deprecated
['Embargo'] = 'embargo',
['Embargo'] = 'embargo',
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia'}, -- this one only used by citation
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia'}, -- this one only used by citation
['Ended'] = 'ended', -- cite episode and cite series
['Episode'] = 'episode', -- cite serial only TODO: make available to cite episode?
['Episode'] = 'episode', -- cite serial only TODO: make available to cite episode?
['Format'] = 'format',
['Format'] = 'format',
Line 184: Line 175:
['Minutes'] = 'minutes',
['Minutes'] = 'minutes',
['Mode'] = 'mode',
['Mode'] = 'mode',
['Month'] = 'month', -- deprecated; remove after 1 January 2015?
['NameListFormat'] = 'name-list-format',
['NameListFormat'] = {'name-list-format', 'author-format', 'authorformat', 'editor-format', 'editorformat'},
['NameSeparator'] = 'name-separator', -- deprecated
['Network'] = 'network',
['Network'] = 'network',
['NoPP'] = {'no-pp', 'nopp'},
['NoPP'] = {'no-pp', 'nopp'},
Line 198: Line 187:
'website',  'periodical', 'encyclopedia', 'encyclopaedia', 'dictionary'},
'website',  'periodical', 'encyclopedia', 'encyclopaedia', 'dictionary'},
['Place'] = {'place', 'location'},
['Place'] = {'place', 'location'},
['PPrefix'] = {'p-prefix', 'PPrefix'},
['PPrefix'] = {'p-prefix'},
['PPPrefix'] = 'pp-prefix',
['PPPrefix'] = 'pp-prefix',
['Program'] = 'program', -- cite interview
['Program'] = 'program', -- cite interview
Line 209: Line 198:
['RegistrationRequired'] = 'registration',
['RegistrationRequired'] = 'registration',
['Scale'] = 'scale',
['Scale'] = 'scale',
['ScriptChapter'] = 'script-chapter',
['ScriptTitle'] = 'script-title',
['ScriptTitle'] = 'script-title',
['Section'] = 'section',
['Section'] = 'section',
['Season'] = 'season',
['Season'] = 'season',
['Sections'] = 'sections', -- cite map only
['Sections'] = 'sections', -- cite map only
['Separator'] = 'separator', -- deprecated in favor of Mode
['Series'] = {'series', 'version'},
['Series'] = {'series', 'version'},
['SeriesSeparator'] = 'series-separator',
['SeriesSeparator'] = 'series-separator',
Line 242: Line 231:


['AuthorList-First'] = {"first#", "given#", "author-first#", "author#-first"},
['AuthorList-First'] = {"first#", "given#", "author-first#", "author#-first"},
['AuthorList-Last'] = {"last#", "author#", "surname#", "author-last#", "author#-last", "subject#", "Author#"},
['AuthorList-Last'] = {"last#", "author#", "surname#", "author-last#", "author#-last", "subject#"},
['AuthorList-Link'] = {"authorlink#", "author-link#", "author#-link", "subjectlink#", "author#link", "subject-link#", "subject#-link", "subject#link"},
['AuthorList-Link'] = {"authorlink#", "author-link#", "author#-link", "subjectlink#", "author#link", "subject-link#", "subject#-link", "subject#link"},
['AuthorList-Mask'] = {"author-mask#", "authormask#", "author#mask", "author#-mask"},
['AuthorList-Mask'] = {"author-mask#", "authormask#", "author#mask", "author#-mask"},
['EditorList-First'] = {"editor-first#", "editor#-first", "editor-given#", "editor#-given", "EditorGiven#"},
['EditorList-First'] = {"editor-first#", "editor#-first", "editor-given#", "editor#-given"},
['EditorList-Last'] = {"editor#", "editor-last#", "editor#-last", "editor-surname#", "editor#-surname", "EditorSurname#", "Editor#"},
['EditorList-Last'] = {"editor#", "editor-last#", "editor#-last", "editor-surname#", "editor#-surname"},
['EditorList-Link'] = {"editor-link#", "editor#-link", "editorlink#", "editor#link"},
['EditorList-Link'] = {"editor-link#", "editor#-link", "editorlink#", "editor#link"},
['EditorList-Mask'] = {"editor-mask#", "editor#-mask", "editormask#", "editor#mask"},
['EditorList-Mask'] = {"editor-mask#", "editor#-mask", "editormask#", "editor#mask"},
['TranslatorList-First'] = {'translator-first#','translator#-first'},
['TranslatorList-Last'] = {'translator#', 'translator-last#', 'translator#-last'},
['TranslatorList-Link'] = {'translator-link#', 'translator#-link'},
['TranslatorList-Mask'] = {'translator-mask#', 'translator#-mask'},
}
}


--[[--------------------------< D E F A U L T S >--------------------------------------------------------------
--[[--------------------------< D E F A U L T S >--------------------------------------------------------------


-- Default parameter values
Default parameter values


]]
]]
Line 263: Line 257:
['PPPrefix'] = "pp.&nbsp;",
['PPPrefix'] = "pp.&nbsp;",
}
}
--[[--------------------------< K E Y W O R D S >--------------------------------------------------------------
This table holds keywords for those parameters that have defined sets of acceptible keywords.
]]
local keywords = {
['yes_true_y'] = {'yes', 'true', 'y'}, -- ignore-isbn-error, last-author-amp, no-tracking, nopp, registration, subscription
['deadurl'] = {'yes', 'true', 'y', 'no', 'unfit', 'usurped'},
['mode'] = {'cs1', 'cs2'},
['name-list-format'] = {'vanc'},
}


--[[--------------------------< M A I N T E N A N C E _ C A T E G O R I E S >----------------------------------
--[[--------------------------< M A I N T E N A N C E _ C A T E G O R I E S >----------------------------------
Line 328: Line 337:
local error_conditions = {
local error_conditions = {
accessdate_missing_url = {
accessdate_missing_url = {
message = '<code style="'..code_style..'">&#124;accessdate=</code> requires <code style="'..code_style..'">&#124;url=</code>',
message = '<code style="'..code_style..'">&#124;access-date=</code> requires <code style="'..code_style..'">&#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 = true },
hidden = true },
archive_missing_date = {
archive_missing_date = {
message = '<code style="'..code_style..'">&#124;archiveurl=</code> requires <code style="'..code_style..'">&#124;archivedate=</code>',
message = '<code style="'..code_style..'">&#124;archive-url=</code> requires <code style="'..code_style..'">&#124;archive-date=</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 style="'..code_style..'">&#124;archiveurl=</code> requires <code style="'..code_style..'">&#124;url=</code>',
message = '<code style="'..code_style..'">&#124;archive-url=</code> requires <code style="'..code_style..'">&#124;url=</code>',
anchor = 'archive_missing_url',
anchor = 'archive_missing_url',
category = 'Pages with archiveurl citation errors',
category = 'Pages with archiveurl citation errors',
Line 363: Line 372:
hidden = false },
hidden = false },
bad_authorlink = {
bad_authorlink = {
message = 'Check <code style="'..code_style..'">&#124;authorlink=</code> value',
message = 'Check <code style="'..code_style..'">&#124;author-link=</code> value',
anchor = 'bad_authorlink',
anchor = 'bad_authorlink',
category = 'CS1 errors: authorlink',
category = 'CS1 errors: authorlink',
Line 380: Line 389:
message = 'Check <code style="'..code_style..'">&#124;isbn=</code> value',
message = 'Check <code style="'..code_style..'">&#124;isbn=</code> value',
anchor = 'bad_isbn',
anchor = 'bad_isbn',
category = 'Pages with ISBN errors',
category = 'CS1 errors: ISBN',
hidden = false },
hidden = false },
bad_ismn = {
bad_ismn = {
Line 428: Line 437:
hidden = false },
hidden = false },
chapter_ignored = {
chapter_ignored = {
message = '<code style="'..code_style..'">&#124;chapter=</code> ignored',
-- message = '<code style="'..code_style..'">&#124;chapter=</code> ignored',
message = '<code style="'..code_style..'">&#124;$1=</code> ignored',
anchor = 'chapter_ignored',
anchor = 'chapter_ignored',
category = 'CS1 errors: chapter ignored',
category = 'CS1 errors: chapter ignored',
hidden = false },
hidden = false },
citation_missing_title = {
citation_missing_title = {
message = 'Missing or empty <code style="'..code_style..'">&#124;title=</code>',
message = 'Missing or empty <code style="'..code_style..'">&#124;$1=</code>',
anchor = 'citation_missing_title',
anchor = 'citation_missing_title',
category = 'Pages with citations lacking titles',
category = 'Pages with citations lacking titles',
Line 473: Line 483:
hidden = true },
hidden = true },
implict_etal_editor = {
implict_etal_editor = {
message = '<code style="'..code_style..'">&#124;displayeditors=</code> suggested',
message = '<code style="'..code_style..'">&#124;display-editors=</code> suggested',
anchor = 'displayeditors',
anchor = 'displayeditors',
category = 'Pages using citations with old-style implicit et al. in editors',
category = 'Pages using citations with old-style implicit et al. in editors',
Line 486: Line 496:
anchor = 'missing_name',
anchor = 'missing_name',
category = 'CS1 errors: missing author or editor',
category = 'CS1 errors: missing author or editor',
hidden = false },
param_has_ext_link = {
message = 'External link in <code style="'..code_style..'">$1</code>',
anchor = 'param_has_ext_link',
category = 'CS1 errors: external links',
hidden = false },
hidden = false },
parameter_ignored = {
parameter_ignored = {
Line 506: Line 521:
anchor = 'text_ignored',
anchor = 'text_ignored',
category = 'Pages with citations using unnamed parameters',
category = 'Pages with citations using unnamed parameters',
hidden = false },
trans_missing_chapter = {
message = '<code style="'..code_style..'">&#124;trans-chapter=</code> requires <code style="'..code_style..'">&#124;chapter=</code>',
anchor = 'trans_missing_chapter',
category = 'Pages with citations using translated terms without the original',
hidden = false },
hidden = false },
trans_missing_title = {
trans_missing_title = {
message = '<code style="'..code_style..'">&#124;trans-title=</code> requires <code style="'..code_style..'">&#124;title=</code>',
message = '<code style="'..code_style..'">&#124;trans-$1=</code> requires <code style="'..code_style..'">&#124;$1=</code>',
anchor = 'trans_missing_title',
anchor = 'trans_missing_title',
category = 'Pages with citations using translated terms without the original',
category = 'CS1 errors: translated title',
hidden = false },
hidden = false },
vancouver = {
vancouver = {
Line 523: Line 533:
hidden = false },
hidden = false },
wikilink_in_url = {
wikilink_in_url = {
message = 'Wikilink embedded in URL title',
message = 'URL–wikilink conflict', -- uses ndash
anchor = 'wikilink_in_url',
anchor = 'wikilink_in_url',
category = 'Pages with citations having wikilinks embedded in URL titles',
category = 'CS1 errors: URL–wikilink conflict', -- uses ndash
hidden = false },
hidden = false },
}
}
Line 561: Line 571:
label = 'ASIN',
label = 'ASIN',
mode = 'manual',
mode = 'manual',
prefix = '//www.amazon.',
COinS = 'info:asin',
COinS = 'info:asin',
separator = '&nbsp;',
separator = '&nbsp;',
Line 668: Line 679:
label = 'OL',
label = 'OL',
mode = 'manual',
mode = 'manual',
prefix = '//openlibrary.org/',
COinS = 'info:olnum',
COinS = 'info:olnum',
separator = '&nbsp;',
separator = '&nbsp;',
Line 750: Line 762:
error_conditions = error_conditions,
error_conditions = error_conditions,
id_handlers = id_handlers,
id_handlers = id_handlers,
keywords = keywords,
maint_cats = maint_cats,
maint_cats = maint_cats,
messages = messages,
messages = messages,
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.