模块:Citation/CS1/Configuration:修订间差异
外观
imported>LogesadarSM 小无编辑摘要 |
imported>Lanwi1 小 取消LogesadarSM(对话)的编辑;更改回Liangent的最后一个版本 |
||
| 第20行: | 第20行: | ||
['lay summary'] = 'Lay summary', | ['lay summary'] = 'Lay summary', | ||
['retrieved'] = '[$1]', | ['retrieved'] = '[$1]', | ||
['inactive'] = ' | ['inactive'] = '不活跃', | ||
['archived-dead'] = '($ | ['archived-dead'] = '($1存档于$2)', | ||
['archived-not-dead'] = ' | ['archived-not-dead'] = '(原始内容$1于$2)', | ||
['archived-missing'] = ' | ['archived-missing'] = '(原始内容$1存档于$2)', | ||
['archived'] = ' | ['archived'] = '存档', | ||
['original'] = ' | ['original'] = '原始内容', | ||
['editor'] = ' | ['editor'] = '编', | ||
['editors'] = ' | ['editors'] = '编', | ||
['edition'] = '$1', | ['edition'] = '$1', | ||
['episode'] = '集', | ['episode'] = '集', | ||
['season'] = ' | ['season'] = '节', | ||
['series'] = '系列', | ['series'] = '系列', | ||
['written'] = ' | ['written'] = '写于$1', | ||
['in'] = '( | ['in'] = '(编)', | ||
['et al'] = ' | ['et al'] = '等', | ||
['subscription'] = '<span style="font-size:0.95em; font-size:90%; color:#555"> | ['subscription'] = '<span style="font-size:0.95em; font-size:90%; color:#555">(需要订阅)</span>', | ||
['language'] = '($1)', | ['language'] = '($1)', | ||
['via'] = " — | ['via'] = " —通过$1", | ||
['event'] = ' | ['event'] = '事件发生在', | ||
['minutes'] = ' | ['minutes'] = '记录于', | ||
['quoted-title'] = '$1', | ['quoted-title'] = '$1', | ||
| 第57行: | 第57行: | ||
-- Determines the location of the help page | -- Determines the location of the help page | ||
['help page link'] = 'Help: | ['help page link'] = 'Help:引文格式1错误', | ||
['help page label'] = ' | ['help page label'] = '帮助', | ||
-- Internal errors (should only occur if configuration is bad) | -- Internal errors (should only occur if configuration is bad) | ||
['undefined_error'] = ' | ['undefined_error'] = '调用了一个未定义的错误条件', | ||
['unknown_manual_ID'] = ' | ['unknown_manual_ID'] = '无法识别的手动ID模式', | ||
['unknown_ID_mode'] = ' | ['unknown_ID_mode'] = '无法识别的ID模式', | ||
['unknown_argument_map'] = 'Argument map not defined for this variable', | ['unknown_argument_map'] = 'Argument map not defined for this variable', | ||
['bare_url_no_origin'] = 'Bare url found but origin indicator is nil or empty', | ['bare_url_no_origin'] = 'Bare url found but origin indicator is nil or empty', | ||
| 第208行: | 第208行: | ||
message = '使用<code>|accessdate=</code>需要含有<code>|url=</code>', | message = '使用<code>|accessdate=</code>需要含有<code>|url=</code>', | ||
anchor = 'accessdate_missing_url', | anchor = 'accessdate_missing_url', | ||
category = ' | category = '含有访问日期但无网址的引用的页面', | ||
hidden = true }, | hidden = true }, | ||
archive_missing_date = { | archive_missing_date = { | ||
message = '使用<code>|archiveurl=</code>需要含有<code>|archivedate=</code>', | message = '使用<code>|archiveurl=</code>需要含有<code>|archivedate=</code>', | ||
anchor = 'archive_missing_date', | anchor = 'archive_missing_date', | ||
category = ' | category = '含有存档网址错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
archive_missing_url = { | archive_missing_url = { | ||
message = '使用<code>|archiveurl=</code>需要含有<code>|url=</code>', | message = '使用<code>|archiveurl=</code>需要含有<code>|url=</code>', | ||
anchor = 'archive_missing_url', | anchor = 'archive_missing_url', | ||
category = ' | category = '含有存档网址错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
bad_doi = { | bad_doi = { | ||
message = ' | message = '请检查<code>|doi=</code>值', | ||
anchor = 'bad_doi', | anchor = 'bad_doi', | ||
category = ' | category = '含有DOI错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
bad_isbn = { | bad_isbn = { | ||
message = ' | message = '请检查<code>|isbn=</code>值', | ||
anchor = 'bad_isbn', | anchor = 'bad_isbn', | ||
category = ' | category = '含有ISBN错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
bad_ol = { | bad_ol = { | ||
message = ' | message = '请检查<code>|ol=</code>值', | ||
anchor = 'bad_ol', | anchor = 'bad_ol', | ||
category = ' | category = '含有OL错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
bad_url = { | bad_url = { | ||
message = ' | message = '请检查<code>|url=</code>格式', | ||
anchor = 'bad_url', | anchor = 'bad_url', | ||
category = ' | category = '含有网址格式错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
bare_url_missing_title = { | bare_url_missing_title = { | ||
message = '$ | message = '$1缺少标题', | ||
anchor = 'bare_url_missing_title', | anchor = 'bare_url_missing_title', | ||
category = ' | category = '含有裸露网址的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
citation_missing_title = { | citation_missing_title = { | ||
message = '缺少或<code>|title=</code> | message = '缺少或<code>|title=</code>为空', | ||
anchor = 'citation_missing_title', | anchor = 'citation_missing_title', | ||
category = ' | category = '含有缺少标题的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
cite_web_url = { | cite_web_url = { | ||
message = '缺少或<code>|url=</code> | message = '缺少或<code>|url=</code>为空', | ||
anchor = 'cite_web_url', | anchor = 'cite_web_url', | ||
category = ' | category = '含有缺少网址的网站引用的页面', | ||
hidden = true }, | hidden = true }, | ||
empty_citation = { | empty_citation = { | ||
message = '空引用', | message = '空引用', | ||
anchor = 'empty_citation', | anchor = 'empty_citation', | ||
category = ' | category = '含有空引用的页面', | ||
hidden = false }, | hidden = false }, | ||
extra_pages = { | extra_pages = { | ||
message = '<code>|pages=</code>或<code>|at=</code>多余', | message = '<code>|pages=</code>或<code>|at=</code>多余', | ||
anchor = 'extra_pages', | anchor = 'extra_pages', | ||
category = ' | category = '含有页码指定冲突的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
format_missing_url = { | format_missing_url = { | ||
message = '使用<code>|format=</code>需要含有<code>|url=</code>', | message = '使用<code>|format=</code>需要含有<code>|url=</code>', | ||
anchor = 'format_missing_url', | anchor = 'format_missing_url', | ||
category = ' | category = '含有网络文件格式但无网址的引用的页面', | ||
hidden = true }, | hidden = true }, | ||
implict_etal_author = { | implict_etal_author = { | ||
message = ' | message = '建议使用<code>|displayauthors=</code>', | ||
anchor = 'displayauthors', | anchor = 'displayauthors', | ||
category = ' | category = '含有旧式缩略标签的引用的页面', | ||
hidden = true }, | hidden = true }, | ||
implict_etal_editor = { | implict_etal_editor = { | ||
message = ' | message = '建议使用<code>|displayeditors=</code>', | ||
anchor = 'displayeditors', | anchor = 'displayeditors', | ||
category = ' | category = '含有旧式缩略标签的引用的页面', | ||
hidden = true }, | hidden = true }, | ||
parameter_ignored = { | parameter_ignored = { | ||
message = ' | message = '已忽略未知参数<code>|$1=</code>', | ||
anchor = 'parameter_ignored', | anchor = 'parameter_ignored', | ||
category = ' | category = '含有未知参数的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
parameter_ignored_suggest = { | parameter_ignored_suggest = { | ||
message = ' | message = '已忽略未知参数<code>|$1=</code>(建议使用<code>|$2=</code>)', | ||
anchor = 'parameter_ignored_suggest', | anchor = 'parameter_ignored_suggest', | ||
category = ' | category = '含有未知参数的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
redundant_parameters = { | redundant_parameters = { | ||
message = '$1只需其一', | message = '$1只需其一', | ||
anchor = 'redundant_parameters', | anchor = 'redundant_parameters', | ||
category = ' | category = '含有冗余参数的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
text_ignored = { | text_ignored = { | ||
message = '已忽略文本“$1”', | message = '已忽略文本“$1”', | ||
anchor = 'text_ignored', | anchor = 'text_ignored', | ||
category = ' | category = '含有未命名参数的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
trans_missing_chapter = { | trans_missing_chapter = { | ||
message = '使用<code>|trans-chapter=</code>需要含有<code>|chapter=</code>', | message = '使用<code>|trans-chapter=</code>需要含有<code>|chapter=</code>', | ||
anchor = 'trans_missing_chapter', | anchor = 'trans_missing_chapter', | ||
category = ' | category = '含有不带原名的译名的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
trans_missing_title = { | trans_missing_title = { | ||
message = '使用<code>|trans-title=</code>需要含有<code>|title=</code>', | message = '使用<code>|trans-title=</code>需要含有<code>|title=</code>', | ||
anchor = 'trans_missing_title', | anchor = 'trans_missing_title', | ||
category = ' | category = '含有不带原名的译名的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
wikilink_in_url = { | wikilink_in_url = { | ||
message = ' | message = '在网址标题中嵌入维基内链', | ||
anchor = 'wikilink_in_url', | anchor = 'wikilink_in_url', | ||
category = ' | category = '含有将维基内链嵌入网址标题的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
} | } | ||
| 第320行: | 第320行: | ||
['ASIN'] = { | ['ASIN'] = { | ||
parameters = { 'asin', 'ASIN' }, | parameters = { 'asin', 'ASIN' }, | ||
link = ' | link = '亚马逊标准识别码', | ||
label = 'ASIN', | label = 'ASIN', | ||
mode = 'manual', | mode = 'manual', | ||
| 第332行: | 第332行: | ||
label = 'doi', | label = 'doi', | ||
mode = 'manual', | mode = 'manual', | ||
prefix ='/', | prefix = 'http://dx.doi.org/', | ||
COinS = 'info:doi', | COinS = 'info:doi', | ||
separator = ':', | separator = ':', | ||
| 第339行: | 第339行: | ||
['OL'] = { | ['OL'] = { | ||
parameters = { 'ol', 'OL' }, | parameters = { 'ol', 'OL' }, | ||
link = ' | link = '开放图书馆', | ||
label = 'OL', | label = 'OL', | ||
mode = 'manual', | mode = 'manual', | ||
| 第351行: | 第351行: | ||
label = 'arXiv', | label = 'arXiv', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/abs/', | prefix = 'http://arxiv.org/abs/', | ||
encode = false, | encode = false, | ||
COinS = 'info:arxiv', | COinS = 'info:arxiv', | ||
| 第361行: | 第361行: | ||
label = 'Bibcode', | label = 'Bibcode', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/abs/', | prefix = 'http://adsabs.harvard.edu/abs/', | ||
encode = false, | encode = false, | ||
COinS = 'info:bibcode', | COinS = 'info:bibcode', | ||
| 第368行: | 第368行: | ||
['ISBN'] = { | ['ISBN'] = { | ||
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'}, | parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'}, | ||
link = ' | link = '国际标准书号', | ||
label = 'ISBN', | label = 'ISBN', | ||
mode = 'manual', | mode = 'manual', | ||
| 第377行: | 第377行: | ||
['ISSN'] = { | ['ISSN'] = { | ||
parameters = {'issn', 'ISSN'}, | parameters = {'issn', 'ISSN'}, | ||
link = ' | link = '国际标准连续出版物号', | ||
label = 'ISSN', | label = 'ISSN', | ||
mode = 'external', | mode = 'external', | ||
| 第390行: | 第390行: | ||
label = 'JFM', | label = 'JFM', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/zmath/en/search/?format=complete&q=an:', | prefix = 'http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:', | ||
COinS = 'rft.jfm', | COinS = 'rft.jfm', | ||
encode = true, | encode = true, | ||
| 第400行: | 第400行: | ||
label = 'JSTOR', | label = 'JSTOR', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/stable/', | prefix = 'http://www.jstor.org/stable/', | ||
COinS = 'rft.jstor', | COinS = 'rft.jstor', | ||
encode = true, | encode = true, | ||
| 第407行: | 第407行: | ||
['LCCN'] = { | ['LCCN'] = { | ||
parameters = {'LCCN', 'lccn'}, | parameters = {'LCCN', 'lccn'}, | ||
link = ' | link = '美国国会图书馆控制码', | ||
label = 'LCCN', | label = 'LCCN', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/', | prefix = 'http://lccn.loc.gov/', | ||
COinS = 'rft.lccn', | COinS = 'rft.lccn', | ||
encode = false, | encode = false, | ||
| 第420行: | 第420行: | ||
label = 'MR', | label = 'MR', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/mathscinet-getitem?mr=', | prefix = 'http://www.ams.org/mathscinet-getitem?mr=', | ||
COinS = 'rft.mr', | COinS = 'rft.mr', | ||
encode = true, | encode = true, | ||
| 第437行: | 第437行: | ||
['OSTI'] = { | ['OSTI'] = { | ||
parameters = {'OSTI', 'osti'}, | parameters = {'OSTI', 'osti'}, | ||
link = ' | link = '科学和技术信息办公室', | ||
label = 'OSTI', | label = 'OSTI', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/energycitations/product.biblio.jsp?osti_id=', | prefix = 'http://www.osti.gov/energycitations/product.biblio.jsp?osti_id=', | ||
COinS = 'info:osti', | COinS = 'info:osti', | ||
encode = true, | encode = true, | ||
| 第447行: | 第447行: | ||
['PMC'] = { | ['PMC'] = { | ||
parameters = {'PMC', 'pmc'}, | parameters = {'PMC', 'pmc'}, | ||
link = ' | link = '公共医学中心', | ||
label = 'PMC', | label = 'PMC', | ||
mode = 'external', | mode = 'external', | ||
| 第458行: | 第458行: | ||
['PMID'] = { | ['PMID'] = { | ||
parameters = {'PMID', 'pmid'}, | parameters = {'PMID', 'pmid'}, | ||
link = ' | link = '公共医学识别码', | ||
label = 'PMID', | label = 'PMID', | ||
mode = 'external', | mode = 'external', | ||
| 第478行: | 第478行: | ||
['SSRN'] = { | ['SSRN'] = { | ||
parameters = {'SSRN', 'ssrn'}, | parameters = {'SSRN', 'ssrn'}, | ||
link = ' | link = '社会科学研究网络', | ||
label = 'SSRN', | label = 'SSRN', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/abstract=', | prefix = 'http://ssrn.com/abstract=', | ||
COinS = 'info:ssrn', | COinS = 'info:ssrn', | ||
encode = true, | encode = true, | ||
| 第491行: | 第491行: | ||
label = 'Zbl', | label = 'Zbl', | ||
mode = 'external', | mode = 'external', | ||
prefix ='/zmath/en/search/?format=complete&q=an:', | prefix = 'http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:', | ||
COinS = 'info:zbl', | COinS = 'info:zbl', | ||
encode = true, | encode = true, | ||
2013年4月30日 (二) 13:27的版本
此模块的文档可以在模块:Citation/CS1/Configuration/doc创建
citation_config = {};
--[[
List of namespaces that should not be included in citation
error categories. Same as setting notracking = true by default
Note: Namespace names should use underscores instead of spaces.
]]
citation_config.uncategorized_namespaces = { 'User', 'User_talk', 'Wikipedia_talk' };
--[[
Translation table
The following contains fixed text that may be output as part of a citation.
This is separated from the main body to aid in future translations of this
module.
]]
citation_config.messages = {
['published'] = '$1',
['lay summary'] = 'Lay summary',
['retrieved'] = '[$1]',
['inactive'] = '不活跃',
['archived-dead'] = '($1存档于$2)',
['archived-not-dead'] = '(原始内容$1于$2)',
['archived-missing'] = '(原始内容$1存档于$2)',
['archived'] = '存档',
['original'] = '原始内容',
['editor'] = '编',
['editors'] = '编',
['edition'] = '$1',
['episode'] = '集',
['season'] = '节',
['series'] = '系列',
['written'] = '写于$1',
['in'] = '(编)',
['et al'] = '等',
['subscription'] = '<span style="font-size:0.95em; font-size:90%; color:#555">(需要订阅)</span>',
['language'] = '($1)',
['via'] = " —通过$1",
['event'] = '事件发生在',
['minutes'] = '记录于',
['quoted-title'] = '$1',
['italic-title'] = "$1",
['trans-quoted-title'] = "[$1]",
['trans-italic-title'] = "[$1]",
['quoted-text'] = '"$1"',
['parameter'] = '<code>|$1=</code>',
['parameter-separator'] = '、',
['parameter-final-separator'] = '和',
['parameter-pair-separator'] = '和',
-- Error output
['hidden-error'] = '<span style="display:none;font-size:100%" class="error citation-comment">$1</span>',
['visible-error'] = '<span style="font-size:100%" class="error citation-comment">$1</span>',
-- Determines the location of the help page
['help page link'] = 'Help:引文格式1错误',
['help page label'] = '帮助',
-- Internal errors (should only occur if configuration is bad)
['undefined_error'] = '调用了一个未定义的错误条件',
['unknown_manual_ID'] = '无法识别的手动ID模式',
['unknown_ID_mode'] = '无法识别的ID模式',
['unknown_argument_map'] = 'Argument map not defined for this variable',
['bare_url_no_origin'] = 'Bare url found but origin indicator is nil or empty',
}
-- Aliases table for commonly passed parameters
citation_config.aliases = {
['AccessDate'] = 'accessdate',
['Agency'] = 'agency',
['AirDate'] = 'airdate',
['ArchiveDate'] = {'archive-date', 'archivedate' },
['ArchiveURL'] = {'archive-url', 'archiveurl' },
['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},
['At'] = 'at',
['Authors'] = 'authors',
['AuthorFormat'] = {"author-format", "authorformat" },
['AuthorSeparator'] = 'author-separator',
['AuthorNameSeparator'] = 'author-name-separator',
['BookTitle'] = 'booktitle',
['Chapter'] = {'chapter', 'contribution', 'entry', 'article' },
['ChapterLink'] = 'chapterlink',
['ChapterURL'] = {'chapter-url', 'chapterurl', 'contribution-url', 'contributionurl' },
['Coauthors'] = {'coauthors', 'coauthor' },
['Conference'] = 'conference',
['ConferenceURL'] = {'conference-url', 'conferenceurl' },
['Date'] = 'date',
['Day'] = 'day',
['DeadURL'] = 'deadurl',
['DisplayAuthors'] = {"display-authors", "displayauthors"},
['DisplayEditors'] = {"display-editors", "displayeditors"},
['DoiBroken'] = {'doi_inactivedate', 'doi_brokendate', 'DoiBroken'},
['Edition'] = 'edition',
['Editors'] = 'editors',
['EditorFormat'] = {"editor-format", "editorformat" },
['EditorSeparator'] = 'editor-separator',
['EditorNameSeparator'] = 'editor-name-separator',
['Embargo'] = {'Embargo', 'embargo'},
['Format'] = 'format',
['ID'] = {'id', 'ID', 'docket'},
['IgnoreISBN'] = {'ignore-isbn-error', 'ignoreisbnerror'},
['Issue'] = {'issue', 'number'},
['Language'] = {'language', 'in'},
['LastAuthorAmp'] = 'lastauthoramp',
['LayDate'] = 'laydate',
['LaySource'] = 'laysource',
['LayURL'] = {'layurl', 'laysummary'},
['Minutes'] = 'minutes',
['Month'] = 'month',
['NameSeparator'] = 'name-separator',
['Network'] = 'network',
['NoPP'] = 'nopp',
['NoTracking'] = {"template doc demo", 'nocat',
'notracking', "no-tracking"},
['OrigYear'] = 'origyear',
['Others'] = 'others',
['Page'] = {'p', 'page'},
['Pages'] = {'pp', 'pages'},
['Periodical'] = {'journal', 'newspaper', 'magazine', 'work',
'website', 'periodical', 'encyclopedia', 'encyclopaedia', 'dictionary'},
['Place'] = {'place', 'location'},
['PPrefix'] = 'PPrefix',
['PPPrefix'] = 'PPPrefix',
-- LOCAL
['PSuffix'] = 'PSuffix',
['PPSuffix'] = 'PPSuffix',
-- END LOCAL
['PostScript'] = 'postscript',
['PublicationDate'] = {'publicationdate', 'publication-date' },
['PublicationPlace'] = {'publication-place', 'publicationplace' },
['PublisherName'] = 'publisher',
['Quote'] = {'quote', 'quotation'},
['Ref'] = {'ref', 'Ref'},
['Season'] = 'season',
['Separator'] = 'separator',
['Series'] = {'series', 'version'},
['SeriesSeparator'] = 'series-separator',
['SeriesLink'] = 'serieslink',
['SeriesNumber'] = {'seriesnumber', 'seriesno'},
['Station'] = 'station',
['SubscriptionRequired'] = 'subscription',
['Time'] = 'time',
['TimeCaption'] = 'timecaption',
['Title'] = 'title',
['TitleLink'] = {'titlelink', 'episodelink' },
['TitleNote'] = 'department',
['TitleType'] = 'type',
['TransChapter'] = {'trans-chapter', 'trans_chapter' },
['Transcript'] = 'transcript',
['TranscriptURL'] = {'transcript-url', 'transcripturl'},
['TransTitle'] = {'trans-title', 'trans_title' },
['URL'] = {'url', 'URL'},
['Via'] = 'via',
['Volume'] = 'volume',
['Year'] = 'year',
['AuthorList-First'] = {"author#-first", "author-first#",
"first#", "given#"},
['AuthorList-Last'] = {"author#-last", "author-last#",
"last#", "surname#", "Author#", "author#", "authors#"},
['AuthorList-Link'] = {"author#-link", "author-link#",
"author#link", "authorlink#"},
['AuthorList-Mask'] = {"author#-mask", "author-mask#",
"author#mask", "authormask#"},
['EditorList-First'] = {"editor#-first",
"editor-first#", "EditorGiven#"},
['EditorList-Last'] = {"editor#-last", "editor-last#",
"EditorSurname#", "Editor#", "editor#", "editors#"},
['EditorList-Link'] = {"editor#-link", "editor-link#",
"editor#link", "editorlink#"},
['EditorList-Mask'] = {"editor#-mask", "editor-mask#",
"editor#mask", "editormask#"},
}
-- Default parameter values
citation_config.defaults = {
['DeadURL'] = 'yes',
['PostScript'] = '.',
['Separator'] = '.',
['AuthorSeparator'] = ';',
['EditorSeparator'] = ';',
['NameSeparator'] = ',',
['PPrefix'] = "",
['PPPrefix'] = "",
-- LOCAL
['PSuffix'] = "",
['PPSuffix'] = "",
-- END LOCAL
}
--[[
Error condition table
The following contains a list of IDs for various error conditions defined in the
code. For each ID, we specify a text message to display, an error category to
include, and whether the error message should be wrapped as a hidden comment.
Anchor changes require identical changes to matching anchor in Help:CS1 errors
]]
citation_config.error_conditions = {
accessdate_missing_url = {
message = '使用<code>|accessdate=</code>需要含有<code>|url=</code>',
anchor = 'accessdate_missing_url',
category = '含有访问日期但无网址的引用的页面',
hidden = true },
archive_missing_date = {
message = '使用<code>|archiveurl=</code>需要含有<code>|archivedate=</code>',
anchor = 'archive_missing_date',
category = '含有存档网址错误的引用的页面',
hidden = false },
archive_missing_url = {
message = '使用<code>|archiveurl=</code>需要含有<code>|url=</code>',
anchor = 'archive_missing_url',
category = '含有存档网址错误的引用的页面',
hidden = false },
bad_doi = {
message = '请检查<code>|doi=</code>值',
anchor = 'bad_doi',
category = '含有DOI错误的引用的页面',
hidden = false },
bad_isbn = {
message = '请检查<code>|isbn=</code>值',
anchor = 'bad_isbn',
category = '含有ISBN错误的引用的页面',
hidden = false },
bad_ol = {
message = '请检查<code>|ol=</code>值',
anchor = 'bad_ol',
category = '含有OL错误的引用的页面',
hidden = false },
bad_url = {
message = '请检查<code>|url=</code>格式',
anchor = 'bad_url',
category = '含有网址格式错误的引用的页面',
hidden = false },
bare_url_missing_title = {
message = '$1缺少标题',
anchor = 'bare_url_missing_title',
category = '含有裸露网址的引用的页面',
hidden = false },
citation_missing_title = {
message = '缺少或<code>|title=</code>为空',
anchor = 'citation_missing_title',
category = '含有缺少标题的引用的页面',
hidden = false },
cite_web_url = {
message = '缺少或<code>|url=</code>为空',
anchor = 'cite_web_url',
category = '含有缺少网址的网站引用的页面',
hidden = true },
empty_citation = {
message = '空引用',
anchor = 'empty_citation',
category = '含有空引用的页面',
hidden = false },
extra_pages = {
message = '<code>|pages=</code>或<code>|at=</code>多余',
anchor = 'extra_pages',
category = '含有页码指定冲突的引用的页面',
hidden = false },
format_missing_url = {
message = '使用<code>|format=</code>需要含有<code>|url=</code>',
anchor = 'format_missing_url',
category = '含有网络文件格式但无网址的引用的页面',
hidden = true },
implict_etal_author = {
message = '建议使用<code>|displayauthors=</code>',
anchor = 'displayauthors',
category = '含有旧式缩略标签的引用的页面',
hidden = true },
implict_etal_editor = {
message = '建议使用<code>|displayeditors=</code>',
anchor = 'displayeditors',
category = '含有旧式缩略标签的引用的页面',
hidden = true },
parameter_ignored = {
message = '已忽略未知参数<code>|$1=</code>',
anchor = 'parameter_ignored',
category = '含有未知参数的引用的页面',
hidden = false },
parameter_ignored_suggest = {
message = '已忽略未知参数<code>|$1=</code>(建议使用<code>|$2=</code>)',
anchor = 'parameter_ignored_suggest',
category = '含有未知参数的引用的页面',
hidden = false },
redundant_parameters = {
message = '$1只需其一',
anchor = 'redundant_parameters',
category = '含有冗余参数的引用的页面',
hidden = false },
text_ignored = {
message = '已忽略文本“$1”',
anchor = 'text_ignored',
category = '含有未命名参数的引用的页面',
hidden = false },
trans_missing_chapter = {
message = '使用<code>|trans-chapter=</code>需要含有<code>|chapter=</code>',
anchor = 'trans_missing_chapter',
category = '含有不带原名的译名的引用的页面',
hidden = false },
trans_missing_title = {
message = '使用<code>|trans-title=</code>需要含有<code>|title=</code>',
anchor = 'trans_missing_title',
category = '含有不带原名的译名的引用的页面',
hidden = false },
wikilink_in_url = {
message = '在网址标题中嵌入维基内链',
anchor = 'wikilink_in_url',
category = '含有将维基内链嵌入网址标题的引用的页面',
hidden = false },
}
citation_config.id_handlers = {
['ASIN'] = {
parameters = { 'asin', 'ASIN' },
link = '亚马逊标准识别码',
label = 'ASIN',
mode = 'manual',
COinS = 'info:asin',
separator = ' ',
encode = false;
},
['DOI'] = {
parameters = { 'doi', 'DOI' },
link = '數位物件識別號',
label = 'doi',
mode = 'manual',
prefix = 'http://dx.doi.org/',
COinS = 'info:doi',
separator = ':',
encode = true,
},
['OL'] = {
parameters = { 'ol', 'OL' },
link = '开放图书馆',
label = 'OL',
mode = 'manual',
COinS = 'info:olnum',
separator = ' ',
endode = true,
},
['ARXIV'] = {
parameters = {'arxiv', 'ARXIV'},
link = 'arXiv',
label = 'arXiv',
mode = 'external',
prefix = 'http://arxiv.org/abs/',
encode = false,
COinS = 'info:arxiv',
separator = ':',
},
['BIBCODE'] = {
parameters = {'bibcode', 'BIBCODE'},
link = 'Bibcode',
label = 'Bibcode',
mode = 'external',
prefix = 'http://adsabs.harvard.edu/abs/',
encode = false,
COinS = 'info:bibcode',
separator = ':',
},
['ISBN'] = {
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},
link = '国际标准书号',
label = 'ISBN',
mode = 'manual',
prefix = 'Special:BookSources/',
COinS = 'rft.isbn',
separator = ' ',
},
['ISSN'] = {
parameters = {'issn', 'ISSN'},
link = '国际标准连续出版物号',
label = 'ISSN',
mode = 'external',
prefix = '//www.worldcat.org/issn/',
COinS = 'rft.issn',
encode = false,
separator = ' ',
},
['JFM'] = {
parameters = {'jfm', 'JFM'},
link = 'Jahrbuch über die Fortschritte der Mathematik',
label = 'JFM',
mode = 'external',
prefix = 'http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:',
COinS = 'rft.jfm',
encode = true,
separator = ' ',
},
['JSTOR'] = {
parameters = {'jstor', 'JSTOR'},
link = 'JSTOR',
label = 'JSTOR',
mode = 'external',
prefix = 'http://www.jstor.org/stable/',
COinS = 'rft.jstor',
encode = true,
separator = ' ',
},
['LCCN'] = {
parameters = {'LCCN', 'lccn'},
link = '美国国会图书馆控制码',
label = 'LCCN',
mode = 'external',
prefix = 'http://lccn.loc.gov/',
COinS = 'rft.lccn',
encode = false,
separator = ' ',
},
['MR'] = {
parameters = {'MR', 'mr'},
link = '數學評論',
label = 'MR',
mode = 'external',
prefix = 'http://www.ams.org/mathscinet-getitem?mr=',
COinS = 'rft.mr',
encode = true,
separator = ' ',
},
['OCLC'] = {
parameters = {'OCLC', 'oclc'},
link = 'OCLC',
label = 'OCLC',
mode = 'external',
prefix = '//www.worldcat.org/oclc/',
COinS = 'info:oclcnum',
encode = true,
separator = ' ',
},
['OSTI'] = {
parameters = {'OSTI', 'osti'},
link = '科学和技术信息办公室',
label = 'OSTI',
mode = 'external',
prefix = 'http://www.osti.gov/energycitations/product.biblio.jsp?osti_id=',
COinS = 'info:osti',
encode = true,
separator = ' ',
},
['PMC'] = {
parameters = {'PMC', 'pmc'},
link = '公共医学中心',
label = 'PMC',
mode = 'external',
prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',
suffix = " ",
COinS = 'info:pmc',
encode = true,
separator = ' ',
},
['PMID'] = {
parameters = {'PMID', 'pmid'},
link = '公共医学识别码',
label = 'PMID',
mode = 'external',
prefix = '//www.ncbi.nlm.nih.gov/pubmed/',
COinS = 'info:pmid',
encode = false,
separator = ' ',
},
['RFC'] = {
parameters = {'RFC', 'rfc'},
link = '徵求修正意見書',
label = 'RFC',
mode = 'external',
prefix = '//tools.ietf.org/html/rfc',
COinS = 'info:rfc',
encode = false,
separator = ' ',
},
['SSRN'] = {
parameters = {'SSRN', 'ssrn'},
link = '社会科学研究网络',
label = 'SSRN',
mode = 'external',
prefix = 'http://ssrn.com/abstract=',
COinS = 'info:ssrn',
encode = true,
separator = ' ',
},
['ZBL'] = {
parameters = {'ZBL', 'zbl'},
link = 'Zentralblatt MATH',
label = 'Zbl',
mode = 'external',
prefix = 'http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:',
COinS = 'info:zbl',
encode = true,
separator = ' ',
}
}
return citation_config;