Sửa đổi Mô đun:Citation/Configuration
Chú ý: Bạn chưa đăng nhập và địa chỉ IP của bạn sẽ hiển thị công khai khi lưu các sửa đổi.
Bạn có thể tham gia như người biên soạn chuyên nghiệp và lâu dài ở Bách khoa Toàn thư Việt Nam, bằng cách đăng ký và đăng nhập - IP của bạn sẽ không bị công khai và có thêm nhiều lợi ích khác.
Các sửa đổi có thể được lùi lại. Xin hãy kiểm tra phần so sánh bên dưới để xác nhận lại những gì bạn muốn làm, sau đó lưu thay đổi ở dưới để hoàn tất việc lùi lại sửa đổi.
Bản hiện tại | Nội dung bạn nhập | ||
Dòng 24: | Dòng 24: | ||
local messages = { | local messages = { | ||
['agency'] = '$1 $2', -- $1 is sepc, $2 is agency | ['agency'] = '$1 $2', -- $1 is sepc, $2 is agency | ||
− | ['archived-dead'] = 'Lưu trữ từ $1 $2', | + | ['archived-dead'] = 'Lưu trữ từ $1 tại $2', |
− | ['archived-live'] = '$1 từ tài liệu gốc $2', | + | ['archived-live'] = '$1 từ tài liệu gốc tại $2', |
− | ['archived-missing'] = 'Lưu trữ từ tài liệu gốc $1 $2', | + | ['archived-missing'] = 'Lưu trữ từ tài liệu gốc$1 tại $2', |
− | ['archived-unfit'] = 'Lưu trữ từ tài liệu gốc ', | + | ['archived-unfit'] = 'Lưu trữ từ tài liệu gốc tại ', |
['archived'] = 'Lưu trữ', | ['archived'] = 'Lưu trữ', | ||
['by'] = 'Bởi', -- contributions to authored works: introduction, foreword, afterword | ['by'] = 'Bởi', -- contributions to authored works: introduction, foreword, afterword | ||
Dòng 33: | Dòng 33: | ||
['editor'] = 'bt.', | ['editor'] = 'bt.', | ||
['editors'] = 'bt.', | ['editors'] = 'bt.', | ||
− | ['edition'] = '(lxb. | + | ['edition'] = '($1 lxb.)', |
['episode'] = 'Tập $1', | ['episode'] = 'Tập $1', | ||
['et al'] = 'et al.', | ['et al'] = 'et al.', | ||
Dòng 164: | Dòng 164: | ||
['ext-link-access-signal'] = '<span class="$1" title="$2">$3</span>', -- external link with appropriate lock icon | ['ext-link-access-signal'] = '<span class="$1" title="$2">$3</span>', -- external link with appropriate lock icon | ||
− | ['free'] = {class='cs1-lock-free', title=' | + | ['free'] = {class='cs1-lock-free', title='Freely accessible'}, -- classes defined in Module:Citation/CS1/styles.css |
− | ['registration'] = {class='cs1-lock-registration', title=' | + | ['registration'] = {class='cs1-lock-registration', title='Free registration required'}, |
− | ['limited'] = {class='cs1-lock-limited', title=' | + | ['limited'] = {class='cs1-lock-limited', title='Free access subject to limited trial, subscription normally required'}, |
− | ['subscription'] = {class='cs1-lock-subscription', title=' | + | ['subscription'] = {class='cs1-lock-subscription', title='Paid subscription required'}, |
['interwiki-icon'] = '<span class="$1" title="$2">$3</span>', | ['interwiki-icon'] = '<span class="$1" title="$2">$3</span>', | ||
Dòng 229: | Dòng 229: | ||
['BookTitle'] = {'book-title', 'booktitle'}, | ['BookTitle'] = {'book-title', 'booktitle'}, | ||
['Cartography'] = 'cartography', | ['Cartography'] = 'cartography', | ||
− | ['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section | + | ['Chapter'] = {'chapter', 'contribution', 'entry', 'article', 'section'}, |
['ChapterFormat'] = {'chapter-format', 'contribution-format', 'entry-format', 'article-format', 'section-format'}; | ['ChapterFormat'] = {'chapter-format', 'contribution-format', 'entry-format', 'article-format', 'section-format'}; | ||
− | ['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'entry-url', 'article-url', 'section-url', 'sectionurl | + | ['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl', 'entry-url', 'article-url', 'section-url', 'sectionurl'}, -- Used by InternetArchiveBot |
['ChapterUrlAccess'] = {'chapter-url-access', 'contribution-url-access', 'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot | ['ChapterUrlAccess'] = {'chapter-url-access', 'contribution-url-access', 'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot | ||
['Class'] = 'class', -- cite arxiv and arxiv identifiers | ['Class'] = 'class', -- cite arxiv and arxiv identifiers | ||
Dòng 241: | Dòng 241: | ||
['Degree'] = 'degree', | ['Degree'] = 'degree', | ||
['DF'] = 'df', | ['DF'] = 'df', | ||
− | ['DisplayAuthors'] = {'display-authors', 'displayauthors | + | ['DisplayAuthors'] = {'display-authors', 'displayauthors'}, |
['DisplayContributors'] = 'display-contributors', | ['DisplayContributors'] = 'display-contributors', | ||
− | ['DisplayEditors'] = {'display-editors', 'displayeditors | + | ['DisplayEditors'] = {'display-editors', 'displayeditors'}, |
['DisplayInterviewers'] = 'display-interviewers', | ['DisplayInterviewers'] = 'display-interviewers', | ||
['DisplayTranslators'] = 'display-translators', | ['DisplayTranslators'] = 'display-translators', | ||
['Docket'] = 'docket', | ['Docket'] = 'docket', | ||
['DoiBroken'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date'}, | ['DoiBroken'] = {'doi-broken', 'doi-broken-date', 'doi-inactive-date'}, | ||
− | ['Edition'] = | + | ['Edition'] = 'edition', |
['Editors'] = 'editors', | ['Editors'] = 'editors', | ||
['Embargo'] = 'embargo', | ['Embargo'] = 'embargo', | ||
['Encyclopedia'] = {'encyclopedia', 'encyclopaedia', 'dictionary'}, -- cite encyclopedia only | ['Encyclopedia'] = {'encyclopedia', 'encyclopaedia', 'dictionary'}, -- cite encyclopedia only | ||
['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', |
['ID'] = {'id', 'ID'}, | ['ID'] = {'id', 'ID'}, | ||
['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'}, | ['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'}, | ||
Dòng 277: | Dòng 277: | ||
['NoTracking'] = {'template-doc-demo', 'no-cat', 'nocat', 'no-tracking', 'notracking'}, | ['NoTracking'] = {'template-doc-demo', 'no-cat', 'nocat', 'no-tracking', 'notracking'}, | ||
['Number'] = 'number', -- this case only for cite techreport | ['Number'] = 'number', -- this case only for cite techreport | ||
− | ['OrigYear'] = {'orig-year', 'origyear | + | ['OrigYear'] = {'orig-year', 'origyear'}, |
['Others'] = 'others', | ['Others'] = 'others', | ||
− | ['Page'] = {'page', 'p | + | ['Page'] = {'page', 'p'}, -- Used by InternetArchiveBot |
− | ['Pages'] = {'pages', 'pp | + | ['Pages'] = {'pages', 'pp'}, -- Used by InternetArchiveBot |
['Periodical'] = {'journal', 'magazine', 'newspaper', 'periodical', 'website', 'work'}, | ['Periodical'] = {'journal', 'magazine', 'newspaper', 'periodical', 'website', 'work'}, | ||
− | ['Place'] = {'place', 'location | + | ['Place'] = {'place', 'location'}, |
['PostScript'] = 'postscript', | ['PostScript'] = 'postscript', | ||
['PublicationDate'] = {'publication-date', 'publicationdate'}, | ['PublicationDate'] = {'publication-date', 'publicationdate'}, | ||
Dòng 294: | Dòng 294: | ||
['ScriptPeriodical'] = {'script-journal', 'script-magazine', 'script-newspaper', 'script-periodical', 'script-website', 'script-work'}, | ['ScriptPeriodical'] = {'script-journal', 'script-magazine', 'script-newspaper', 'script-periodical', 'script-website', 'script-work'}, | ||
['ScriptTitle'] = 'script-title', -- Used by InternetArchiveBot | ['ScriptTitle'] = 'script-title', -- Used by InternetArchiveBot | ||
− | ['Season'] = | + | ['Season'] = 'season', |
['Sections'] = 'sections', -- cite map only | ['Sections'] = 'sections', -- cite map only | ||
['Series'] = {'series', 'version'}, | ['Series'] = {'series', 'version'}, | ||
Dòng 322: | Dòng 322: | ||
['Veditors'] = 'veditors', | ['Veditors'] = 'veditors', | ||
['Via'] = 'via', | ['Via'] = 'via', | ||
− | ['Volume'] = | + | ['Volume'] = 'volume', |
['Year'] = {'year','năm'}, | ['Year'] = {'year','năm'}, | ||
['AuthorList-First'] = {"first#", "author-first#", "author#-first", "given#", "tên#", "tên #"}, | ['AuthorList-First'] = {"first#", "author-first#", "author#-first", "given#", "tên#", "tên #"}, | ||
− | ['AuthorList-Last'] = {"last#", "author-last#", "author#-last", "author | + | ['AuthorList-Last'] = {"last#", "author-last#", "author#-last", "author#", "surname#", "họ#", "họ #", "subject#", 'host#'}, |
− | ['AuthorList-Link'] = {"author-link#", "author#-link", "authorlink#", "author#link", "subject-link#", "subject#-link", "subjectlink#", "subject#link | + | ['AuthorList-Link'] = {"author-link#", "author#-link", "authorlink#", "author#link", "subject-link#", "subject#-link", "subjectlink#", "subject#link"}, |
['AuthorList-Mask'] = {"author-mask#", "author#-mask", "authormask#", "author#mask"}, | ['AuthorList-Mask'] = {"author-mask#", "author#-mask", "authormask#", "author#mask"}, | ||
Dòng 443: | Dòng 443: | ||
}, | }, | ||
['local'] = { -- replace these English date names with the local language equivalents | ['local'] = { -- replace these English date names with the local language equivalents | ||
− | ['long'] = {[' | + | ['long'] = {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12}, |
['short'] = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12}, | ['short'] = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12}, | ||
− | ['quarter'] = {[' | + | ['quarter'] = {['First Quarter']=33, ['Second Quarter']=34, ['Third Quarter']=35, ['Fourth Quarter']=36}, |
− | ['season'] = {[' | + | ['season'] = {['Winter']=24, ['Spring']=21, ['Summer']=22, ['Fall']=23, ['Autumn']=23}, |
− | ['named'] = {[' | + | ['named'] = {['Easter']=98, ['Christmas']=99}, |
}, | }, | ||
['inv_local_l'] = {}, -- used in date reformatting; copy of date_names['local'].long where k/v are inverted: [1]='<local name>' etc | ['inv_local_l'] = {}, -- used in date reformatting; copy of date_names['local'].long where k/v are inverted: [1]='<local name>' etc | ||
Dòng 467: | Dòng 467: | ||
end | end | ||
− | + | local df_template_patterns = { -- table of redirects to {{Use dmy dates}} and {{Use mdy dates}} | |
− | + | '{{ *[Uu]se (dmy) dates *[|}]', -- 915k -- sorted by approximate transclusion count | |
− | + | '{{ *[Uu]se *(mdy) *dates *[|}]', -- 161k | |
− | + | '{{ *[Uu]se (DMY) dates *[|}]', -- 2929 | |
− | + | '{{ *[Uu]se *(dmy) *[|}]', -- 250 + 34 | |
− | + | '{{ *([Dd]my) *[|}]', -- 272 | |
− | + | '{{ *[Uu]se (MDY) dates *[|}]', -- 173 | |
− | + | '{{ *[Uu]se *(mdy) *[|}]', -- 59 + 12 | |
− | + | '{{ *([Mm]dy) *[|}]', -- 9 | |
− | + | '{{ *[Uu]se (MDY) *[|}]', -- 3 | |
− | + | '{{ *([Dd]MY) *[|}]', -- 2 | |
− | + | '{{ *([Mm]DY) *[|}]', -- 0 | |
− | -- '{{ *( | + | -- '{{ *[Uu]se(mdy) *[|}]', |
− | -- '{{ *( | + | -- '{{ *[Uu]se(mdy)dates *[|}]', |
− | + | -- '{{ *[Uu]se(dmy) *[|}]', | |
− | ---- | + | } |
− | ---- ' | + | |
− | -- | + | local function get_date_format () |
+ | local content = mw.title.getCurrentTitle():getContent() or ''; -- get the content of the article or ''; new pages edited w/ve do not have 'content' until saved; ve does not preview; phab:T221625 | ||
+ | for _, pattern in ipairs (df_template_patterns) do -- loop through the patterns looking for {{Use dmy dates}} or {{Use mdy dates}} or any of their redirects | ||
+ | local start, _, match = content:find(pattern); -- match is the three letters indicating desired date format | ||
+ | if match then | ||
+ | content = content:match ('%b{}', start); -- get the whole template | ||
+ | if content:match ('| *cs1%-dates *= *[lsy][sy]?') then -- look for |cs1-dates=publication date length access-/archive-date length | ||
+ | return match:lower() .. '-' .. content:match ('| *cs1%-dates *= *([lsy][sy]?)'); | ||
+ | else | ||
+ | return match:lower() .. '-all'; -- no |cs1-dates= k/v pair; return value appropriate for use in |df= | ||
+ | end | ||
+ | end | ||
+ | end | ||
+ | end | ||
− | + | local global_df = get_date_format (); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--[[--------------------------< V O L U M E , I S S U E , P A G E S >---------------------------------------- | --[[--------------------------< V O L U M E , I S S U E , P A G E S >---------------------------------------- | ||
Dòng 544: | Dòng 542: | ||
['dead'] = {'dead'}, -- url-status -- Used by InternetArchiveBot | ['dead'] = {'dead'}, -- url-status -- Used by InternetArchiveBot | ||
['dmy'] = {'dmy'}, -- df | ['dmy'] = {'dmy'}, -- df | ||
− | |||
− | |||
['dmy-all'] = {'dmy-all'}, -- df | ['dmy-all'] = {'dmy-all'}, -- df | ||
− | |||
− | |||
['foreword'] = {'foreword'}, -- contribution | ['foreword'] = {'foreword'}, -- contribution | ||
['free'] = {'free'}, -- url-access -- Used by InternetArchiveBot | ['free'] = {'free'}, -- url-access -- Used by InternetArchiveBot | ||
Dòng 634: | Dòng 628: | ||
['yes_true_y'] = make_keywords_list ({keywords.affirmative}), | ['yes_true_y'] = make_keywords_list ({keywords.affirmative}), | ||
['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 | + | ['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 | -- ['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}), | ||
Dòng 920: | Dòng 914: | ||
local error_conditions = { | local error_conditions = { | ||
accessdate_missing_url = { | accessdate_missing_url = { | ||
− | message = ' | + | message = '<code class="cs1-code">|access-date=</code> requires <code class="cs1-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', | ||
Dòng 932: | Dòng 926: | ||
}, | }, | ||
archive_missing_date = { | archive_missing_date = { | ||
− | message = '<code class="cs1-code">|archive-url=</code> | + | message = '<code class="cs1-code">|archive-url=</code> requires <code class="cs1-code">|archive-date=</code>', |
anchor = 'archive_missing_date', | anchor = 'archive_missing_date', | ||
category = 'Trang có lỗi chú thích archiveurl', | category = 'Trang có lỗi chú thích archiveurl', | ||
Dòng 938: | Dòng 932: | ||
}, | }, | ||
archive_missing_url = { | archive_missing_url = { | ||
− | message = '<code class="cs1-code">|archive-url=</code> | + | message = '<code class="cs1-code">|archive-url=</code> requires <code class="cs1-code">|url=</code>', |
anchor = 'archive_missing_url', | anchor = 'archive_missing_url', | ||
category = 'Trang có lỗi chú thích archiveurl', | category = 'Trang có lỗi chú thích archiveurl', | ||
Dòng 956: | Dòng 950: | ||
}, | }, | ||
bad_arxiv = { | bad_arxiv = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|arxiv=</code> value', |
anchor = 'bad_arxiv', | anchor = 'bad_arxiv', | ||
category = 'Lỗi chú thích arXiv', | category = 'Lỗi chú thích arXiv', | ||
Dòng 962: | Dòng 956: | ||
}, | }, | ||
bad_asin = { | bad_asin = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|asin=</code> value', |
anchor = 'bad_asin', | anchor = 'bad_asin', | ||
category ='Lỗi chú thích ASIN', | category ='Lỗi chú thích ASIN', | ||
Dòng 968: | Dòng 962: | ||
}, | }, | ||
bad_bibcode = { | bad_bibcode = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|bibcode=</code> $1', -- $1 is error message detail |
anchor = 'bad_bibcode', | anchor = 'bad_bibcode', | ||
category = 'Lỗi chú thích bibcode', | category = 'Lỗi chú thích bibcode', | ||
Dòng 974: | Dòng 968: | ||
}, | }, | ||
bad_biorxiv = { | bad_biorxiv = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|biorxiv=</code> value', |
anchor = 'bad_biorxiv', | anchor = 'bad_biorxiv', | ||
category = 'Lỗi chú thích bioRxiv', | category = 'Lỗi chú thích bioRxiv', | ||
Dòng 980: | Dòng 974: | ||
}, | }, | ||
bad_citeseerx = { | bad_citeseerx = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|citeseerx=</code> value', |
anchor = 'bad_citeseerx', | anchor = 'bad_citeseerx', | ||
category = 'Lỗi chú thích citeseerx', | category = 'Lỗi chú thích citeseerx', | ||
Dòng 986: | Dòng 980: | ||
}, | }, | ||
bad_date = { | bad_date = { | ||
− | message = ' | + | message = 'Check date values in: <code class="cs1-code">$1</code>', -- $1 is parameter name |
anchor = 'bad_date', | anchor = 'bad_date', | ||
category = 'Lỗi chú thích ngày tháng', | category = 'Lỗi chú thích ngày tháng', | ||
Dòng 992: | Dòng 986: | ||
}, | }, | ||
bad_doi = { | bad_doi = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|doi=</code> value', |
anchor = 'bad_doi', | anchor = 'bad_doi', | ||
category = 'Lỗi chú thích DOI', | category = 'Lỗi chú thích DOI', | ||
Dòng 998: | Dòng 992: | ||
}, | }, | ||
bad_hdl = { | bad_hdl = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|hdl=</code> value', |
anchor = 'bad_hdl', | anchor = 'bad_hdl', | ||
category = 'Lỗi chú thích HDL', | category = 'Lỗi chú thích HDL', | ||
Dòng 1.004: | Dòng 998: | ||
}, | }, | ||
bad_isbn = { | bad_isbn = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|isbn=</code> value: $1', -- $1 is error message detail |
anchor = 'bad_isbn', | anchor = 'bad_isbn', | ||
category = 'Lỗi chú thích ISBN', | category = 'Lỗi chú thích ISBN', | ||
Dòng 1.010: | Dòng 1.004: | ||
}, | }, | ||
bad_ismn = { | bad_ismn = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|ismn=</code> value', |
anchor = 'bad_ismn', | anchor = 'bad_ismn', | ||
category = 'Lỗi chú thích ISMN', | category = 'Lỗi chú thích ISMN', | ||
Dòng 1.016: | Dòng 1.010: | ||
}, | }, | ||
bad_issn = { | bad_issn = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|$1issn=</code> value', -- $1 is 'e' or '' for eissn or issn |
anchor = 'bad_issn', | anchor = 'bad_issn', | ||
category = 'Lỗi chú thích ISSN', | category = 'Lỗi chú thích ISSN', | ||
Dòng 1.022: | Dòng 1.016: | ||
}, | }, | ||
bad_jfm = { | bad_jfm = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|jfm=</code> value', |
anchor = 'bad_jfm', | anchor = 'bad_jfm', | ||
category = 'Lỗi chú thích JFM', | category = 'Lỗi chú thích JFM', | ||
Dòng 1.028: | Dòng 1.022: | ||
}, | }, | ||
bad_lccn = { | bad_lccn = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|lccn=</code> value', |
anchor = 'bad_lccn', | anchor = 'bad_lccn', | ||
category = 'Lỗi chú thích LCCN', | category = 'Lỗi chú thích LCCN', | ||
Dòng 1.034: | Dòng 1.028: | ||
}, | }, | ||
bad_usenet_id = { | bad_usenet_id = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|message-id=</code> value', |
anchor = 'bad_message_id', | anchor = 'bad_message_id', | ||
category = 'Lỗi chú thích message-id', | category = 'Lỗi chú thích message-id', | ||
Dòng 1.040: | Dòng 1.034: | ||
}, | }, | ||
bad_mr = { | bad_mr = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|mr=</code> value', |
anchor = 'bad_mr', | anchor = 'bad_mr', | ||
category = 'Lỗi chú thích MR', | category = 'Lỗi chú thích MR', | ||
Dòng 1.046: | Dòng 1.040: | ||
}, | }, | ||
bad_ol = { | bad_ol = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|ol=</code> value', |
anchor = 'bad_ol', | anchor = 'bad_ol', | ||
category = 'Lỗi chú thích OL', | category = 'Lỗi chú thích OL', | ||
Dòng 1.052: | Dòng 1.046: | ||
}, | }, | ||
bad_paramlink = { -- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link= | bad_paramlink = { -- for |title-link=, |author/editor/translator-link=, |series-link=, |episode-link= | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|$1=</code> value', -- $1 is parameter name |
anchor = 'bad_paramlink', | anchor = 'bad_paramlink', | ||
category = 'Lỗi chú thích tham số liên kết', | category = 'Lỗi chú thích tham số liên kết', | ||
Dòng 1.058: | Dòng 1.052: | ||
}, | }, | ||
bad_pmc = { | bad_pmc = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|pmc=</code> value', |
anchor = 'bad_pmc', | anchor = 'bad_pmc', | ||
category = 'Lỗi chú thích PMC', | category = 'Lỗi chú thích PMC', | ||
Dòng 1.064: | Dòng 1.058: | ||
}, | }, | ||
bad_pmid = { | bad_pmid = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|pmid=</code> value', |
anchor = 'bad_pmid', | anchor = 'bad_pmid', | ||
category = 'Lỗi chú thích PMID', | category = 'Lỗi chú thích PMID', | ||
Dòng 1.070: | Dòng 1.064: | ||
}, | }, | ||
bad_oclc = { | bad_oclc = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|oclc=</code> value', |
anchor = 'bad_oclc', | anchor = 'bad_oclc', | ||
category = 'Lỗi chú thích OCLC', | category = 'Lỗi chú thích OCLC', | ||
Dòng 1.076: | Dòng 1.070: | ||
}, | }, | ||
bad_s2cid = { | bad_s2cid = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|s2cid=</code> value', |
anchor = 'bad_s2cid', | anchor = 'bad_s2cid', | ||
category = 'Lỗi chú thích S2CID', | category = 'Lỗi chú thích S2CID', | ||
Dòng 1.082: | Dòng 1.076: | ||
}, | }, | ||
bad_sbn = { | bad_sbn = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|sbn=</code> value: $1', -- $1 is error message detail |
anchor = 'bad_sbn', | anchor = 'bad_sbn', | ||
category = 'Lỗi chú thích SBN', | category = 'Lỗi chú thích SBN', | ||
Dòng 1.088: | Dòng 1.082: | ||
}, | }, | ||
bad_ssrn = { | bad_ssrn = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|ssrn=</code> value', |
anchor = 'bad_ssrn', | anchor = 'bad_ssrn', | ||
category = 'Lỗi chú thích SSRN', | category = 'Lỗi chú thích SSRN', | ||
Dòng 1.094: | Dòng 1.088: | ||
}, | }, | ||
bad_url = { | bad_url = { | ||
− | message = ' | + | message = 'Check $1 value', -- $1 is parameter name |
anchor = 'bad_url', | anchor = 'bad_url', | ||
category = 'Trang có lỗi URL', | category = 'Trang có lỗi URL', | ||
Dòng 1.100: | Dòng 1.094: | ||
}, | }, | ||
bad_zbl = { | bad_zbl = { | ||
− | message = ' | + | message = 'Check <code class="cs1-code">|zbl=</code> value', |
anchor = 'bad_zbl', | anchor = 'bad_zbl', | ||
category = 'Lỗi chú thích ZBL', | category = 'Lỗi chú thích ZBL', | ||
Dòng 1.106: | Dòng 1.100: | ||
}, | }, | ||
bare_url_missing_title = { | bare_url_missing_title = { | ||
− | message = '$1 | + | message = '$1 missing title', -- $1 is parameter name |
anchor = 'bare_url_missing_title', | anchor = 'bare_url_missing_title', | ||
category = 'Trang có URL trần', | category = 'Trang có URL trần', | ||
Dòng 1.112: | Dòng 1.106: | ||
}, | }, | ||
biorxiv_missing = { | biorxiv_missing = { | ||
− | message = ' | + | message = '<code class="cs1-code">|biorxiv=</code> required', |
anchor = 'biorxiv_missing', | anchor = 'biorxiv_missing', | ||
category = 'Lỗi chú thích bioRxiv', -- same as bad bioRxiv | category = 'Lỗi chú thích bioRxiv', -- same as bad bioRxiv | ||
Dòng 1.118: | Dòng 1.112: | ||
}, | }, | ||
chapter_ignored = { | chapter_ignored = { | ||
− | message = ' | + | message = '<code class="cs1-code">|$1=</code> ignored', -- $1 is parameter name |
anchor = 'chapter_ignored', | anchor = 'chapter_ignored', | ||
category = 'Lỗi chú thích bỏ qua chương', | category = 'Lỗi chú thích bỏ qua chương', | ||
Dòng 1.124: | Dòng 1.118: | ||
}, | }, | ||
citation_missing_title = { | citation_missing_title = { | ||
− | message = ' | + | message = 'Missing or empty <code class="cs1-code">|$1=</code>', -- $1 is parameter name |
anchor = 'citation_missing_title', | anchor = 'citation_missing_title', | ||
category = 'Lỗi chú thích thiếu tiêu đề', | category = 'Lỗi chú thích thiếu tiêu đề', | ||
Dòng 1.130: | Dòng 1.124: | ||
}, | }, | ||
citeseerx_missing = { | citeseerx_missing = { | ||
− | message = ' | + | message = '<code class="cs1-code">|citeseerx=</code> required', |
anchor = 'citeseerx_missing', | anchor = 'citeseerx_missing', | ||
category = 'Lỗi chú thích citeseerx', -- same as bad citeseerx | category = 'Lỗi chú thích citeseerx', -- same as bad citeseerx | ||
Dòng 1.136: | Dòng 1.130: | ||
}, | }, | ||
cite_web_url = { -- this error applies to cite web and to cite podcast | cite_web_url = { -- this error applies to cite web and to cite podcast | ||
− | message = ' | + | message = 'Missing or empty <code class="cs1-code">|url=</code>', |
anchor = 'cite_web_url', | anchor = 'cite_web_url', | ||
category = 'Lỗi chú thích web thiếu URL', | category = 'Lỗi chú thích web thiếu URL', | ||
Dòng 1.142: | Dòng 1.136: | ||
}, | }, | ||
class_ignored = { | class_ignored = { | ||
− | message = ' | + | message = '<code class="cs1-code">|class=</code> ignored', |
anchor = 'class_ignored', | anchor = 'class_ignored', | ||
category = 'Lỗi chú thích class', | category = 'Lỗi chú thích class', | ||
Dòng 1.148: | Dòng 1.142: | ||
}, | }, | ||
contributor_ignored = { | contributor_ignored = { | ||
− | message = ' | + | message = '<code class="cs1-code">|contributor=</code> ignored', |
anchor = 'contributor_ignored', | anchor = 'contributor_ignored', | ||
category = 'Lỗi chú thích tác giả', | category = 'Lỗi chú thích tác giả', | ||
Dòng 1.178: | Dòng 1.172: | ||
}, | }, | ||
etal = { | etal = { | ||
− | message = ' | + | message = 'Explicit use of et al. in: <code class="cs1-code">|$1=</code>', -- $1 is parameter name |
anchor = 'explicit_et_al', | anchor = 'explicit_et_al', | ||
category = 'Lỗi chú thích dùng et al.', | category = 'Lỗi chú thích dùng et al.', | ||
Dòng 1.190: | Dòng 1.184: | ||
}, | }, | ||
format_missing_url = { | format_missing_url = { | ||
− | message = '<code class="cs1-code">|$1=</code> | + | message = '<code class="cs1-code">|$1=</code> requires <code class="cs1-code">|$2=</code>', -- $1 is format parameter $2 is url parameter |
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', | ||
Dòng 1.196: | Dòng 1.190: | ||
}, | }, | ||
invalid_param_val = { | invalid_param_val = { | ||
− | message = '<code class="cs1-code">|$1=$2</code> | + | message = 'Invalid <code class="cs1-code">|$1=$2</code>', -- $1 is parameter name $2 is paramter value |
anchor = 'invalid_param_val', | anchor = 'invalid_param_val', | ||
category = 'CS1 errors: invalid parameter value', | category = 'CS1 errors: invalid parameter value', | ||
Dòng 1.202: | Dòng 1.196: | ||
}, | }, | ||
invisible_char = { | invisible_char = { | ||
− | message = '$1 | + | message = '$1 in $2 at position $3', -- $1 is invisible char $2 is parameter name $3 is position number |
anchor = 'invisible_char', | anchor = 'invisible_char', | ||
category = 'CS1 errors: invisible characters', | category = 'CS1 errors: invisible characters', | ||
Dòng 1.208: | Dòng 1.202: | ||
}, | }, | ||
missing_name = { | missing_name = { | ||
− | message = ' | + | message = 'Missing <code class="cs1-code">|$1$2=</code>', -- $1 is modified NameList; $2 is enumerator |
anchor = 'missing_name', | anchor = 'missing_name', | ||
category = 'CS1 errors: missing name', -- author, contributor, editor, interviewer, translator | category = 'CS1 errors: missing name', -- author, contributor, editor, interviewer, translator | ||
Dòng 1.214: | Dòng 1.208: | ||
}, | }, | ||
missing_periodical = { | missing_periodical = { | ||
− | message = ' | + | message = 'Cite $1 requires <code class="cs1-code">|$2=</code>', -- $1 is cs1 template name; $2 is canonical periodical parameter name for cite $1 |
anchor = 'missing_periodical', | anchor = 'missing_periodical', | ||
category = 'CS1 errors: missing periodical', | category = 'CS1 errors: missing periodical', | ||
Dòng 1.220: | Dòng 1.214: | ||
}, | }, | ||
missing_pipe = { | missing_pipe = { | ||
− | message = ' | + | message = 'Missing pipe in: <code class="cs1-code">|$1=</code>', -- $1 is parameter name |
anchor = 'missing_pipe', | anchor = 'missing_pipe', | ||
category = 'CS1 errors: missing pipe', | category = 'CS1 errors: missing pipe', | ||
Dòng 1.232: | Dòng 1.226: | ||
}, | }, | ||
param_has_ext_link = { | param_has_ext_link = { | ||
− | message = ' | + | message = 'External link in <code class="cs1-code">$1</code>', -- $1 is parameter name |
anchor = 'param_has_ext_link', | anchor = 'param_has_ext_link', | ||
category = 'CS1 errors: external links', | category = 'CS1 errors: external links', | ||
Dòng 1.238: | Dòng 1.232: | ||
}, | }, | ||
parameter_ignored = { | parameter_ignored = { | ||
− | message = ' | + | message = 'Unknown parameter <code class="cs1-code">|$1=</code> ignored', -- $1 is parameter name |
anchor = 'parameter_ignored', | anchor = 'parameter_ignored', | ||
− | category = ' | + | category = 'Pages with citations using unsupported parameters', |
hidden = false | hidden = false | ||
}, | }, | ||
parameter_ignored_suggest = { | parameter_ignored_suggest = { | ||
− | message = ' | + | message = 'Unknown parameter <code class="cs1-code">|$1=</code> ignored (<code class="cs1-code">|$2=</code> suggested)', -- $1 is unknown paramter $2 is suggested parameter name |
anchor = 'parameter_ignored_suggest', | anchor = 'parameter_ignored_suggest', | ||
− | category = ' | + | category = 'Pages with citations using unsupported parameters', |
hidden = false | hidden = false | ||
}, | }, | ||
redundant_parameters = { | redundant_parameters = { | ||
− | message = ' | + | message = 'More than one of $1 specified', -- $1 is error message detail |
anchor = 'redundant_parameters', | anchor = 'redundant_parameters', | ||
− | category = ' | + | category = 'Pages with citations having redundant parameters', |
hidden = false | hidden = false | ||
}, | }, | ||
script_parameter = { | script_parameter = { | ||
− | message = '<code class="cs1-code">|$1=</code> | + | message = 'Invalid <code class="cs1-code">|$1=</code>: $2', -- $1 is parameter name $2 is script language code or error detail |
anchor = 'script_parameter', | anchor = 'script_parameter', | ||
category = 'CS1 errors: script parameters', | category = 'CS1 errors: script parameters', | ||
Dòng 1.262: | Dòng 1.256: | ||
}, | }, | ||
ssrn_missing = { | ssrn_missing = { | ||
− | message = ' | + | message = '<code class="cs1-code">|ssrn=</code> required', |
anchor = 'ssrn_missing', | anchor = 'ssrn_missing', | ||
category = 'CS1 errors: ssrn', -- same as bad arxiv | category = 'CS1 errors: ssrn', -- same as bad arxiv | ||
Dòng 1.268: | Dòng 1.262: | ||
}, | }, | ||
text_ignored = { | text_ignored = { | ||
− | message = ' | + | message = 'Text "$1" ignored', -- $1 is ignored text |
anchor = 'text_ignored', | anchor = 'text_ignored', | ||
category = 'Pages with citations using unnamed parameters', | category = 'Pages with citations using unnamed parameters', | ||
Dòng 1.280: | Dòng 1.274: | ||
}, | }, | ||
vancouver = { | vancouver = { | ||
− | message = ' | + | message = 'Vancouver style error: $1', -- $1 is error detail |
anchor = 'vancouver', | anchor = 'vancouver', | ||
category = 'CS1 errors: Vancouver style', | category = 'CS1 errors: Vancouver style', | ||
Dòng 1.286: | Dòng 1.280: | ||
}, | }, | ||
wikilink_in_url = { | wikilink_in_url = { | ||
− | message = ' | + | message = 'URL–wikilink conflict', -- uses ndash |
anchor = 'wikilink_in_url', | anchor = 'wikilink_in_url', | ||
category = 'CS1 errors: URL–wikilink conflict', -- uses ndash | category = 'CS1 errors: URL–wikilink conflict', -- uses ndash | ||
Dòng 1.560: | Dòng 1.554: | ||
encode = true, | encode = true, | ||
separator = ' ', | separator = ' ', | ||
− | id_limit = | + | id_limit = 7500000, |
access = 'free', -- free to read | access = 'free', -- free to read | ||
}, | }, | ||
Dòng 1.574: | Dòng 1.568: | ||
encode = false, | encode = false, | ||
separator = ' ', | separator = ' ', | ||
− | id_limit = | + | id_limit = 33000000, |
}, | }, | ||
['RFC'] = { | ['RFC'] = { | ||
Dòng 1.624: | Dòng 1.618: | ||
encode = false, | encode = false, | ||
separator = ' ', | separator = ' ', | ||
− | id_limit = | + | id_limit = 230000000, |
custom_access = 's2cid-access', | custom_access = 's2cid-access', | ||
}, | }, |