Editing Module:Citation/CS1/Configuration
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 44: | Line 44: | ||
['interview'] = 'Interviewed by $1', | ['interview'] = 'Interviewed by $1', | ||
['lay summary'] = 'Lay summary', | ['lay summary'] = 'Lay summary', | ||
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1', | ['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1', | ||
['notitle'] = 'No title', | -- ['nodate'] = 'n.d.', -- in the future for |date=none|n.d.|nd | ||
['notitle'] = 'No title', -- for |title=(()) and (in the future) |title=none | |||
['original'] = 'the original', | ['original'] = 'the original', | ||
['origdate'] = ' [$1]', | ['origdate'] = ' [$1]', | ||
Line 244: | Line 244: | ||
'article-format', 'section-format'}; | 'article-format', 'section-format'}; | ||
['ChapterURL'] = {'chapter-url', 'contribution-url', 'entry-url', 'article-url', | ['ChapterURL'] = {'chapter-url', 'contribution-url', 'entry-url', 'article-url', | ||
'section-url', 'chapterurl'}, | 'section-url', 'chapterurl', 'contributionurl', 'sectionurl'}, -- Used by InternetArchiveBot | ||
['ChapterUrlAccess'] = {'chapter-url-access', 'contribution-url-access', | ['ChapterUrlAccess'] = {'chapter-url-access', 'contribution-url-access', | ||
'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot | 'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot | ||
Line 251: | Line 251: | ||
['Conference'] = {'conference', 'event'}, | ['Conference'] = {'conference', 'event'}, | ||
['ConferenceFormat'] = 'conference-format', | ['ConferenceFormat'] = 'conference-format', | ||
['ConferenceURL'] = 'conference-url', | ['ConferenceURL'] = {'conference-url', 'conferenceurl'}, -- Used by InternetArchiveBot | ||
['Date'] = {'date', 'air-date', 'airdate'}, -- air-date and airdate for cite episode and cite serial only | ['Date'] = {'date', 'air-date', 'airdate'}, -- air-date and airdate for cite episode and cite serial only | ||
['Degree'] = 'degree', | ['Degree'] = 'degree', | ||
Line 271: | Line 271: | ||
['Issue'] = {'issue', 'number'}, | ['Issue'] = {'issue', 'number'}, | ||
['Language'] = {'language', 'lang'}, | ['Language'] = {'language', 'lang'}, | ||
['LayDate'] = 'lay-date', | ['LayDate'] = {'lay-date', 'laydate'}, | ||
['LayFormat'] = 'lay-format', | ['LayFormat'] = 'lay-format', | ||
['LaySource'] = 'lay-source', | ['LaySource'] = {'lay-source', 'laysource'}, | ||
['LayURL'] = 'lay-url', | ['LayURL'] = {'lay-url', 'layurl'}, -- Used by InternetArchiveBot | ||
['MailingList'] = {'mailing-list', 'mailinglist'}, -- cite mailing list only | ['MailingList'] = {'mailing-list', 'mailinglist'}, -- cite mailing list only | ||
['Map'] = 'map', -- cite map only | ['Map'] = 'map', -- cite map only | ||
Line 282: | Line 282: | ||
['Minutes'] = 'minutes', | ['Minutes'] = 'minutes', | ||
['Mode'] = 'mode', | ['Mode'] = 'mode', | ||
['NameListStyle'] = 'name-list-style', | ['NameListStyle'] = {'name-list-style', 'name-list-format'}, | ||
['Network'] = 'network', | ['Network'] = 'network', | ||
['Newsgroup'] = 'newsgroup', -- cite newsgroup only | ['Newsgroup'] = 'newsgroup', -- cite newsgroup only | ||
Line 314: | Line 314: | ||
['Series'] = {'series', 'version'}, | ['Series'] = {'series', 'version'}, | ||
['SeriesLink'] = {'series-link', 'serieslink'}, | ['SeriesLink'] = {'series-link', 'serieslink'}, | ||
['SeriesNumber'] = {'series-number', 'series-no'}, | ['SeriesNumber'] = {'series-number', 'series-no', 'seriesno'}, | ||
['Sheet'] = 'sheet', -- cite map only | ['Sheet'] = 'sheet', -- cite map only | ||
['Sheets'] = 'sheets', -- cite map only | ['Sheets'] = 'sheets', -- cite map only | ||
['Station'] = 'station', | ['Station'] = 'station', | ||
['Time'] = 'time', | ['Time'] = 'time', | ||
['TimeCaption'] = 'time-caption', | ['TimeCaption'] = {'time-caption', 'timecaption'}, | ||
['Title'] = 'title', -- Used by InternetArchiveBot | ['Title'] = 'title', -- Used by InternetArchiveBot | ||
['TitleLink'] = {'title-link', 'episode-link', 'episodelink'}, | ['TitleLink'] = {'title-link', 'episode-link', 'titlelink', 'episodelink'}, -- Used by InternetArchiveBot | ||
['TitleNote'] = 'department', | ['TitleNote'] = 'department', | ||
['TitleType'] = {'type', 'medium'}, | ['TitleType'] = {'type', 'medium'}, | ||
Line 410: | Line 410: | ||
end | end | ||
end | end | ||
--[[-----------< S P E C I A L C A S E T R A N S L A T I O N S >------------ | --[[-----------< S P E C I A L C A S E T R A N S L A T I O N S >------------ | ||
Line 428: | Line 427: | ||
['TranslatorList'] = 'translators list', | ['TranslatorList'] = 'translators list', | ||
-- Lua patterns to match pseudo-titles used by | ['authors'] = 'authors', -- used to assemble maintenance category names | ||
['contributors'] = 'contributors', -- translation of these names plus translation of the base maintenance category names in maint_cats{} table below | |||
['editors'] = 'editors', -- must match the names of the actual categories | |||
['interviewers'] = 'interviewers', -- this group of translations used by get_display_names() | |||
['translators'] = 'translators', | |||
-- Lua patterns to match pseudo-titles used by Internet Archive bot and others as placeholder for unknown |title= value | |||
['archived_copy'] = { -- used with CS1 maint: Archive[d] copy as title | ['archived_copy'] = { -- used with CS1 maint: Archive[d] copy as title | ||
['en'] = '^archived?%s+copy$', -- for English; translators: keep this because templates imported from en.wiki | ['en'] = '^archived?%s+copy$', -- for English; translators: keep this because templates imported from en.wiki | ||
Line 434: | Line 439: | ||
}, | }, | ||
-- Lua patterns to match generic titles; usually created by bots | -- Lua patterns to match generic titles; usually created by bots of reference filling tools | ||
-- translators: replace ['local'] = nil with lowercase translation only when bots or tools create generic titles in your language | -- translators: replace ['local'] = nil with lowercase translation only when bots or tools create generic titles in your language | ||
['generic_titles'] = { | ['generic_titles'] = { | ||
-- patterns in this table should be lowercase only | -- patterns in this table should be lowercase only | ||
-- leave ['local'] nil except when there is a matching generic title in your language | -- leave ['local'] nil except when there is a matching generic title in your language | ||
{['en'] = {'^wayback%s+machine$', false}, ['local'] = nil}, | |||
{['en'] = {'are you a robot', true}, ['local'] = nil}, | |||
{['en'] = {'^wayback%s+machine$', false}, | {['en'] = {'hugedomains.com', true}, ['local'] = nil}, | ||
{['en'] = {'are you a robot', true}, | {['en'] = {'^[%(%[{<]?no +title[>}%]%)]?$', false}, ['local'] = nil}, | ||
{['en'] = {'hugedomains.com', true}, | {['en'] = {'page not found', true}, ['local'] = nil}, | ||
{['en'] = {'^[%(%[{<]?no +title[>}%]%)]?$', false}, | {['en'] = {'subscribe to read', true}, ['local'] = nil}, | ||
{['en'] = {'page not found', true}, | {['en'] = {'^[%(%[{<]?unknown[>}%]%)]?$', false}, ['local'] = nil}, | ||
{['en'] = {'subscribe to read', true}, | {['en'] = {'website is for sale', true}, ['local'] = nil}, | ||
{['en'] = {'^[%(%[{<]?unknown[>}%]%)]?$', false}, | {['en'] = {'^404', true}, ['local'] = nil}, | ||
{['en'] = {'website is for sale', true}, | |||
{['en'] = {'^404', true}, | |||
} | } | ||
} | } | ||
Line 472: | Line 470: | ||
which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard | which became part of ISO 8601 in 2019. See '§Sub-year groupings'. The standard | ||
defines various divisions using numbers 21-41. CS1|2 only supports generic seasons. | defines various divisions using numbers 21-41. CS1|2 only supports generic seasons. | ||
EDTF does support the distinction between north and south | EDTF does support the distinction between north and south hemispere seasons | ||
but CS1|2 has no way to make that distinction. | but CS1|2 has no way to make that distinction. | ||
Line 562: | Line 560: | ||
local templates_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'} | local templates_not_using_page = {'audio-visual', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'} | ||
--[[--------------------------< K E Y W O R D S >------------------------------- | --[[--------------------------< K E Y W O R D S >------------------------------- | ||
Line 638: | Line 609: | ||
['ymd'] = {'ymd'}, -- |df= | ['ymd'] = {'ymd'}, -- |df= | ||
['ymd-all'] = {'ymd-all'}, -- |df= | ['ymd-all'] = {'ymd-all'}, -- |df= | ||
-- ['yMd'] = {'yMd'}, -- |df=; not supported at en.wiki | |||
-- ['yMd-all'] = {'yMd-all'}, -- |df=; not supported at en.wiki | |||
} | } | ||
Line 711: | Line 682: | ||
['contribution'] = make_keywords_list ({keywords.afterword, keywords.foreword, keywords.introduction, keywords.preface}), | ['contribution'] = make_keywords_list ({keywords.afterword, keywords.foreword, keywords.introduction, keywords.preface}), | ||
['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all']}), | ['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all']}), | ||
-- ['df'] = make_keywords_list ({keywords.dmy, keywords['dmy-all'], keywords.mdy, keywords['mdy-all'], keywords.ymd, keywords['ymd-all'], keywords.yMd, keywords['yMd-all']}), -- not supported at en.wiki | |||
['mode'] = make_keywords_list ({keywords.cs1, keywords.cs2}), | ['mode'] = make_keywords_list ({keywords.cs1, keywords.cs2}), | ||
['name-list-style'] = make_keywords_list ({keywords.amp, keywords['and'], keywords.vanc}), | ['name-list-style'] = make_keywords_list ({keywords.amp, keywords['and'], keywords.vanc}), | ||
Line 748: | Line 719: | ||
]] | ]] | ||
local invisible_chars = { | local invisible_chars = { | ||
{'replacement', '\239\191\189'}, -- U+FFFD, EF BF BD | {'replacement', '\239\191\189'}, -- U+FFFD, EF BF BD | ||
{'zero width joiner', ' | {'zero width joiner', '\226\128\141'}, -- U+200D, E2 80 8D | ||
{'zero width space', '\226\128\139'}, -- U+200B, E2 80 8B | {'zero width space', '\226\128\139'}, -- U+200B, E2 80 8B | ||
{'hair space', '\226\128\138'}, -- U+200A, E2 80 8A | {'hair space', '\226\128\138'}, -- U+200A, E2 80 8A | ||
Line 765: | Line 731: | ||
{'carriage return', '\013'}, -- U+000D (CR), 0D | {'carriage return', '\013'}, -- U+000D (CR), 0D | ||
{'stripmarker', stripmarkers.any}, -- stripmarker; may or may not be an error; capture returns the stripmaker type | {'stripmarker', stripmarkers.any}, -- stripmarker; may or may not be an error; capture returns the stripmaker type | ||
{'delete', ' | {'delete', '\127'}, -- U+007F (DEL), 7F; must be done after stripmarker test | ||
{'C0 control', '[\000-\008\011\012\014-\031]'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D)) | {'C0 control', '[\000-\008\011\012\014-\031]'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D)) | ||
{'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F | {'C1 control', '[\194\128-\194\159]'}, -- U+0080–U+009F (XXX–APC), C2 80 – C2 9F | ||
-- {'Specials', '[\239\191\185-\239\191\191]'}, -- U+FFF9-U+FFFF, EF BF B9 – EF BF BF | |||
-- {'Private use area', '[\238\128\128-\239\163\191]'}, -- U+E000–U+F8FF, EE 80 80 – EF A3 BF | |||
-- {'Supplementary Private Use Area-A', '[\243\176\128\128-\243\191\191\189]'}, -- U+F0000–U+FFFFD, F3 B0 80 80 – F3 BF BF BD | |||
-- {'Supplementary Private Use Area-B', '[\244\128\128\128-\244\143\191\189]'}, -- U+100000–U+10FFFD, F4 80 80 80 – F4 8F BF BD | |||
} | } | ||
Line 794: | Line 760: | ||
Myanmar extended B A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf | Myanmar extended B A9E0-A9FF - https://unicode.org/charts/PDF/UA9E0.pdf | ||
the pattern is used by has_invisible_chars() and coins_cleanup() | the pattern is used by has_invisible_chars() and coins_cleanup() | ||
TODO: find a better place for this? | |||
]] | ]] | ||
local indic_script = '[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]'; | local indic_script = '[\224\164\128-\224\181\191\224\163\160-\224\183\191\225\128\128-\225\130\159\234\167\160-\234\167\191\234\169\160-\234\169\191]'; | ||
Line 926: | Line 853: | ||
['kölsch'] = {'Kölsch', 'ksh'}, -- use IANA/ISO 639 preferred name | ['kölsch'] = {'Kölsch', 'ksh'}, -- use IANA/ISO 639 preferred name | ||
['ripuarian'] = {'Ripuarian', 'mis-x-ripuar'}, -- group of dialects; no code in MediaWiki or in IANA/ISO 639 | ['ripuarian'] = {'Ripuarian', 'mis-x-ripuar'}, -- group of dialects; no code in MediaWiki or in IANA/ISO 639 | ||
-- ['siksika'] = {'Siksika', 'bla'}, -- MediaWiki/IANA/ISO 639 preferred name: Siksika | |||
['taiwanese hokkien'] = {'Taiwanese Hokkien', 'nan-TW'}, -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese | ['taiwanese hokkien'] = {'Taiwanese Hokkien', 'nan-TW'}, -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese | ||
['tosk albanian'] = {'Tosk Albanian', 'als'}, -- MediaWiki replaces 'Tosk Albanian' with 'Alemannisch' so 'Tosk Albanian' cannot be found | ['tosk albanian'] = {'Tosk Albanian', 'als'}, -- MediaWiki replaces 'Tosk Albanian' with 'Alemannisch' so 'Tosk Albanian' cannot be found | ||
Line 1,056: | Line 984: | ||
anchor = 'arxiv_missing', | anchor = 'arxiv_missing', | ||
category = 'CS1 errors: arXiv', -- same as bad arxiv | category = 'CS1 errors: arXiv', -- same as bad arxiv | ||
hidden = false | hidden = false | ||
}, | }, | ||
Line 1,074: | Line 996: | ||
anchor = 'bad_asin', | anchor = 'bad_asin', | ||
category ='CS1 errors: ASIN', | category ='CS1 errors: ASIN', | ||
hidden = false | hidden = false | ||
}, | }, | ||
Line 1,299: | Line 1,215: | ||
}, | }, | ||
err_disp_name = { | err_disp_name = { | ||
message = 'Invalid <code class="cs1-code">|$1=$2</code>', | message = 'Invalid <code class="cs1-code">|display-$1=$2</code>', -- $1 is 'authors', 'contributors', 'editors', 'interviewers', 'translators'; gets value from special_case_translation table | ||
anchor = 'disp_name', | anchor = 'disp_name', | ||
category = 'CS1 errors: display-names', | category = 'CS1 errors: display-names', | ||
Line 1,308: | Line 1,224: | ||
anchor = 'doibroken_missing_doi', | anchor = 'doibroken_missing_doi', | ||
category = 'CS1 errors: DOI', | category = 'CS1 errors: DOI', | ||
hidden = false | hidden = false | ||
}, | }, | ||
Line 1,334: | Line 1,244: | ||
hidden = false, | hidden = false, | ||
}, | }, | ||
err_extra_text_pages = { -- TODO make message dependent on triggering parameter i.e. p/pp/page/pages? | |||
message = '<code class="cs1-code">|page(s)=</code> has extra text', | |||
message = '<code class="cs1-code">| | |||
anchor = 'extra_text_pages', | anchor = 'extra_text_pages', | ||
category = 'CS1 errors: extra text: pages', | category = 'CS1 errors: extra text: pages', | ||
hidden = false, | hidden = false, | ||
}, | }, | ||
err_first_missing_last = { | err_first_missing_last = { | ||
Line 1,449: | Line 1,347: | ||
}, | }, | ||
err_trans_missing_title = { | err_trans_missing_title = { | ||
message = '<code class="cs1-code">|trans-$1=</code> requires <code class="cs1-code">|$1=</code> or <code class="cs1-code">|script-$1=</code>', -- $1 is base parameter name | message = '<code class="cs1-code">|trans-$1=</code> requires <code class="cs1-code">|$1=</code> or <code class="cs1-code">|script-$1=</code>', -- $1 is base parameter name | ||
anchor = 'trans_missing_title', | anchor = 'trans_missing_title', | ||
category = 'CS1 errors: translated title', | category = 'CS1 errors: translated title', | ||
Line 1,461: | Line 1,359: | ||
}, | }, | ||
err_vancouver = { | err_vancouver = { | ||
message = 'Vancouver style error: $1 | message = 'Vancouver style error: $1', -- $1 is error detail | ||
anchor = 'vancouver', | anchor = 'vancouver', | ||
category = 'CS1 errors: Vancouver style', | category = 'CS1 errors: Vancouver style', | ||
Line 1,480: | Line 1,378: | ||
]] | ]] | ||
maint_asin = { | |||
message = nil, | |||
anchor = 'ASIN', | |||
category = 'CS1 maint: ASIN uses ISBN', | |||
hidden = true, | |||
}, | |||
maint_archived_copy = { | maint_archived_copy = { | ||
message = nil, | message = nil, | ||
Line 1,508: | Line 1,412: | ||
anchor = 'date_year', | anchor = 'date_year', | ||
category = 'CS1 maint: date and year', | category = 'CS1 maint: date and year', | ||
hidden = true, | hidden = true, | ||
}, | }, | ||
Line 1,569: | Line 1,467: | ||
category = 'CS1 maint: location', | category = 'CS1 maint: location', | ||
hidden = true, | hidden = true, | ||
}, | |||
maint_mr_format = { | maint_mr_format = { | ||
message = nil, | message = nil, | ||
Line 1,575: | Line 1,473: | ||
category = 'CS1 maint: MR format', | category = 'CS1 maint: MR format', | ||
hidden = true, | hidden = true, | ||
}, | |||
maint_mult_names = { | maint_mult_names = { | ||
message = nil, | message = nil, | ||
Line 1,594: | Line 1,492: | ||
hidden = true, | hidden = true, | ||
}, | }, | ||
maint_pmc_embargo = { | maint_pmc_embargo = { | ||
message = nil, | message = nil, | ||
Line 1,612: | Line 1,504: | ||
hidden = true, | hidden = true, | ||
}, | }, | ||
maint_ref_harv = { | maint_ref_harv = { | ||
message = nil, | message = nil, | ||
Line 1,675: | Line 1,555: | ||
encode: true if URI should be percent-encoded; otherwise false | encode: true if URI should be percent-encoded; otherwise false | ||
COinS: identifier link or keyword for use in COinS: | COinS: identifier link or keyword for use in COinS: | ||
for identifiers registered at info-uri.info use: info:.... | for identifiers registered at info-uri.info use: info:.... | ||
for identifiers that have COinS keywords, use the keyword: rft.isbn, rft.issn, rft.eissn | for identifiers that have COinS keywords, use the keyword: rft.isbn, rft.issn, rft.eissn | ||
for others make a URL using the value in prefix/suffix and #label, use the keyword: pre (not checked; any text other than 'info' or 'rft' works here) | |||
for others make a URL using the value in prefix/suffix and #label, use the keyword: pre (not checked; any text other than 'info' | |||
set to nil to leave the identifier out of the COinS | set to nil to leave the identifier out of the COinS | ||
separator: character or text between label and the identifier in the rendered citation | separator: character or text between label and the identifier in the rendered citation | ||
Line 1,708: | Line 1,587: | ||
label = 'ASIN', | label = 'ASIN', | ||
prefix = '//www.amazon.', | prefix = '//www.amazon.', | ||
COinS = | COinS = nil, -- no COinS for this id (TODO: needs thinking on implementation because |asin-tld=) | ||
separator = ' ', | separator = ' ', | ||
encode = false; | encode = false; | ||
Line 1,800: | Line 1,679: | ||
label = 'ISMN', | label = 'ISMN', | ||
prefix = '', -- not currently used; | prefix = '', -- not currently used; | ||
COinS = nil, -- nil because we can't use pre or rft or info: | COinS = 'nil', -- nil because we can't use pre or rft or info: | ||
separator = ' ', | separator = ' ', | ||
}, | }, | ||
Line 1,869: | Line 1,748: | ||
encode = true, | encode = true, | ||
separator = ' ', | separator = ' ', | ||
id_limit = 9999999999, | id_limit = 9999999999, -- 10-digits | ||
}, | }, | ||
['OL'] = { | ['OL'] = { | ||
Line 1,878: | Line 1,757: | ||
label = 'OL', | label = 'OL', | ||
prefix = '//openlibrary.org/', | prefix = '//openlibrary.org/', | ||
COinS = | COinS = nil, -- no COinS for this id (TODO: needs thinking on implementation because /authors/books/works/OL) | ||
separator = ' ', | separator = ' ', | ||
encode = true, | encode = true, | ||
Line 1,907: | Line 1,786: | ||
encode = true, | encode = true, | ||
separator = ' ', | separator = ' ', | ||
id_limit = | id_limit = 8000000, | ||
access = 'free', -- free to read | access = 'free', -- free to read | ||
}, | }, | ||
Line 1,920: | Line 1,799: | ||
encode = false, | encode = false, | ||
separator = ' ', | separator = ' ', | ||
id_limit = | id_limit = 33700000, | ||
}, | }, | ||
['RFC'] = { | ['RFC'] = { | ||
Line 2,014: | Line 1,893: | ||
stripmarkers=stripmarkers, | stripmarkers=stripmarkers, | ||
invisible_chars = invisible_chars, | invisible_chars = invisible_chars, | ||
indic_script = indic_script, | indic_script = indic_script, | ||
local_lang_cat_enable = local_lang_cat_enable, | local_lang_cat_enable = local_lang_cat_enable, | ||
maint_cats = maint_cats, | maint_cats = maint_cats, | ||
Line 2,033: | Line 1,910: | ||
templates_using_issue = templates_using_issue, | templates_using_issue = templates_using_issue, | ||
templates_not_using_page = templates_not_using_page, | templates_not_using_page = templates_not_using_page, | ||
inter_wiki_map = inter_wiki_map, | inter_wiki_map = inter_wiki_map, | ||
languages = languages, | languages = languages, | ||
} | } |