Module:Citation/CS1/Configuration:修订间差异
外观
创建页面,内容为“ local citation_config = {}; -- override <code>...</code> styling to remove color, border, and padding. <code> css is specified here: -- https://git.wikimedia.org/blob/mediawiki%2Fcore.git/69cd73811f7aadd093050dbf20ed70ef0b42a713/skins%2Fcommon%2FcommonElements.css#L199 local code_style="color:inherit; border:inherit; padding:inherit;"; --[[--------------------------< U N C A T E G O R I Z E D _ N A M E S P A C E S >------------------------------ List of na…” |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
local citation_config = {}; | local citation_config = {}; | ||
| 第30行: | 第29行: | ||
local messages = { | local messages = { | ||
['_safe_for_italics'] = {'lay source'}, | |||
['archived-dead'] = '($1存档于$2)', | ['archived-dead'] = '($1存档于$2)', | ||
['archived-not-dead'] = '(原始内容$1于$2)', | ['archived-not-dead'] = '(原始内容$1于$2)', | ||
['archived-missing'] = '(原始内容$1存档于$2)', | ['archived-missing'] = '(原始内容$1存档于$2)', | ||
['archived-unfit'] = '原始内容存档于$1', | |||
['archived'] = '存档', | ['archived'] = '存档', | ||
['by'] = 'By', -- contributions to authored works: introduction, foreword, afterword | ['by'] = 'By', -- contributions to authored works: introduction, foreword, afterword | ||
['cartography'] = 'Cartography by $1', | ['cartography'] = 'Cartography by $1', | ||
['docket'] = 'Docket $1', | |||
['editor'] = '编', | ['editor'] = '编', | ||
['editors'] = '编', | ['editors'] = '编', | ||
['edition'] = '$1', | ['edition'] = ' $1', | ||
['episode'] = '第$1集', | ['episode'] = '第$1集', | ||
['et al'] = ' | ['et al'] = 'et al', | ||
['in'] = '(编)', | ['in'] = '(编)', -- edited works | ||
['inactive'] = '不活跃', | ['inactive'] = '不活跃', | ||
['interview'] = ' 與$2的$1', | |||
['inset'] = '$1 inset', | ['inset'] = '$1 inset', | ||
['lay summary'] = ' | ['lay summary'] = '简明摘要', | ||
['lay source'] = " – ''$1''", | |||
['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1', | ['newsgroup'] = '[[Usenet newsgroup|Newsgroup]]: $1', | ||
['original'] = '原始内容', | ['original'] = '原始内容', | ||
['orig year'] = ' [$1]', | |||
['published'] = '$1', | ['published'] = '$1', | ||
['retrieved'] = '[ | ['retrieved'] = '[$1]', | ||
['season'] = '第$1季', | ['season'] = '第$1季', | ||
['section'] = '§ $1', | ['section'] = '§ $1', | ||
['sections'] = '§§ $1', | ['sections'] = '§§ $1', | ||
['series'] = '第$1系列', | ['series'] = '第$1系列', | ||
['thesis with type'] = '$1论文', | |||
['thesis no type'] = '学位论文', | |||
['translated'] = '由$1翻译', | |||
['type'] = ' ($1)', -- for titletype | ['type'] = ' ($1)', -- for titletype | ||
['written'] = '写于$1', | ['written'] = ' 写于$1', | ||
['vol'] = '$1 Vol. $2', -- $1 is sepc; bold journal style volume is in presentation{} | ['vol'] = '$1 Vol. $2', -- $1 is sepc; bold journal style volume is in presentation{} | ||
| 第74行: | 第83行: | ||
['j-sheets'] = ': Sheets $1', | ['j-sheets'] = ': Sheets $1', | ||
['language'] = '<span style="font-family: sans-serif; cursor: default; color:var(--color-subtle, #54595d); font-size: 0.8em; bottom: 0.1em; font-weight: bold;" title="连接到$1网页">($1)</span>', | |||
['via'] = " –-{zh-hans:通过;zh-hant:透過;}-$1", | |||
['event'] = ' 事件发生在 $1', | |||
['minutes'] = ' $1 记录于', | |||
['language'] = '<span style="font-family: sans-serif; cursor: default; color:# | |||
['via'] = " –通过$1", | |||
['event'] = '事件发生在', | |||
['minutes'] = '记录于', | |||
['parameter-separator'] = '、', | ['parameter-separator'] = '、', | ||
['parameter-final-separator'] = '和', | ['parameter-final-separator'] = '和', | ||
['parameter-pair-separator'] = '和', | ['parameter-pair-separator'] = '和', | ||
['publication-date'] = ' ($1)', | |||
-- Determines the location of the help page | -- Determines the location of the help page | ||
['help page link'] = ' | ['help page link'] = 'Help:引文格式1错误', | ||
['help page label'] = '帮助', | ['help page label'] = '帮助', | ||
['maintenance-link'] = 'link', | |||
-- Internal errors (should only occur if configuration is bad) | ['maintenance-item'] = ' $1 ($2)' | ||
} | |||
--[[--------------------------< I N T E R N A L _ E R R O R S >------------------------------------------- | |||
Internal errors (should only occur if configuration is bad) | |||
]] | |||
local internal_errors = { | |||
['undefined_error'] = '调用了一个未定义的错误条件', | ['undefined_error'] = '调用了一个未定义的错误条件', | ||
['unknown_manual_ID'] = '无法识别的手动ID模式', | ['unknown_manual_ID'] = '无法识别的手动ID模式', | ||
['unknown_ID_mode'] = '无法识别的ID模式', | ['unknown_ID_mode'] = '无法识别的ID模式', | ||
['unknown_argument_map'] = ' | ['unknown_argument_map'] = '检测到参数别名与参数名之间的映射丢失', | ||
['bare_url_no_origin'] = ' | ['bad_link_no_origin'] = '检测到格式错误但源头不明的内部链接', | ||
['bad_url_no_origin'] = '检测到格式错误但源头不明的网址', | |||
['bare_url_no_origin'] = '检测到源头不明的裸网址', | |||
} | } | ||
| 第107行: | 第123行: | ||
]] | ]] | ||
local presentation = | local presentation = { | ||
{ | |||
['_safe_for_italics'] = {'italic-title', 'trans-italic-title'}, | |||
-- Error output | -- Error output | ||
-- .error class is specified at https://git.wikimedia.org/blob/mediawiki%2Fcore.git/9553bd02a5595da05c184f7521721fb1b79b3935/skins%2Fcommon%2Fshared.css#L538 | -- .error class is specified at https://git.wikimedia.org/blob/mediawiki%2Fcore.git/9553bd02a5595da05c184f7521721fb1b79b3935/skins%2Fcommon%2Fshared.css#L538 | ||
| 第115行: | 第132行: | ||
['visible-error'] = '<span style="font-size:100%" class="error citation-comment">$1</span>', | ['visible-error'] = '<span style="font-size:100%" class="error citation-comment">$1</span>', | ||
['accessdate'] = '<span class="reference-accessdate">$2</span>', -- to allow editors to hide accessdate using personal css | ['accessdate'] = ' <span class="reference-accessdate">$2</span>', -- to allow editors to hide accessdate using personal css | ||
['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like | ['bdi'] = '<bdi$1>$2</bdi>', -- bidirectional isolation used with |script-title= and the like | ||
| 第122行: | 第139行: | ||
['access-signal'] = '<span class="plainlinks">$1 $2</span>', -- external link with appropriate lock icon | ['access-signal'] = '<span class="plainlinks">$1 $2</span>', -- external link with appropriate lock icon | ||
['free'] = '[[File:Lock-green.svg|9px|link=|alt= | ['free'] = '[[File:Lock-green.svg|9px|link=|alt=可免费查阅|可免费查阅]]', | ||
['registration'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt=需要免费注册|需要免费注册]]', | ['registration'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt=需要免费注册|需要免费注册]]', | ||
['limited'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt= | ['limited'] = '[[File:Lock-blue-alt-2.svg|9px|link=|alt=有限度免费查阅,超限则需付费订阅|有限度免费查阅,超限则需付费订阅]]', | ||
['subscription'] = '[[File:Lock-red-alt.svg|9px|link=|alt=需要付费订阅|需要付费订阅]]', | ['subscription'] = '[[File:Lock-red-alt.svg|9px|link=|alt=需要付费订阅|需要付费订阅]]', | ||
| 第135行: | 第152行: | ||
['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space) | ['nowrap2'] = '<span class="nowrap">$1</span> $2', -- for nowrapping portions of an item: <span ...>dd mmmm</span> yyyy (note white space) | ||
['OCinS'] = '<span title="$1" class="Z3988"><span style="display:none;"> </span></span>', | |||
-- Note: Using display: none on the COinS span breaks some clients. | |||
['parameter'] = '<code style="'..code_style..'">|$1=</code>', | ['parameter'] = '<code style="'..code_style..'">|$1=</code>', | ||
| 第142行: | 第162行: | ||
['trans-italic-title'] = "[$1]", | ['trans-italic-title'] = "[$1]", | ||
['trans-quoted-title'] = "[$1]", | ['trans-quoted-title'] = "[$1]", | ||
['vol-bold'] = ' <b>$1</b>', | ['vol-bold'] = ' <b>$1</b>', -- for journal cites; for other cites ['vol'] in messages{} | ||
['maintenance'] = '<span class="citation-comment" style="display:none; color:#33aa33">$1</span>', | |||
['citation-with-id'] = '<cite id="$1" class="$2">$3</cite>', | |||
['citation-no-id'] = '<cite class="$1">$2</cite>' | |||
} | |||
--[[--------------------------< P E R I O D I C A L _ P A R A M E T E R S >----------------------------------- | |||
用于整理periodical系列参数的别名,key为对应的citation class。在主模块中推断{{citation}}的引用类型时会用到。 | |||
]] | |||
local periodical_parameters = { | |||
['journal'] = {'journal'}, | |||
['news'] = {'newspaper'}, | |||
['magazine'] = {'magazine'}, | |||
['web'] = {'website'}, | |||
['encyclopaedia'] = {'encyclopedia', 'encyclopaedia', 'dictionary'}, | |||
['mailinglist'] = {'mailinglist', 'mailing-list'}, | |||
['_general'] = {'work', 'periodical'} | |||
} -- 注意参数排列顺序,_general一定要放最后。 | |||
local periodical_compatibility = { | |||
['journal'] = { | |||
['drop'] = {'news', 'encyclopaedia', 'mailinglist'}, | |||
['warn'] = {'magazine'}, | |||
['suggest'] = 'journal' | |||
}, | |||
['news'] = { | |||
['drop'] = {'encyclopaedia', 'mailinglist', 'journal'}, | |||
['warn'] = {'magazine'}, | |||
['suggest'] = 'newspaper' | |||
}, | |||
['magazine'] = { | |||
['drop'] = {'encyclopaedia', 'mailinglist'}, | |||
['warn'] = {'journal', 'news'}, | |||
['suggest'] = 'magazine' | |||
}, | |||
['web'] = { | |||
['drop'] = {'encyclopaedia', 'mailinglist'}, | |||
['warn'] = {'news', 'journal', 'magazine'}, | |||
['suggest'] = 'website' | |||
}, | |||
['encyclopaedia'] = { | |||
['drop'] = {'mailinglist', 'news', 'journal', 'magazine'}, | |||
}, | |||
['mailinglist'] = { | |||
['drop'] = {'encyclopaedia', 'news', 'journal', 'magazine', 'web'}, | |||
}, | |||
['book'] = { | |||
['drop'] = {'news', 'journal', 'mailinglist'}, | |||
['warn'] = {'encyclopaedia', 'magazine'}, | |||
['suggest'] = 'work' | |||
}, | |||
['conference'] = { | |||
['drop'] = {'news', 'magazine', 'mailinglist', 'encyclopaedia'}, | |||
['warn'] = {'journal'}, | |||
['suggest'] = 'book-title' | |||
}, | |||
['map'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia'}, | |||
}, | |||
['interview'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'journal'}, | |||
}, | |||
['AV media'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'journal', 'magazine'}, | |||
}, | |||
['podcast'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'journal', 'magazine', 'news'}, | |||
}, | |||
['serial'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'journal', 'magazine', 'news'}, | |||
}, | |||
['speech'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'journal', 'magazine'}, | |||
}, | |||
['episode'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'journal', 'magazine', 'news'}, | |||
}, | |||
['thesis'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'magazine', 'news'}, | |||
}, | |||
['pressrelease'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'magazine', 'journal'}, | |||
}, | |||
['arxiv'] = { | |||
['drop'] = {'mailinglist', 'encyclopaedia', 'magazine', 'journal', 'web'} | |||
} | } | ||
} | |||
local function build_periodical () | |||
local periodical_items = {}; | |||
for _, aliases in pairs (periodical_parameters) do | |||
for _, aliase in pairs (aliases) do | |||
table.insert (periodical_items, aliase); | |||
end | |||
end | |||
return periodical_items; | |||
end | |||
local periodical = { | |||
parameters = periodical_parameters, | |||
compatibility = periodical_compatibility | |||
} | |||
--[[--------------------------< A L I A S E S >---------------------------------------------------------------- | --[[--------------------------< A L I A S E S >---------------------------------------------------------------- | ||
| 第164行: | 第290行: | ||
['Callsign'] = {'call-sign', 'callsign'}, -- cite interview | ['Callsign'] = {'call-sign', 'callsign'}, -- cite interview | ||
['Cartography'] = 'cartography', | ['Cartography'] = 'cartography', | ||
['Chapter'] = {'chapter', 'contribution | ['Chapter'] = {'chapter', 'contribution'}, | ||
['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'}, | ||
['ChapterUrlAccess'] = {'chapter-url-access', 'section-url-access'}; | |||
['City'] = 'city', -- cite interview | ['City'] = 'city', -- cite interview | ||
['Class'] = 'class', -- cite arxiv and arxiv identifiers | ['Class'] = 'class', -- cite arxiv and arxiv identifiers | ||
| 第174行: | 第301行: | ||
['ConferenceURL'] = {'conference-url', 'conferenceurl', 'event-url', 'eventurl'}, | ['ConferenceURL'] = {'conference-url', 'conferenceurl', 'event-url', 'eventurl'}, | ||
['Contribution'] = 'contribution', -- introduction, foreword, afterword, etc; required when |contributor= set | ['Contribution'] = 'contribution', -- introduction, foreword, afterword, etc; required when |contributor= set | ||
['Date'] = | ['Date'] = 'date', | ||
['DeadURL'] = {'dead-url', 'deadurl'}, | ['DeadURL'] = {'dead-url', 'deadurl','url-status','urlstatus'}, | ||
['Degree'] = 'degree', | ['Degree'] = 'degree', | ||
['DF'] = 'df', | ['DF'] = 'df', | ||
| 第185行: | 第312行: | ||
['Editors'] = 'editors', | ['Editors'] = 'editors', | ||
['Embargo'] = 'embargo', | ['Embargo'] = 'embargo', | ||
[' | ['Entry'] = {'entry', 'article'}, -- 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'] = 'format', | ||
| 第198行: | 第325行: | ||
['LaySource'] = {'lay-source', 'laysource'}, | ['LaySource'] = {'lay-source', 'laysource'}, | ||
['LayURL'] = {'lay-url', 'lay-summary', 'layurl', 'laysummary'}, | ['LayURL'] = {'lay-url', 'lay-summary', 'layurl', 'laysummary'}, | ||
['Map'] = 'map', -- cite map only | ['Map'] = 'map', -- cite map only | ||
['MapFormat'] = 'map-format', -- cite map only | ['MapFormat'] = 'map-format', -- cite map only | ||
['MapURL'] = {'mapurl', 'map-url'}, -- cite map only | ['MapURL'] = {'mapurl', 'map-url'}, -- cite map only | ||
['MapUrlAccess'] = {'map-url-access'}, -- cite map only | |||
['MessageID'] = 'message-id', | ['MessageID'] = 'message-id', | ||
['Minutes'] = 'minutes', | ['Minutes'] = 'minutes', | ||
['Mode'] = 'mode', | ['Mode'] = 'mode', | ||
['NameListFormat'] = 'name-list-format', | ['NameListFormat'] = {'name-list-format','name-list-style'}, | ||
['Network'] = 'network', | ['Network'] = 'network', | ||
['NoPP'] = {'no-pp', 'nopp'}, | ['NoPP'] = {'no-pp', 'nopp'}, | ||
| 第215行: | 第342行: | ||
['Page'] = {'p', 'page'}, | ['Page'] = {'p', 'page'}, | ||
['Pages'] = {'pp', 'pages'}, | ['Pages'] = {'pp', 'pages'}, | ||
['Periodical'] = | ['Periodical'] = build_periodical (), | ||
['Place'] = {'place', 'location'}, | ['Place'] = {'place', 'location'}, | ||
['Program'] = 'program', -- cite interview | ['Program'] = 'program', -- cite interview | ||
| 第230行: | 第356行: | ||
['ScriptTitle'] = 'script-title', | ['ScriptTitle'] = 'script-title', | ||
['Section'] = 'section', | ['Section'] = 'section', | ||
['Sections'] = 'sections', -- cite map only | |||
['Season'] = 'season', | ['Season'] = 'season', | ||
['Series'] = {'series', 'version'}, | ['Series'] = {'series', 'version'}, | ||
['SeriesSeparator'] = 'series-separator', | ['SeriesSeparator'] = 'series-separator', | ||
| 第253行: | 第379行: | ||
['TransTitle'] = {'trans-title', 'trans_title', 'title_zh'}, | ['TransTitle'] = {'trans-title', 'trans_title', 'title_zh'}, | ||
['URL'] = {'url', 'URL'}, | ['URL'] = {'url', 'URL'}, | ||
['UrlAccess']={'url-access','urlaccess'}, | |||
['Vauthors'] = 'vauthors', | ['Vauthors'] = 'vauthors', | ||
['Veditors'] = 'veditors', | ['Veditors'] = 'veditors', | ||
| 第292行: | 第419行: | ||
--[[--------------------------< | --[[--------------------------< A R G S _ S U P P O R T >----------------------------------------------------- | ||
These tables hold cite class values (from the template invocation) and identify those templates that support | These tables hold cite class values (from the template invocation) and identify those templates that support or require | ||
certain parameters. | |||
]] | ]] | ||
local args_support = { | |||
['templates_using_volume'] = {'citation', 'AV media', 'book', 'conference', 'encyclopaedia', 'interview', 'journal', 'magazine', 'map', 'news', 'report', 'techreport', 'thesis'}, | |||
['templates_using_issue'] = {'citation', 'conference', 'episode', 'interview', 'journal', 'magazine', 'map', 'news'}, | |||
['templates_not_using_page'] = {'AV media', 'episode', 'mailinglist', 'newsgroup', 'podcast', 'serial', 'sign', 'speech'}, | |||
['templates_involving_time'] = {'AV media', 'episode', 'speech', 'podcast', 'serial'}, | |||
['templates_not_using_chapter'] = {'encyclopaedia', 'web', 'news', 'journal', 'magazine', 'pressrelease','podcast', 'newsgroup', 'mailinglist', 'map', 'conference', 'episode', 'serial', 'arxiv', 'biorxiv', 'citeseerx', 'ssrn'}, | |||
['templates_not_using_chapter_format'] = {'web', 'news', 'journal', 'magazine', 'pressrelease','podcast', 'newsgroup', 'mailinglist', 'arxiv', 'biorxiv', 'citeseerx', 'ssrn'}, | |||
['templates_using_contributor'] = {'book', 'citation'}, -- |contributor= and |contribution= only supported in book cites | |||
['templates_requiring_url'] = {'web', 'podcast', 'mailinglist'} | |||
} | |||
--[[--------------------------< K E Y W O R D S >-------------------------------------------------------------- | --[[--------------------------< K E Y W O R D S >-------------------------------------------------------------- | ||
| 第314行: | 第444行: | ||
local keywords = { | local keywords = { | ||
['yes_true_y'] = {'yes', 'true', 'y'}, -- ignore-isbn-error, last-author-amp, no-tracking, nopp, registration, subscription | ['yes_true_y'] = {'yes', 'true', 'y'}, -- ignore-isbn-error, last-author-amp, no-tracking, nopp, registration, subscription | ||
['deadurl'] = {'yes', 'true', 'y', 'no', 'unfit', 'usurped'}, | ['deadurl'] = {'yes', 'true', 'y', 'dead', 'no', 'live', 'unfit', 'usurped', 'deviated'}, | ||
['deadurl-live'] = {'no', 'live'}, | |||
['deadurl-unfit'] = {'unfit', 'usurped'}, | |||
['mode'] = {'cs1', 'cs2'}, | ['mode'] = {'cs1', 'cs2'}, | ||
['name-list-format'] = {'vanc'}, | ['name-list-format'] = {'vanc', 'amp', '&'}, | ||
['contribution'] = {'afterword', 'foreword', 'introduction', 'preface'}, -- generic contribution titles that are rendered unquoted in the 'chapter' position | ['contribution'] = {'afterword', 'foreword', 'introduction', 'preface'}, -- generic contribution titles that are rendered unquoted in the 'chapter' position | ||
['date-format'] = {'dmy', 'dmy-all', 'mdy', 'mdy-all', 'ymd', 'ymd-all'}, | ['date-format'] = {'dmy', 'dmy-all', 'mdy', 'mdy-all', 'ymd', 'ymd-all'}, | ||
['id-access'] = {'free'}, | |||
['url-access'] = {'free', 'limited', 'subscription', 'registration'}, | |||
} | } | ||
| 第340行: | 第474行: | ||
local invisible_chars = { | local invisible_chars = { | ||
{'replacement', '\239\191\189', '替换字符'}, -- U+FFFD, EF BF BD | {'replacement', '\239\191\189', '替换字符'}, -- U+FFFD, EF BF BD | ||
{'apostrophe', '‍\226\128\138\039\226\128\139'}, | {'apostrophe', '‍\226\128\138\039\226\128\139', '撇号'}, -- apostrophe template: ‍ hair space ' zero-width space; not an error | ||
{'apostrophe', '\226\128\138\039\226\128\139'}, | {'apostrophe', '\226\128\138\039\226\128\139', '撇号'}, -- apostrophe template: hair space ' zero-width space; (as of 2015-12-11) not an error | ||
{'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 | ||
{'soft hyphen', '\194\173', '软连字符'}, -- U+00AD, C2 AD | {'soft hyphen', '\194\173', '软连字符'}, -- U+00AD, C2 AD | ||
{'horizontal tab', '\009', '水平制表'}, -- U+0009 (HT), 09 | {'horizontal tab', '\009', '水平制表'}, -- U+0009 (HT), 09 | ||
{'line feed', '\010', ' | {'line feed', '\010', '換行符'}, -- U+0010 (LF), 0A | ||
{'carriage return', '\013', '回车符'}, -- U+0013 (CR), 0D | {'carriage return', '\013', '回车符'}, -- U+0013 (CR), 0D | ||
-- {'nowiki stripmarker', '\127UNIQ%-%-nowiki%-[%a%d]+%-QINU\127'}, -- nowiki stripmarker; not an error | -- {'nowiki stripmarker', '\127UNIQ%-%-nowiki%-[%a%d]+%-QINU\127'}, -- nowiki stripmarker; not an error | ||
{'stripmarker', '\ | {'stripmarker', '\127[^\127]*UNIQ%-%-(%a+)%-[%a%d]+%-QINU[^\127]*\127', 'mediawiki占位符'}, | ||
-- stripmarker; may or may not be an error; capture returns the stripmaker type | |||
{'delete', '\127', '删除符'}, -- U+007F (DEL), 7F; must be done after stripmarker test | {'delete', '\127', '删除符'}, -- U+007F (DEL), 7F; must be done after stripmarker test | ||
{'C0 control', '[\000-\008\011\012\014-\031]', 'C0控制符'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D)) | {'C0 control', '[\000-\008\011\012\014-\031]', 'C0控制符'}, -- U+0000–U+001F (NULL–US), 00–1F (except HT, LF, CR (09, 0A, 0D)) | ||
| 第362行: | 第497行: | ||
} | } | ||
--[[--------------------------< E X T R A _ T E X T _ P A T T E R N >-------------------------------------- | |||
]] | |||
local extra_text_pattern = { | |||
['edition'] = { | |||
['good'] = { | |||
}, | |||
['bad'] = { | |||
'%f[%a][Ee]d%.?$', | |||
'%f[%a][Ee]dition$' | |||
} | |||
}, | |||
['page'] = { | |||
['good'] = { | |||
'^P[^%.Pp]' -- ok to begin with uppercase P: P7 (pg 7 of section P) but not p123 (page 123) TODO: add Gg for PG or Pg? | |||
}, | |||
['bad'] = { | |||
'^[Pp]?[Pp]%.?[ %d]', | |||
'^[Pp]ages?' | |||
} | |||
} | |||
} | |||
--[[---------------------< S T R I P M A R K E R S >---------------------------- | |||
Common pattern definition location for stripmarkers so that we don't have to go | |||
hunting for them if (when) MediaWiki changes their form. | |||
]] | |||
local stripmarkers = { | |||
['any'] = '\127[^\127]*UNIQ%-%-(%a+)%-[%a%d]+%-QINU[^\127]*\127', -- capture returns name of stripmarker | |||
['math'] = '\127[^\127]*UNIQ%-%-math%-[%a%d]+%-QINU[^\127]*\127' -- math stripmarkers used in coins_cleanup() and coins_replace_math_stripmarker() | |||
} | |||
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]'; | |||
--[[--------------------------< 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 >---------------------------------- | ||
| 第377行: | 第548行: | ||
['etal'] = '引文格式1维护:显式使用等标签', | ['etal'] = '引文格式1维护:显式使用等标签', | ||
['extra_text'] = '引文格式1维护:冗余文本', | ['extra_text'] = '引文格式1维护:冗余文本', | ||
['ignore_isbn_err'] = '引文格式1维护:ISBN错误被忽略', | |||
['jfm_format'] = '引文格式1维护:jfm格式', | |||
['mr_format'] = '引文格式1维护:MR格式', | |||
['pmc_format'] = '引文格式1维护:PMC格式', | |||
['unknown_lang'] = '引文格式1维护:未识别语文类型', | ['unknown_lang'] = '引文格式1维护:未识别语文类型', | ||
['untitled'] = '引文格式1维护:无标题期刊', | ['untitled'] = '引文格式1维护:无标题期刊', | ||
['zbl_format'] = '引文格式1维护:zbl格式', | |||
['registration'] = '含有內容需登入查看的頁面', | |||
['subscription'] = '含有連結內容需訂閱查看的頁面' | |||
} | } | ||
| 第402行: | 第580行: | ||
local title_types = { | local title_types = { | ||
['AV | ['AV media notes'] = '音像媒体说明', | ||
[' | ['interview'] = '访谈', | ||
['mailinglist'] = ' | ['mailinglist'] = '邮件列表', | ||
['map'] = ' | ['map'] = '地图', | ||
['podcast'] = 'Podcast', | ['podcast'] = '-{zh-hans:播客; zh-hant:Podcast;}-', | ||
['pressrelease'] = '新闻稿', | ['pressrelease'] = '新闻稿', | ||
['report'] = ' | ['report'] = '报告', | ||
['techreport'] = ' | ['speech'] = '演讲', | ||
['thesis'] = ' | ['techreport'] = '技术报告', | ||
['thesis'] = '学位论文' | |||
} | } | ||
--[[--------------------------< E R R O R _ C O N D I T I O N S >---------------------------------------------- | --[[--------------------------< E R R O R _ C O N D I T I O N S >---------------------------------------------- | ||
| 第438行: | 第607行: | ||
message = '使用<code style="'..code_style..'">|accessdate=</code>需要含有<code style="'..code_style..'">|url=</code>', | message = '使用<code style="'..code_style..'">|accessdate=</code>需要含有<code style="'..code_style..'">|url=</code>', | ||
anchor = 'accessdate_missing_url', | anchor = 'accessdate_missing_url', | ||
category = ' | category = '含有访问日期但无网址的引用的页面', | ||
hidden = true }, | hidden = true }, | ||
archive_missing_date = { | archive_missing_date = { | ||
message = '使用<code style="'..code_style..'">|archiveurl=</code>需要含有<code style="'..code_style..'">|archivedate=</code>', | message = '使用<code style="'..code_style..'">|archiveurl=</code>需要含有<code style="'..code_style..'">|archivedate=</code>', | ||
anchor = 'archive_missing_date', | anchor = 'archive_missing_date', | ||
category = ' | category = '含有存档网址错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
archive_missing_url = { | archive_missing_url = { | ||
message = '使用<code style="'..code_style..'">|archiveurl=</code>需要含有<code style="'..code_style..'">|url=</code>', | message = '使用<code style="'..code_style..'">|archiveurl=</code>需要含有<code style="'..code_style..'">|url=</code>', | ||
anchor = 'archive_missing_url', | anchor = 'archive_missing_url', | ||
category = ' | category = '含有存档网址错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
arxiv_missing = { | arxiv_missing = { | ||
message = '需要使用<code style="'..code_style..'">|arxiv=</code>', | message = '需要使用<code style="'..code_style..'">|arxiv=</code>', | ||
anchor = 'arxiv_missing', | anchor = 'arxiv_missing', | ||
category = ' | category = '引文格式1错误:arXiv', -- same as bad arxiv | ||
hidden = false }, | hidden = false }, | ||
arxiv_params_not_supported = { | arxiv_params_not_supported = { | ||
message = ' | message = 'cite arXiv模板填写了不支持的参数', | ||
anchor = 'arxiv_params_not_supported', | anchor = 'arxiv_params_not_supported', | ||
category = ' | category = '引文格式1错误:arXiv', -- same as bad arxiv | ||
hidden = false }, | hidden = false }, | ||
bad_arxiv = { | bad_arxiv = { | ||
message = '请检查<code style="'..code_style..'">|arxiv=</code>值', | message = '请检查<code style="'..code_style..'">|arxiv=</code>值', | ||
anchor = 'bad_arxiv', | anchor = 'bad_arxiv', | ||
category = ' | category = '引文格式1错误:arXiv', | ||
hidden = false }, | hidden = false }, | ||
bad_asin = { | bad_asin = { | ||
message = '请检查<code style="'..code_style..'">|asin=</code>值', | message = '请检查<code style="'..code_style..'">|asin=</code>值', | ||
anchor = 'bad_asin', | anchor = 'bad_asin', | ||
category =' | category ='引文格式1错误:ASIN', | ||
hidden = false }, | |||
bad_bibcode = { | |||
message = '请检查<code style="'..code_style..'">|bibcode=</code>值', | |||
anchor = 'bad_bibcode', | |||
category = '引文格式1错误:bibcode', | |||
hidden = false }, | |||
bad_biorxiv = { | |||
message = '请检查<code style="'..code_style..'">|biorxiv=</code>值', | |||
anchor = 'bad_biorxiv', | |||
category = '引文格式1错误:bioRxiv', | |||
hidden = false }, | |||
bad_citeseerx = { | |||
message = '请检查<code style="'..code_style..'">|citeseerx=</code>的值', | |||
anchor = 'bad_citeseerx', | |||
category = '引文格式1错误:citeseerx', | |||
hidden = false }, | |||
bad_cnid = { | |||
message = '请检查<code style="'..code_style..'">|cn=</code>的值', | |||
anchor = 'bad_cnid', | |||
category = '引文格式1错误:CN', | |||
hidden = false }, | hidden = false }, | ||
bad_date = { | bad_date = { | ||
message = '请检查<code style="'..code_style..'">$1</code>中的日期值', | message = '请检查<code style="'..code_style..'">$1</code>中的日期值', | ||
anchor = 'bad_date', | anchor = 'bad_date', | ||
category = ' | category = '引文格式1错误:日期', | ||
hidden = true }, | hidden = true }, | ||
bad_doi = { | bad_doi = { | ||
message = '请检查<code style="'..code_style..'">|doi=</code>值', | message = '请检查<code style="'..code_style..'">|doi=</code>值', | ||
anchor = 'bad_doi', | anchor = 'bad_doi', | ||
category = ' | category = '引文格式1错误:DOI', | ||
hidden = false }, | |||
bad_hdl = { | |||
message = '请检查<code style="'..code_style..'">|hdl=</code>值', | |||
anchor = 'bad_hdl', | |||
category = '引文格式1错误:HDL', | |||
hidden = false }, | hidden = false }, | ||
bad_isbn = { | bad_isbn = { | ||
| 第488行: | 第682行: | ||
message = '请检查<code style="'..code_style..'">|ismn=</code>值', | message = '请检查<code style="'..code_style..'">|ismn=</code>值', | ||
anchor = 'bad_ismn', | anchor = 'bad_ismn', | ||
category = ' | category = '引文格式1错误:ISMN', | ||
hidden = false }, | hidden = false }, | ||
bad_issn = { | bad_issn = { | ||
message = '请检查<code style="'..code_style..'">|issn=</code>值', | message = '请检查<code style="'..code_style..'">|issn=</code>值', | ||
anchor = 'bad_issn', | anchor = 'bad_issn', | ||
category = ' | category = '引文格式1错误:ISSN', | ||
hidden = false }, | |||
bad_jfm = { | |||
message = '请检查<code style="'..code_style..'">|jfm=</code>值', | |||
anchor = 'bad_jfm', | |||
category = '引文格式1错误:JFM', | |||
hidden = false }, | hidden = false }, | ||
bad_lccn = { | bad_lccn = { | ||
message = '请检查<code style="'..code_style..'">|lccn=</code>值', | message = '请检查<code style="'..code_style..'">|lccn=</code>值', | ||
anchor = 'bad_lccn', | anchor = 'bad_lccn', | ||
category = ' | category = '引文格式1错误:LCCN', | ||
hidden = false }, | hidden = false }, | ||
bad_message_id = { | bad_message_id = { | ||
message = '请检查<code style="'..code_style..'">|message-id=</code>值', | message = '请检查<code style="'..code_style..'">|message-id=</code>值', | ||
anchor = 'bad_message_id', | anchor = 'bad_message_id', | ||
category = ' | category = '引文格式1错误:message-id', | ||
hidden = false }, | |||
bad_mr = { | |||
message = '请检查<code style="'..code_style..'">|mr=</code>值', | |||
anchor = 'bad_mr', | |||
category = '引文格式1错误:MR', | |||
hidden = false }, | |||
bad_oclc = { | |||
message = '请检查<code style="'..code_style..'">|oclc=</code>值', | |||
anchor = 'bad_oclc', | |||
category = '引文格式1错误:OCLC', | |||
hidden = false }, | hidden = false }, | ||
bad_ol = { | bad_ol = { | ||
message = '请检查<code style="'..code_style..'">|ol=</code>值', | message = '请检查<code style="'..code_style..'">|ol=</code>值', | ||
anchor = 'bad_ol', | anchor = 'bad_ol', | ||
category = ' | category = '引文格式1错误:OL', | ||
hidden = false }, | hidden = false }, | ||
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 = '请检查<code style="'..code_style..'">|$1=</code>值', | message = '请检查<code style="'..code_style..'">|$1=</code>值', | ||
anchor = 'bad_paramlink', | anchor = 'bad_paramlink', | ||
category = ' | category = '引文格式1错误:参数链接', | ||
hidden = false }, | hidden = false }, | ||
bad_pmc = { | bad_pmc = { | ||
message = '请检查<code style="'..code_style..'">|pmc=</code>值', | message = '请检查<code style="'..code_style..'">|pmc=</code>值', | ||
anchor = 'bad_pmc', | anchor = 'bad_pmc', | ||
category = ' | category = '引文格式1错误:PMC', | ||
hidden = false }, | hidden = false }, | ||
bad_pmid = { | bad_pmid = { | ||
message = '请检查<code style="'..code_style..'">|pmid=</code>值', | message = '请检查<code style="'..code_style..'">|pmid=</code>值', | ||
anchor = 'bad_pmid', | anchor = 'bad_pmid', | ||
category = ' | category = '引文格式1错误:PMID', | ||
hidden = false }, | |||
bad_s2cid = { | |||
message = '请检查<code style="'..code_style..'">|s2cid=</code>的值', | |||
anchor = 'bad_s2cid', | |||
category = '引文格式1错误:S2CID', | |||
hidden = false }, | |||
bad_ssrn = { | |||
message = '请检查<code style="'..code_style..'">|ssrn=</code>的值', | |||
anchor = 'bad_ssrn', | |||
category = '引文格式1错误:SSRN', | |||
hidden = false }, | hidden = false }, | ||
bad_url = { | bad_url = { | ||
message = '请检查<code style="'..code_style..'">| | message = '请检查<code style="'..code_style..'">|$1=</code>值', | ||
anchor = 'bad_url', | anchor = 'bad_url', | ||
category = '含有网址格式错误的引用的页面', | category = '含有网址格式错误的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
bare_url_missing_title = { | bare_url_missing_title = { | ||
message = '$ | message = '<code style="'..code_style..'">|$1=</code>缺少标题', | ||
anchor = 'bare_url_missing_title', | anchor = 'bare_url_missing_title', | ||
category = ' | category = '含有裸露网址的引用的页面', | ||
hidden = false }, | |||
bad_zbl = { | |||
message = '请检查<code style="'..code_style..'">|zbl=</code>的值', | |||
anchor = 'bad_zbl', | |||
category = '引文格式1错误:ZBL', | |||
hidden = false }, | |||
bad_csbn = { | |||
message = '请检查<code style="'..code_style..'">|csbn=</code>或<code style="'..code_style..'">|unified=</code>的值', | |||
anchor = 'bad_csbn', | |||
category = '引文格式1错误:CSBN', | |||
hidden = false }, | |||
class_ignored = { | |||
message = '<code style="'..code_style..'">|class=</code>被忽略', | |||
anchor = 'class_ignored', | |||
category = '引文格式1错误:class参数被忽略', | |||
hidden = false }, | hidden = false }, | ||
chapter_ignored = { | chapter_ignored = { | ||
message = '<code style="'..code_style..'">|$1=</code>被忽略', | message = '<code style="'..code_style..'">|$1=</code>被忽略', | ||
anchor = 'chapter_ignored', | anchor = 'chapter_ignored', | ||
category = ' | category = '引文格式1错误:章节参数被忽略', | ||
hidden = false }, | hidden = false }, | ||
citation_missing_title = { | citation_missing_title = { | ||
message = '缺少或<code style="'..code_style..'">|title=</code>为空', | message = '缺少或<code style="'..code_style..'">|title=</code>为空', | ||
anchor = 'citation_missing_title', | anchor = 'citation_missing_title', | ||
category = ' | category = '含有缺少标题的引用的页面', | ||
hidden = false }, | hidden = false }, | ||
cite_web_url = { | cite_web_url = { | ||
| 第549行: | 第783行: | ||
message = '缺少或<code style="'..code_style..'">|url=</code>为空', | message = '缺少或<code style="'..code_style..'">|url=</code>为空', | ||
anchor = 'cite_web_url', | anchor = 'cite_web_url', | ||
category = ' | category = '含有缺少网址的网站引用的页面', | ||
hidden = true }, | hidden = true }, | ||
coauthors_missing_author = { | coauthors_missing_author = { | ||
message = '使用<code style="'..code_style..'">|coauthors=</code>需要含有<code style="'..code_style..'">|author=</code>', | message = '使用<code style="'..code_style..'">|coauthors=</code>需要含有<code style="'..code_style..'">|author=</code>', | ||
anchor = 'coauthors_missing_author', | anchor = 'coauthors_missing_author', | ||
category = ' | category = '引文格式1错误:无主作者的合作者', | ||
hidden = false }, | hidden = false }, | ||
contributor_ignored = { | contributor_ignored = { | ||
message = '<code style="'..code_style..'">|contributor=</code>被忽略</code>', | message = '<code style="'..code_style..'">|contributor=</code>被忽略</code>', | ||
anchor = 'contributor_ignored', | anchor = 'contributor_ignored', | ||
category = ' | category = '引文格式1错误:合作者', | ||
hidden = false }, | hidden = false }, | ||
contributor_missing_required_param = { | contributor_missing_required_param = { | ||
message = '使用<code style="'..code_style..'">|contributor=</code>需要含有<code style="'..code_style..'">|$1=</code>', | message = '使用<code style="'..code_style..'">|contributor=</code>需要含有<code style="'..code_style..'">|$1=</code>', | ||
anchor = 'contributor_missing_required_param', | anchor = 'contributor_missing_required_param', | ||
category = ' | category = '引文格式1错误:合作者', | ||
hidden = false }, | |||
date_year_mismatch = { | |||
message = '<code style="'..code_style..'">|year=</code>与<code style="'..code_style..'">|$1=</code>不匹配', | |||
anchor = 'date_year_mismatch', | |||
category = '引文格式1错误:日期与年不匹配', | |||
hidden = false }, | hidden = false }, | ||
deprecated_params = { | deprecated_params = { | ||
message = '引文使用过时参数$1', | message = '引文使用过时参数<code style="'..code_style..'">$1</code>', | ||
anchor = 'deprecated_params', | anchor = 'deprecated_params', | ||
category = '含有过时参数的引用的页面', | category = '含有过时参数的引用的页面', | ||
hidden = true }, | hidden = true }, | ||
doi_inactive_dated = { | |||
message = '自$1年含有不活躍DOI的頁面', | |||
anchor = 'doi_inactive_dated', | |||
category = '自$1年含有不活躍DOI的頁面', | |||
hidden = true}, | |||
doi_inactive = { | |||
message = '含有不活躍DOI的頁面', | |||
anchor = 'doi_inactive_dated', | |||
category = '含有不活躍DOI的頁面', | |||
hidden = true}, | |||
empty_citation = { | empty_citation = { | ||
message = '空引用', | message = '空引用', | ||
| 第579行: | 第828行: | ||
message = '$1列表中的<code style="'..code_style..'">|first$2=</code>缺少<code style="'..code_style..'">|last$2=</code>', | message = '$1列表中的<code style="'..code_style..'">|first$2=</code>缺少<code style="'..code_style..'">|last$2=</code>', | ||
anchor = 'first_missing_last', | anchor = 'first_missing_last', | ||
category = ' | category = '引文格式1错误:缺少作者或编者', | ||
hidden = false }, | hidden = false }, | ||
format_missing_url = { | format_missing_url = { | ||
message = '使用<code style="'..code_style..'">|format=</code>需要含有<code style="'..code_style..'">|url=</code>', | message = '使用<code style="'..code_style..'">|format=</code>需要含有<code style="'..code_style..'">|url=</code>', | ||
anchor = 'format_missing_url', | anchor = 'format_missing_url', | ||
category = ' | category = '含有格式却不含网址的引用的页面', | ||
hidden = true }, | hidden = true }, | ||
implict_etal_editor = { | implict_etal_editor = { | ||
message = '建议使用<code style="'..code_style..'">|displayeditors=</code>', | message = '建议使用<code style="'..code_style..'">|displayeditors=</code>', | ||
anchor = 'displayeditors', | anchor = 'displayeditors', | ||
category = '含有旧式缩略标签的引用的页面 in | category = '含有旧式缩略标签的引用的页面 in editors', | ||
hidden = true }, | hidden = true }, | ||
invalid_param_val = { | invalid_param_val = { | ||
message = '无效<code style="'..code_style..'">|$1=$2</code>', | message = '无效<code style="'..code_style..'">|$1=$2</code>', | ||
anchor = 'invalid_param_val', | anchor = 'invalid_param_val', | ||
category = ' | category = '引文格式1错误:无效参数值', | ||
hidden = false }, | hidden = false }, | ||
invisible_char = { | invisible_char = { | ||
message = '参数$2值左起第$3位存在$1', | message = '参数$2值左起第$3位存在$1', | ||
anchor = 'invisible_char', | anchor = 'invisible_char', | ||
category = ' | category = '引文格式1错误:不可见字符', | ||
hidden = false }, | hidden = false }, | ||
missing_name = { | missing_name = { | ||
message = '$1列表缺少<code style="'..code_style..'">|last$2=</code>', | message = '$1列表缺少<code style="'..code_style..'">|last$2=</code>', | ||
anchor = 'missing_name', | anchor = 'missing_name', | ||
category = ' | category = '引文格式1错误:缺少作者或编者', | ||
hidden = false }, | hidden = false }, | ||
param_access_requires_param = { | |||
message = '使用<code style="'..code_style..'">|$1-access=</code>需要含有<code style="'..code_style..'">|$1=</code>', | |||
anchor = 'param_access_requires_param', | |||
category = '含有-access参数但无主参数的引用的页面', | |||
hidden = true }, | |||
param_has_ext_link = { | param_has_ext_link = { | ||
message = '外部链接存在于<code style="'..code_style..'">$1</code>', | message = '外部链接存在于<code style="'..code_style..'">$1</code>', | ||
anchor = 'param_has_ext_link', | anchor = 'param_has_ext_link', | ||
category = ' | category = '引文格式1错误:外部链接', | ||
hidden = false }, | |||
parameter_discarded = { | |||
message = '<code style="'..code_style..'">|$1=</code>被忽略', | |||
anchor = 'parameter_discarded', | |||
category = '引文格式1错误:已知参数被忽略', | |||
hidden = false }, | hidden = false }, | ||
parameter_ignored = { | parameter_ignored = { | ||
| 第620行: | 第879行: | ||
anchor = 'parameter_ignored_suggest', | anchor = 'parameter_ignored_suggest', | ||
category = '含有未知参数的引用的页面', | category = '含有未知参数的引用的页面', | ||
hidden = false }, | |||
periodical = { | |||
message = '参数<code style="'..code_style..'">|$1=</code>与模板<code style="'..code_style..'">{{cite $2}}</code>不匹配(建议改用<code style="'..code_style..'">{{cite $3}}</code>或<code style="'..code_style..'">|$4=</code>)', | |||
anchor = 'periodical', | |||
category = '引文格式1错误:periodical系列参数与模板类型不匹配', | |||
hidden = false }, | hidden = false }, | ||
redundant_parameters = { | redundant_parameters = { | ||
| 第634行: | 第898行: | ||
message = '使用<code style="'..code_style..'">|trans-title=</code>需要含有<code style="'..code_style..'">|title=</code>', | message = '使用<code style="'..code_style..'">|trans-title=</code>需要含有<code style="'..code_style..'">|title=</code>', | ||
anchor = 'trans_missing_title', | anchor = 'trans_missing_title', | ||
category = ' | category = '引文格式1错误:翻译标题', | ||
hidden = false }, | hidden = false }, | ||
vancouver = { | vancouver = { | ||
message = '温哥华格式错误', | message = '温哥华格式错误', | ||
anchor = 'vancouver', | anchor = 'vancouver', | ||
category = ' | category = '引文格式1错误:温哥华格式', | ||
hidden = false }, | hidden = false }, | ||
wikilink_in_url = { | wikilink_in_url = { | ||
message = '网址-维基内链冲突', | message = '网址-维基内链冲突', | ||
anchor = 'wikilink_in_url', | anchor = 'wikilink_in_url', | ||
category = ' | category = '引文格式1错误:网址-维基内链冲突', | ||
hidden = false }, | hidden = false }, | ||
} | } | ||
| 第678行: | 第942行: | ||
COinS = 'info:arxiv', | COinS = 'info:arxiv', | ||
separator = ':', | separator = ':', | ||
access = 'free', | |||
}, | }, | ||
['ASIN'] = { | ['ASIN'] = { | ||
| 第693行: | 第958行: | ||
link = 'Bibcode', | link = 'Bibcode', | ||
label = 'Bibcode', | label = 'Bibcode', | ||
mode = ' | mode = 'manual', | ||
prefix = '//adsabs.harvard.edu/abs/', | prefix = 'https://ui.adsabs.harvard.edu/abs/', | ||
encode = false, | encode = false, | ||
COinS = 'info:bibcode', | COinS = 'info:bibcode', | ||
custom_access = 'bibcode-access', | |||
separator = ':', | separator = ':', | ||
}, | |||
['BIORXIV'] = { | |||
parameters = {'biorxiv'}, | |||
link = 'bioRxiv', | |||
label = 'bioRxiv', | |||
mode = 'manual', | |||
prefix = '//doi.org/', | |||
encode = true, | |||
COinS = 'pre', | |||
separator = ' ', | |||
access = 'free', | |||
}, | |||
['CITESEERX'] = { | |||
parameters = {'citeseerx'}, | |||
link = 'CiteSeerX', | |||
q = 'Q2715061', | |||
label = 'CiteSeerX', | |||
mode = 'manual', | |||
prefix = '//citeseerx.ist.psu.edu/viewdoc/summary?doi=', | |||
COinS = 'pre', -- use prefix value | |||
access = 'free', -- free to read | |||
encode = true, | |||
separator = ' ', | |||
}, | |||
['CNID'] = { | |||
parameters = {'cn', 'CN'}, | |||
link = '国内统一刊号', | |||
label = "CN", | |||
mode = 'manual', | |||
prefix = 'http://www.nppa.gov.cn/nppa/publishing/view.shtml?&pubCode=', | |||
encode = true, | |||
separator = ' ', | |||
}, | }, | ||
['DOI'] = { | ['DOI'] = { | ||
parameters = { 'doi', 'DOI' }, | parameters = { 'doi', 'DOI' }, | ||
link = ' | link = '數位物件識別號', | ||
q = 'Q25670', | |||
label = 'doi', | label = 'doi', | ||
mode = 'manual', | mode = 'manual', | ||
prefix = '// | prefix = '//doi.org/', | ||
COinS = 'info:doi', | COinS = 'info:doi', | ||
custom_access = 'doi-access', | |||
separator = ':', | separator = ':', | ||
encode = true, | encode = true, | ||
| 第718行: | 第1,018行: | ||
encode = false, | encode = false, | ||
separator = ' ', | separator = ' ', | ||
}, | |||
['HDL'] = { | |||
parameters = { 'hdl', 'HDL' }, | |||
link = 'Handle System', | |||
q = 'Q3126718', | |||
label = 'hdl', | |||
mode = 'manual', | |||
prefix = '//hdl.handle.net/', | |||
COinS = 'info:hdl', | |||
custom_access = 'hdl-access', | |||
separator = ':', | |||
encode = true, | |||
}, | }, | ||
['ISBN'] = { | ['ISBN'] = { | ||
| 第751行: | 第1,063行: | ||
link = 'Jahrbuch über die Fortschritte der Mathematik', | link = 'Jahrbuch über die Fortschritte der Mathematik', | ||
label = 'JFM', | label = 'JFM', | ||
mode = ' | mode = 'manual', | ||
prefix = '//zbmath.org/?format=complete&q=an:', | prefix = '//zbmath.org/?format=complete&q=an:', | ||
COinS = 'pre', -- use prefix value | COinS = 'pre', -- use prefix value | ||
| 第763行: | 第1,075行: | ||
mode = 'external', | mode = 'external', | ||
prefix = '//www.jstor.org/stable/', -- protocol relative tested 2013-09-04 | prefix = '//www.jstor.org/stable/', -- protocol relative tested 2013-09-04 | ||
COinS = 'pre', | COinS = 'pre', -- use prefix value | ||
custom_access = 'jstor-access', | |||
encode = false, | encode = false, | ||
separator = ' ', | separator = ' ', | ||
| 第772行: | 第1,085行: | ||
label = 'LCCN', | label = 'LCCN', | ||
mode = 'manual', | mode = 'manual', | ||
prefix = '//lccn.loc.gov/', | prefix = 'http://lccn.loc.gov/', | ||
COinS = 'info:lccn', -- use prefix value | COinS = 'info:lccn', -- use prefix value | ||
encode = false, | encode = false, | ||
| 第779行: | 第1,092行: | ||
['MR'] = { | ['MR'] = { | ||
parameters = {'MR', 'mr'}, | parameters = {'MR', 'mr'}, | ||
link = ' | link = '數學評論', | ||
label = 'MR', | label = 'MR', | ||
mode = ' | mode = 'manual', | ||
prefix = '//www.ams.org/mathscinet-getitem?mr=', -- protocol relative tested 2013-09-04 | prefix = '//www.ams.org/mathscinet-getitem?mr=', -- protocol relative tested 2013-09-04 | ||
COinS = 'pre', -- use prefix value | COinS = 'pre', -- use prefix value | ||
| 第791行: | 第1,104行: | ||
link = 'OCLC', | link = 'OCLC', | ||
label = 'OCLC', | label = 'OCLC', | ||
mode = ' | mode = 'manual', | ||
prefix = '//www.worldcat.org/oclc/', | prefix = '//www.worldcat.org/oclc/', | ||
COinS = 'info:oclcnum', | COinS = 'info:oclcnum', | ||
| 第804行: | 第1,117行: | ||
prefix = '//openlibrary.org/', | prefix = '//openlibrary.org/', | ||
COinS = nil, -- no COinS for this id (needs thinking on implementation because /authors/books/works/OL) | COinS = nil, -- no COinS for this id (needs thinking on implementation because /authors/books/works/OL) | ||
custom_access = 'ol-access', | |||
separator = ' ', | separator = ' ', | ||
endode = true, | endode = true, | ||
| 第814行: | 第1,128行: | ||
prefix = '//www.osti.gov/energycitations/product.biblio.jsp?osti_id=', -- protocol relative tested 2013-09-04 | prefix = '//www.osti.gov/energycitations/product.biblio.jsp?osti_id=', -- protocol relative tested 2013-09-04 | ||
COinS = 'pre', -- use prefix value | COinS = 'pre', -- use prefix value | ||
custom_access = 'osti-access', | |||
encode = true, | encode = true, | ||
separator = ' ', | separator = ' ', | ||
| 第827行: | 第1,142行: | ||
encode = true, | encode = true, | ||
separator = ' ', | separator = ' ', | ||
access = 'free', | |||
}, | }, | ||
['PMID'] = { | ['PMID'] = { | ||
| 第840行: | 第1,156行: | ||
['RFC'] = { | ['RFC'] = { | ||
parameters = {'RFC', 'rfc'}, | parameters = {'RFC', 'rfc'}, | ||
link = ' | link = '徵求修正意見書', | ||
label = 'RFC', | label = 'RFC', | ||
mode = 'external', | mode = 'external', | ||
| 第847行: | 第1,163行: | ||
encode = false, | encode = false, | ||
separator = ' ', | separator = ' ', | ||
access = 'free', | |||
}, | }, | ||
['S2CID'] = { | |||
parameters = {'s2cid', 'S2CID'}, | |||
link = 'Semantic Scholar', -- l10n: Not created yet | |||
label = 'S2CID', | |||
mode = 'manual', | |||
prefix = 'https://api.semanticscholar.org/CorpusID:', | |||
COinS = 'pre', -- use prefix value | |||
custom_access = 's2cid-access', | |||
encode = false, | |||
separator = ' ', | |||
}, | |||
['SSRN'] = { | ['SSRN'] = { | ||
parameters = {'SSRN', 'ssrn'}, | parameters = {'SSRN', 'ssrn'}, | ||
link = '社会科学研究网络', | link = '社会科学研究网络', | ||
label = 'SSRN', | label = 'SSRN', | ||
mode = ' | mode = 'manual', | ||
prefix = '//ssrn.com/abstract=', -- protocol relative tested 2013-09-04 | prefix = '//ssrn.com/abstract=', -- protocol relative tested 2013-09-04 | ||
COinS = 'pre', -- use prefix value | COinS = 'pre', -- use prefix value | ||
encode = true, | encode = true, | ||
separator = ' ', | separator = ' ', | ||
access = 'free', | |||
}, | }, | ||
['USENETID'] = { | ['USENETID'] = { | ||
| 第872行: | 第1,201行: | ||
link = 'Zentralblatt MATH', | link = 'Zentralblatt MATH', | ||
label = 'Zbl', | label = 'Zbl', | ||
mode = ' | mode = 'manual', | ||
prefix = '//zbmath.org/?format=complete&q=an:', | prefix = '//zbmath.org/?format=complete&q=an:', | ||
COinS = 'pre', -- use prefix value | COinS = 'pre', -- use prefix value | ||
| 第883行: | 第1,212行: | ||
link = '统一书号', | link = '统一书号', | ||
label = 'CSBN', | label = 'CSBN', | ||
mode = ' | mode = 'manual', | ||
prefix = '//book.douban.com/subject_search?search_text=SH', | prefix = 'http://book.douban.com/subject_search?search_text=SH', | ||
COinS = 'rft.csbn', | COinS = 'rft.csbn', | ||
encode = true, | encode = true, | ||
| 第894行: | 第1,223行: | ||
return { | return { | ||
aliases = aliases, | aliases = aliases, | ||
args_support = args_support, | |||
defaults = defaults, | defaults = defaults, | ||
error_conditions = error_conditions, | error_conditions = error_conditions, | ||
indic_script = indic_script, | |||
internal_errors = internal_errors, | |||
id_handlers = id_handlers, | id_handlers = id_handlers, | ||
keywords = keywords, | keywords = keywords, | ||
invisible_chars = invisible_chars, | invisible_chars = invisible_chars, | ||
extra_text_pattern = extra_text_pattern, | |||
maint_cats = maint_cats, | maint_cats = maint_cats, | ||
messages = messages, | messages = messages, | ||
periodical = periodical, | |||
presentation = presentation, | presentation = presentation, | ||
prop_cats = prop_cats, | prop_cats = prop_cats, | ||
stripmarkers = stripmarkers, | |||
title_types = title_types, | title_types = title_types, | ||
uncategorized_namespaces = uncategorized_namespaces, | uncategorized_namespaces = uncategorized_namespaces, | ||
uncategorized_subpages = uncategorized_subpages, | uncategorized_subpages = uncategorized_subpages, | ||
} | } | ||