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'}, | ||
['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'}; | ||
['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', | ||
['Embargo'] = 'embargo', | ['Embargo'] = 'embargo', | ||
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia'}, -- this one only used by citation | ['Encyclopedia'] = {'encyclopedia', 'encyclopaedia'}, -- this one only used by citation | ||
['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', | ||
['NameListFormat'] = 'name-list-format', | |||
['NameListFormat'] = | |||
['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'] = {'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 | ||
['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 | ['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 | ['EditorList-First'] = {"editor-first#", "editor#-first", "editor-given#", "editor#-given"}, | ||
['EditorList-Last'] = {"editor#", "editor-last#", "editor#-last", "editor-surname#", "editor#-surname | ['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 | |||
]] | ]] | ||
Line 263: | Line 257: | ||
['PPPrefix'] = "pp. ", | ['PPPrefix'] = "pp. ", | ||
} | } | ||
--[[--------------------------< 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..'">| | message = '<code style="'..code_style..'">|access-date=</code> requires <code style="'..code_style..'">|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..'">| | message = '<code style="'..code_style..'">|archive-url=</code> requires <code style="'..code_style..'">|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..'">| | message = '<code style="'..code_style..'">|archive-url=</code> requires <code style="'..code_style..'">|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..'">| | message = 'Check <code style="'..code_style..'">|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..'">|isbn=</code> value', | message = 'Check <code style="'..code_style..'">|isbn=</code> value', | ||
anchor = 'bad_isbn', | anchor = 'bad_isbn', | ||
category = ' | 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..'">| | -- message = '<code style="'..code_style..'">|chapter=</code> ignored', | ||
message = '<code style="'..code_style..'">|$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..'">| | message = 'Missing or empty <code style="'..code_style..'">|$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..'">| | message = '<code style="'..code_style..'">|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 }, | hidden = false }, | ||
trans_missing_title = { | trans_missing_title = { | ||
message = '<code style="'..code_style..'">|trans- | message = '<code style="'..code_style..'">|trans-$1=</code> requires <code style="'..code_style..'">|$1=</code>', | ||
anchor = 'trans_missing_title', | anchor = 'trans_missing_title', | ||
category = ' | 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 = ' | message = 'URL–wikilink conflict', -- uses ndash | ||
anchor = 'wikilink_in_url', | anchor = 'wikilink_in_url', | ||
category = ' | 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 = ' ', | separator = ' ', | ||
Line 668: | Line 679: | ||
label = 'OL', | label = 'OL', | ||
mode = 'manual', | mode = 'manual', | ||
prefix = '//openlibrary.org/', | |||
COinS = 'info:olnum', | COinS = 'info:olnum', | ||
separator = ' ', | separator = ' ', | ||
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, |