置顶公告:【置顶】关于临时开启评论区所有功能的公告(2022.10.22) | 【置顶】关于本站Widget恢复使用的公告
  • 你好~!欢迎来到萌娘百科镜像站!如需查看或编辑,请联系本站管理员注册账号。
  • 本镜像站和其他萌娘百科的镜像站无关,请注意分别。

Module:Citation/CS1/Whitelist

猛汉♂百科,万男皆可猛的百科全书!转载请标注来源页面的网页链接,并声明引自猛汉百科。内容不可商用。
跳到导航 跳到搜索
Template-info.svg 模块文档  [查看] [编辑] [历史] [刷新]

这个模块及其相关的下级模块支持Citation Style 1以及Citation Style 2格式的引文模板。这两者通常简称为CS1和CS2。

cs1 • cs2 模块
在用的 沙盒 简介
Module:Citation/CS1 Module:Citation/CS1/sandbox [编辑] Rendering and support functions
Module:Citation/CS1/Configuration Module:Citation/CS1/Configuration/sandbox [编辑] Translation tables; error and identifier handlers
Module:Citation/CS1/Whitelist Module:Citation/CS1/Whitelist/sandbox [编辑] List of active, deprecated, and obsolete cs1 • 2 parameters
Module:Citation/CS1/Date validation Module:Citation/CS1/Date validation/sandbox [编辑] Date format validation functions
Module:Citation/CS1/Identifiers Module:Citation/CS1/Identifiers/sandbox [编辑] Functions that support the named identifiers (isbn, doi, pmid, etc)
Module:Citation/CS1/Utilities Module:Citation/CS1/Utilities/sandbox [编辑] Common functions and tables
Module:Citation/CS1/COinS Module:Citation/CS1/COinS/sandbox [编辑] Functions that render a cs1 • 2 template's metadata
Module:Citation/CS1/Suggestions Module:Citation/CS1/Suggestions/sandbox [编辑] List that maps common erroneous parameter names to valid parameter names
  1. --[[--------------------------< P A R A M E T E R S N O T S U P P O R T E D >------------------------------
  2. This is a list of parameters that once were but now are no longer supported:
  3. ['albumlink'] = nil, -- unique alias of titlelink used by old cite AV media notes
  4. ['albumtype'] = nil, -- controled inappropriate functionality in the old cite AV media notes
  5. ['artist'] = nil, -- unique alias of others used by old cite AV media notes
  6. ['Author'] = nil, -- non-standard capitalization
  7. ['authorformat'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format
  8. ['author-format'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format
  9. ['author-name-separator'] = nil,-- primarily used to support Vancouver format which functionality now part of name-list-format
  10. ['author-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format
  11. ['began'] = nil, -- module handles date ranges; cite episode and cite series
  12. ['chapterlink'] = nil, -- if ever necessary to link to a chapter article, |chapter= can be wikilinked
  13. ['chapter-link'] = nil, --
  14. ['cointerviewers'] = nil, -- unique alias of others used by old cite interview
  15. ['day'] = nil, -- deprecated in {{citation/core}} and somehow undeprecated in Module:Citation/CS1 and now finally removed
  16. ['director'] = nil, -- unique alias of author used by old cite DVD-notes
  17. ['DoiBroken'] = nil, -- not used, non-standard captialization
  18. ['Editor'] = nil, -- non-standard capitalization
  19. ['editorformat'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format
  20. ['EditorSurname'] = nil, -- non-standard capitalization
  21. ['editor-format'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format
  22. ['EditorGiven'] = nil, -- non-standard capitalization
  23. ['editor-name-separator'] = nil,-- primarily used to support Vancouver format which functionality now part of name-list-format
  24. ['editor-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format
  25. ['Embargo'] = nil, -- not used, non-standard capitalization
  26. ['ended'] = nil, -- module handles date ranges; cite episode and cite series
  27. ['month'] = nil, -- functionality supported by |date=
  28. ['name-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format
  29. ['notestitle'] = nil, -- unique alias of chapter used by old cite AV media notes
  30. ['PPrefix'] = nil, -- non-standard capitalization
  31. ['PPPrefix'] = nil, -- not used, non-standard capitalization
  32. ['pp-prefix'] = nil, -- not used, not documented
  33. ['p-prefix'] = nil, -- not used, not documented
  34. ['publisherid'] = nil, -- unique alias of id used by old cite AV media notes and old cite DVD-notes
  35. ['Ref'] = nil, -- non-statndard capitalization
  36. ['separator'] = nil, -- this functionality now provided by |mode=
  37. ['titleyear'] = nil, -- unique alias of origyear used by old cite DVD-notes
  38. ['Author#'] = nil, -- non-standard capitalization
  39. ['authors#'] = nil, -- no need for multiple lists of author names
  40. ['Editor#'] = nil, -- non-standard capitalization
  41. ['editors#'] = nil, -- no need for multiple lists of editor names
  42. ['EditorGiven#'] = nil, -- non-standard capitalization
  43. ['EditorSurname#'] = nil, -- non-standard capitalization
  44. ]]
  45. --[[--------------------------< S U P P O R T E D P A R A M E T E R S >--------------------------------------
  46. Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:
  47. true - these parameters are valid and supported parameters
  48. false - these parameters are deprecated but still supported
  49. nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)
  50. ]]
  51. local whitelist = {}
  52. local basic_arguments = {
  53. ['accessdate'] = true,
  54. ['access-date'] = true,
  55. ['agency'] = true,
  56. ['airdate'] = true,
  57. ['air-date'] = true,
  58. ['archivedate'] = true,
  59. ['archive-date'] = true,
  60. ['archive-format'] = true,
  61. ['archiveurl'] = true,
  62. ['archive-url'] = true,
  63. ['article'] = true,
  64. ['arxiv'] = true,
  65. ['ARXIV'] = true,
  66. ['asin'] = true,
  67. ['ASIN'] = true,
  68. ['asin-tld'] = true,
  69. ['ASIN-TLD'] = true,
  70. ['at'] = true,
  71. ['author'] = true,
  72. ['author-first'] = true,
  73. ['author-last'] = true,
  74. ['authorlink'] = true,
  75. ['author-link'] = true,
  76. ['authormask'] = true,
  77. ['author-mask'] = true,
  78. ['authors'] = true,
  79. ['bibcode'] = true,
  80. ['BIBCODE'] = true,
  81. ['booktitle'] = true,
  82. ['book-title'] = true,
  83. ['callsign'] = true, -- cite interview
  84. ['call-sign'] = true, -- cite interview
  85. ['cartography'] = true,
  86. ['chapter'] = true,
  87. ['chapter-format'] = true,
  88. ['chapterurl'] = true,
  89. ['chapter-url'] = true,
  90. ['city'] = true, -- cite interview, cite episode, cite serial
  91. ['class'] = true, -- cite arxiv and arxiv identifiers
  92. ['coauthor'] = false, -- deprecated
  93. ['coauthors'] = false, -- deprecated
  94. ['conference'] = true,
  95. ['conference-format'] = true,
  96. ['conferenceurl'] = true,
  97. ['conference-url'] = true,
  98. ['contribution'] = true,
  99. ['contribution-format'] = true,
  100. ['contributionurl'] = true,
  101. ['contribution-url'] = true,
  102. ['contributor'] = true,
  103. ['contributor-first'] = true,
  104. ['contributor-last'] = true,
  105. ['contributor-link'] = true,
  106. ['contributor-mask'] = true,
  107. ['credits'] = true, -- cite episode, cite serial
  108. ['date'] = true,
  109. ['deadurl'] = true,
  110. ['dead-url'] = true,
  111. ['degree'] = true,
  112. ['department'] = true,
  113. ['dictionary'] = true,
  114. ['displayauthors'] = true,
  115. ['display-authors'] = true,
  116. ['displayeditors'] = true,
  117. ['display-editors'] = true,
  118. ['docket'] = true,
  119. ['doi'] = true,
  120. ['DOI'] = true,
  121. ['doi-broken'] = true,
  122. ['doi_brokendate'] = true,
  123. ['doi-broken-date'] = true,
  124. ['doi_inactivedate'] = true,
  125. ['doi-inactive-date'] = true,
  126. ['edition'] = true,
  127. ['editor'] = true,
  128. ['editor-first'] = true,
  129. ['editor-given'] = true,
  130. ['editor-last'] = true,
  131. ['editorlink'] = true,
  132. ['editor-link'] = true,
  133. ['editormask'] = true,
  134. ['editor-mask'] = true,
  135. ['editors'] = true,
  136. ['editor-surname'] = true,
  137. ['eissn'] = true,
  138. ['EISSN'] = true,
  139. ['embargo'] = true,
  140. ['encyclopaedia'] = true,
  141. ['encyclopedia'] = true,
  142. ['entry'] = true,
  143. ['episode'] = true, -- cite serial only TODO: make available to cite episode?
  144. ['episodelink'] = true, -- cite episode and cite serial
  145. ['episode-link'] = true, -- cite episode and cite serial
  146. ['eprint'] = true, -- cite arxiv and arxiv identifiers
  147. ['event'] = true,
  148. ['event-format'] = true,
  149. ['eventurl'] = true,
  150. ['event-url'] = true,
  151. ['first'] = true,
  152. ['format'] = true,
  153. ['given'] = true,
  154. ['host'] = true,
  155. ['id'] = true,
  156. ['ID'] = true,
  157. ['ignoreisbnerror'] = true,
  158. ['ignore-isbn-error'] = true,
  159. ['in'] = true,
  160. ['inset'] = true,
  161. ['institution'] = true,
  162. ['interviewer'] = true, --cite interview
  163. ['interviewers'] = true, --cite interview
  164. ['isbn'] = true,
  165. ['ISBN'] = true,
  166. ['isbn13'] = true,
  167. ['ISBN13'] = true,
  168. ['ismn'] = true,
  169. ['ISMN'] = true,
  170. ['issn'] = true,
  171. ['ISSN'] = true,
  172. ['issue'] = true,
  173. ['jfm'] = true,
  174. ['JFM'] = true,
  175. ['journal'] = true,
  176. ['jstor'] = true,
  177. ['JSTOR'] = true,
  178. ['language'] = true,
  179. ['last'] = true,
  180. ['lastauthoramp'] = true,
  181. ['last-author-amp'] = true,
  182. ['laydate'] = true,
  183. ['lay-date'] = true,
  184. ['laysource'] = true,
  185. ['lay-source'] = true,
  186. ['laysummary'] = true,
  187. ['lay-summary'] = true,
  188. ['lay-format'] = true,
  189. ['layurl'] = true,
  190. ['lay-url'] = true,
  191. ['lccn'] = true,
  192. ['LCCN'] = true,
  193. ['location'] = true,
  194. ['magazine'] = true,
  195. ['mailinglist'] = true, -- cite mailing list only
  196. ['mailing-list'] = true, -- cite mailing list only
  197. ['map'] = true, -- cite map only
  198. ['map-format'] = true, -- cite map only
  199. ['mapurl'] = true, -- cite map only
  200. ['map-url'] = true, -- cite map only
  201. ['medium'] = true,
  202. ['message-id'] = true, -- cite newsgroup
  203. ['minutes'] = true,
  204. ['mode'] = true,
  205. ['mr'] = true,
  206. ['MR'] = true,
  207. ['name-list-format'] = true,
  208. ['network'] = true,
  209. ['newsgroup'] = true,
  210. ['newspaper'] = true,
  211. ['nocat'] = true,
  212. ['no-cat'] = true,
  213. ['nopp'] = true,
  214. ['no-pp'] = true,
  215. ['notracking'] = true,
  216. ['no-tracking'] = true,
  217. ['number'] = true,
  218. ['oclc'] = true,
  219. ['OCLC'] = true,
  220. ['ol'] = true,
  221. ['OL'] = true,
  222. ['origyear'] = true,
  223. ['orig-year'] = true,
  224. ['osti'] = true,
  225. ['OSTI'] = true,
  226. ['others'] = true,
  227. ['p'] = true,
  228. ['page'] = true,
  229. ['pages'] = true,
  230. ['people'] = true,
  231. ['periodical'] = true,
  232. ['place'] = true,
  233. ['pmc'] = true,
  234. ['PMC'] = true,
  235. ['pmid'] = true,
  236. ['PMID'] = true,
  237. ['postscript'] = true,
  238. ['pp'] = true,
  239. ['program'] = true, -- cite interview
  240. ['publicationdate'] = true,
  241. ['publication-date'] = true,
  242. ['publicationplace'] = true,
  243. ['publication-place'] = true,
  244. ['publisher'] = true,
  245. ['quotation'] = true,
  246. ['quote'] = true,
  247. ['ref'] = true,
  248. ['registration'] = true,
  249. ['rfc'] = true,
  250. ['RFC'] = true,
  251. ['scale'] = true,
  252. ['script-chapter'] = true,
  253. ['script-title'] = true,
  254. ['season'] = true,
  255. ['section'] = true,
  256. ['section-format'] = true,
  257. ['sections'] = true, -- cite map only
  258. ['sectionurl'] = true,
  259. ['section-url'] = true,
  260. ['series'] = true,
  261. ['serieslink'] = true,
  262. ['series-link'] = true,
  263. ['seriesno'] = true,
  264. ['series-no'] = true,
  265. ['seriesnumber'] = true,
  266. ['series-number'] = true,
  267. ['series-separator'] = true,
  268. ['sheet'] = true, -- cite map only
  269. ['sheets'] = true, -- cite map only
  270. ['ssrn'] = true,
  271. ['SSRN'] = true,
  272. ['station'] = true,
  273. ['subject'] = true,
  274. ['subjectlink'] = true,
  275. ['subject-link'] = true,
  276. ['subscription'] = true,
  277. ['surname'] = true,
  278. ['template doc demo'] = true,
  279. ['template-doc-demo'] = true,
  280. ['time'] = true,
  281. ['timecaption'] = true,
  282. ['time-caption'] = true,
  283. ['title'] = true,
  284. ['titlelink'] = true,
  285. ['title-link'] = true,
  286. ['title_zh'] = true,
  287. ['trans_chapter'] = true,
  288. ['trans-chapter'] = true,
  289. ['trans-map'] = true,
  290. ['transcript'] = true,
  291. ['transcript-format'] = true,
  292. ['transcripturl'] = true,
  293. ['transcript-url'] = true,
  294. ['trans_title'] = true,
  295. ['trans-title'] = true,
  296. ['translator'] = true,
  297. ['translator-first'] = true,
  298. ['translator-last'] = true,
  299. ['translator-link'] = true,
  300. ['translator-mask'] = true,
  301. ['type'] = true,
  302. ['url'] = true,
  303. ['URL'] = true,
  304. ['vauthors'] = true,
  305. ['veditors'] = true,
  306. ['version'] = true,
  307. ['via'] = true,
  308. ['volume'] = true,
  309. ['website'] = true,
  310. ['work'] = true,
  311. ['year'] = true,
  312. ['zbl'] = true,
  313. ['ZBL'] = true,
  314. ['unified'] = true,
  315. ['csbn'] = true,
  316. ['CSBN'] = true,
  317. }
  318. local numbered_arguments = {
  319. ['author#'] = true,
  320. ['author-first#'] = true,
  321. ['author#-first'] = true,
  322. ['author-last#'] = true,
  323. ['author#-last'] = true,
  324. ['author-link#'] = true,
  325. ['author#link'] = true,
  326. ['author#-link'] = true,
  327. ['authorlink#'] = true,
  328. ['author-mask#'] = true,
  329. ['author#mask'] = true,
  330. ['author#-mask'] = true,
  331. ['authormask#'] = true,
  332. ['contributor#'] = true,
  333. ['contributor-first#'] = true,
  334. ['contributor#-first'] = true,
  335. ['contributor-last#'] = true,
  336. ['contributor#-last'] = true,
  337. ['contributor-link#'] = true,
  338. ['contributor#-link'] = true,
  339. ['contributor-mask#'] = true,
  340. ['contributor#-mask'] = true,
  341. ['editor#'] = true,
  342. ['editor-first#'] = true,
  343. ['editor#-first'] = true,
  344. ['editor#-given'] = true,
  345. ['editor-given#'] = true,
  346. ['editor-last#'] = true,
  347. ['editor#-last'] = true,
  348. ['editor-link#'] = true,
  349. ['editor#link'] = true,
  350. ['editor#-link'] = true,
  351. ['editorlink#'] = true,
  352. ['editor-mask#'] = true,
  353. ['editor#mask'] = true,
  354. ['editor#-mask'] = true,
  355. ['editormask#'] = true,
  356. ['editor#-surname'] = true,
  357. ['editor-surname#'] = true,
  358. ['first#'] = true,
  359. ['given#'] = true,
  360. ['last#'] = true,
  361. ['subject#'] = true,
  362. ['subject-link#'] = true,
  363. ['subject#link'] = true,
  364. ['subject#-link'] = true,
  365. ['subjectlink#'] = true,
  366. ['surname#'] = true,
  367. ['translator#'] = true,
  368. ['translator-first#'] = true,
  369. ['translator#-first'] = true,
  370. ['translator-last#'] = true,
  371. ['translator#-last'] = true,
  372. ['translator-link#'] = true,
  373. ['translator#-link'] = true,
  374. ['translator-mask#'] = true,
  375. ['translator#-mask'] = true,
  376. }
  377. return {basic_arguments = basic_arguments, numbered_arguments = numbered_arguments};