https://oddworldlibrary.net/oddenc/index.php?title=Module:Citation/CS1/Whitelist&feed=atom&action=history
Module:Citation/CS1/Whitelist - Revision history
2024-03-29T15:30:39Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://oddworldlibrary.net/oddenc/index.php?title=Module:Citation/CS1/Whitelist&diff=1195&oldid=prev
Max: 1 revision imported
2018-04-07T11:49:51Z
<p>1 revision imported</p>
<p><b>New page</b></p><div><br />
--[[--------------------------< P A R A M E T E R S N O T S U P P O R T E D >------------------------------<br />
<br />
This is a list of parameters that once were but now are no longer supported:<br />
<br />
['albumlink'] = nil, -- unique alias of titlelink used by old cite AV media notes<br />
['albumtype'] = nil, -- controled inappropriate functionality in the old cite AV media notes<br />
['artist'] = nil, -- unique alias of others used by old cite AV media notes<br />
['ARXIV'] = nil, -- not an initialization<br />
['Author'] = nil, -- non-standard capitalization<br />
['authorformat'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['author-format'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['author-name-separator'] = nil,-- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['author-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['began'] = nil, -- module handles date ranges; cite episode and cite series<br />
['BIBCODE'] = nil, -- not an initialization<br />
['callsign'] = nil, -- cite interview removed<br />
['call-sign'] = nil, -- cite interview removed<br />
['chapterlink'] = nil, -- if ever necessary to link to a chapter article, |chapter= can be wikilinked <br />
['chapter-link'] = nil, -- <br />
['city'] = nil, -- cite interview removed<br />
['coauthor'] = nil, -- redundant to |authorn=; not made part of metadata<br />
['coauthors'] = nil, -- redundant to |authorn=; not made part of metadata<br />
['cointerviewers'] = nil, -- unique alias of others used by old cite interview<br />
['day'] = nil, -- deprecated in {{citation/core}} and somehow undeprecated in Module:Citation/CS1 and now finally removed<br />
['director'] = nil, -- unique alias of author used by old cite DVD-notes<br />
['doi_brokendate'] = nil, -- alias of doi-broken-date<br />
['doi_inactivedate'] = nil, -- alias of doi-inactive-date<br />
['DoiBroken'] = nil, -- not used, non-standard captialization<br />
['Editor'] = nil, -- non-standard capitalization<br />
['editorformat'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['EditorSurname'] = nil, -- non-standard capitalization<br />
['editor-format'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['EditorGiven'] = nil, -- non-standard capitalization<br />
['editor-name-separator'] = nil,-- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['editor-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['Embargo'] = nil, -- not used, non-standard capitalization<br />
['ended'] = nil, -- module handles date ranges; cite episode and cite series<br />
['month'] = nil, -- functionality supported by |date=<br />
['name-separator'] = nil, -- primarily used to support Vancouver format which functionality now part of name-list-format<br />
['notestitle'] = nil, -- unique alias of chapter used by old cite AV media notes<br />
['PPrefix'] = nil, -- non-standard capitalization<br />
['PPPrefix'] = nil, -- not used, non-standard capitalization<br />
['pp-prefix'] = nil, -- not used, not documented<br />
['p-prefix'] = nil, -- not used, not documented<br />
['program'] = nil, -- cite interview removed<br />
['publisherid'] = nil, -- unique alias of id used by old cite AV media notes and old cite DVD-notes<br />
['Ref'] = nil, -- non-standard capitalization<br />
['separator'] = nil, -- this functionality now provided by |mode=<br />
['template doc demo'] = nil, -- alias of template doc demo<br />
['titleyear'] = nil, -- unique alias of origyear used by old cite DVD-notes<br />
['trans_chapter'] = nil, -- alias of trans-chapter<br />
['trans_title'] = nil, -- alias of trans-title<br />
<br />
['Author#'] = nil, -- non-standard capitalization<br />
['authors#'] = nil, -- no need for multiple lists of author names<br />
['Editor#'] = nil, -- non-standard capitalization<br />
['editors#'] = nil, -- no need for multiple lists of editor names<br />
['EditorGiven#'] = nil, -- non-standard capitalization<br />
['EditorSurname#'] = nil, -- non-standard capitalization<br />
<br />
]]<br />
<br />
--[[--------------------------< S U P P O R T E D P A R A M E T E R S >--------------------------------------<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
local whitelist = {}<br />
<br />
local basic_arguments = {<br />
['accessdate'] = true,<br />
['access-date'] = true,<br />
['agency'] = true,<br />
['airdate'] = true,<br />
['air-date'] = true,<br />
['archivedate'] = true,<br />
['archive-date'] = true,<br />
['archive-format'] = true,<br />
['archiveurl'] = true,<br />
['archive-url'] = true,<br />
['article'] = true,<br />
['arxiv'] = true,<br />
['asin'] = true,<br />
['ASIN'] = true,<br />
['asin-tld'] = true,<br />
['ASIN-TLD'] = true,<br />
['at'] = true,<br />
['author'] = true,<br />
['author-first'] = true,<br />
['author-last'] = true,<br />
['authorlink'] = true,<br />
['author-link'] = true,<br />
['authormask'] = true,<br />
['author-mask'] = true,<br />
['authors'] = true,<br />
['bibcode'] = true,<br />
['bibcode-access'] = true,<br />
['biorxiv'] = true,<br />
['booktitle'] = true,<br />
['book-title'] = true,<br />
['cartography'] = true,<br />
['chapter'] = true,<br />
['chapter-format'] = true,<br />
['chapterurl'] = true,<br />
['chapter-url'] = true,<br />
['chapter-url-access'] = true,<br />
['citeseerx'] = true,<br />
['class'] = true, -- cite arxiv and arxiv identifiers<br />
['collaboration'] = true,<br />
['conference'] = true,<br />
['conference-format'] = true,<br />
['conferenceurl'] = true,<br />
['conference-url'] = true,<br />
['contribution'] = true,<br />
['contribution-format'] = true,<br />
['contributionurl'] = true,<br />
['contribution-url'] = true,<br />
['contributor'] = true,<br />
['contributor-first'] = true,<br />
['contributor-last'] = true,<br />
['contributor-given'] = true,<br />
['contributor-surname'] = true,<br />
['contributor-link'] = true,<br />
['contributor-mask'] = true,<br />
['credits'] = true, -- cite episode, cite serial<br />
['date'] = true,<br />
['deadurl'] = true,<br />
['dead-url'] = true,<br />
['degree'] = true,<br />
['department'] = true,<br />
['df'] = true,<br />
['dictionary'] = true,<br />
['displayauthors'] = true,<br />
['display-authors'] = true,<br />
['displayeditors'] = true,<br />
['display-editors'] = true,<br />
['docket'] = true,<br />
['doi'] = true,<br />
['DOI'] = true,<br />
['doi-access'] = true,<br />
['doi-broken'] = true,<br />
['doi-broken-date'] = true,<br />
['doi-inactive-date'] = true,<br />
['edition'] = true,<br />
['editor'] = true,<br />
['editor-first'] = true,<br />
['editor-given'] = true,<br />
['editor-last'] = true,<br />
['editorlink'] = true,<br />
['editor-link'] = true,<br />
['editormask'] = true,<br />
['editor-mask'] = true,<br />
['editors'] = true,<br />
['editor-surname'] = true,<br />
['eissn'] = true,<br />
['EISSN'] = true,<br />
['embargo'] = true,<br />
['encyclopaedia'] = true,<br />
['encyclopedia'] = true,<br />
['entry'] = true,<br />
['episode'] = true, -- cite serial only TODO: make available to cite episode?<br />
['episodelink'] = true, -- cite episode and cite serial<br />
['episode-link'] = true, -- cite episode and cite serial<br />
['eprint'] = true, -- cite arxiv and arxiv identifiers<br />
['event'] = true,<br />
['event-format'] = true,<br />
['eventurl'] = true,<br />
['event-url'] = true,<br />
['first'] = true,<br />
['format'] = true,<br />
['given'] = true,<br />
['hdl'] = true,<br />
['HDL'] = true,<br />
['hdl-access'] = true,<br />
['host'] = true,<br />
['id'] = true,<br />
['ID'] = true,<br />
['ignoreisbnerror'] = true,<br />
['ignore-isbn-error'] = true,<br />
['in'] = true,<br />
['inset'] = true,<br />
['institution'] = true,<br />
['interviewer'] = true,<br />
['interviewer-first'] = true,<br />
['interviewer-last'] = true,<br />
['interviewerlink'] = true,<br />
['interviewer-link'] = true,<br />
['interviewermask'] = true,<br />
['interviewer-mask'] = true,<br />
['interviewers'] = true,<br />
['isbn'] = true,<br />
['ISBN'] = true,<br />
['isbn13'] = true,<br />
['ISBN13'] = true,<br />
['ismn'] = true,<br />
['ISMN'] = true,<br />
['issn'] = true,<br />
['ISSN'] = true,<br />
['issue'] = true,<br />
['jfm'] = true,<br />
['JFM'] = true,<br />
['journal'] = true,<br />
['jstor'] = true,<br />
['JSTOR'] = true,<br />
['jstor-access'] = true,<br />
['language'] = true,<br />
['last'] = true,<br />
['lastauthoramp'] = true,<br />
['last-author-amp'] = true,<br />
['laydate'] = true,<br />
['lay-date'] = true,<br />
['laysource'] = true,<br />
['lay-source'] = true,<br />
['laysummary'] = true,<br />
['lay-summary'] = true,<br />
['lay-format'] = true,<br />
['layurl'] = true,<br />
['lay-url'] = true,<br />
['lccn'] = true,<br />
['LCCN'] = true,<br />
['location'] = true,<br />
['magazine'] = true,<br />
['mailinglist'] = true, -- cite mailing list only<br />
['mailing-list'] = true, -- cite mailing list only<br />
['map'] = true, -- cite map only<br />
['map-format'] = true, -- cite map only<br />
['mapurl'] = true, -- cite map only<br />
['map-url'] = true, -- cite map only<br />
['medium'] = true,<br />
['message-id'] = true, -- cite newsgroup<br />
['minutes'] = true,<br />
['mode'] = true,<br />
['mr'] = true,<br />
['MR'] = true,<br />
['name-list-format'] = true,<br />
['network'] = true,<br />
['newsgroup'] = true,<br />
['newspaper'] = true,<br />
['nocat'] = true,<br />
['no-cat'] = true,<br />
['nopp'] = true,<br />
['no-pp'] = true,<br />
['notracking'] = true,<br />
['no-tracking'] = true,<br />
['number'] = true,<br />
['oclc'] = true,<br />
['OCLC'] = true,<br />
['ol'] = true,<br />
['OL'] = true,<br />
['ol-access'] = true,<br />
['origyear'] = true,<br />
['orig-year'] = true,<br />
['osti'] = true,<br />
['OSTI'] = true,<br />
['osti-access'] = true,<br />
['others'] = true,<br />
['p'] = true,<br />
['page'] = true,<br />
['pages'] = true,<br />
['people'] = true,<br />
['periodical'] = true,<br />
['place'] = true,<br />
['pmc'] = true,<br />
['PMC'] = true,<br />
['pmid'] = true,<br />
['PMID'] = true,<br />
['postscript'] = true,<br />
['pp'] = true,<br />
['publicationdate'] = true,<br />
['publication-date'] = true,<br />
['publicationplace'] = true,<br />
['publication-place'] = true,<br />
['publisher'] = true,<br />
['quotation'] = true,<br />
['quote'] = true,<br />
['ref'] = true,<br />
['registration'] = true,<br />
['rfc'] = true,<br />
['RFC'] = true,<br />
['scale'] = true,<br />
['script-chapter'] = true,<br />
['script-title'] = true,<br />
['season'] = true,<br />
['section'] = true,<br />
['section-format'] = true,<br />
['sections'] = true, -- cite map only<br />
['sectionurl'] = true,<br />
['section-url'] = true,<br />
['series'] = true,<br />
['serieslink'] = true,<br />
['series-link'] = true,<br />
['seriesno'] = true,<br />
['series-no'] = true,<br />
['seriesnumber'] = true,<br />
['series-number'] = true,<br />
['series-separator'] = true,<br />
['sheet'] = true, -- cite map only<br />
['sheets'] = true, -- cite map only<br />
['ssrn'] = true,<br />
['SSRN'] = true,<br />
['station'] = true,<br />
['subject'] = true,<br />
['subjectlink'] = true,<br />
['subject-link'] = true,<br />
['subscription'] = true,<br />
['surname'] = true,<br />
['template-doc-demo'] = true,<br />
['time'] = true,<br />
['timecaption'] = true,<br />
['time-caption'] = true,<br />
['title'] = true,<br />
['titlelink'] = true,<br />
['title-link'] = true,<br />
['trans-chapter'] = true,<br />
['trans-map'] = true,<br />
['transcript'] = true,<br />
['transcript-format'] = true,<br />
['transcripturl'] = true,<br />
['transcript-url'] = true,<br />
['trans-title'] = true,<br />
['translator'] = true,<br />
['translator-first'] = true,<br />
['translator-last'] = true,<br />
['translator-given'] = true,<br />
['translator-surname'] = true,<br />
['translator-link'] = true,<br />
['translator-mask'] = true,<br />
['type'] = true,<br />
['url'] = true,<br />
['URL'] = true,<br />
['url-access'] = true,<br />
['vauthors'] = true,<br />
['veditors'] = true,<br />
['version'] = true,<br />
['via'] = true,<br />
['volume'] = true,<br />
['website'] = true,<br />
['work'] = true,<br />
['year'] = true,<br />
['zbl'] = true,<br />
['ZBL'] = true,<br />
}<br />
<br />
local numbered_arguments = {<br />
['author#'] = true,<br />
['author-first#'] = true,<br />
['author#-first'] = true,<br />
['author-last#'] = true,<br />
['author#-last'] = true,<br />
['author-link#'] = true,<br />
['author#link'] = true,<br />
['author#-link'] = true,<br />
['authorlink#'] = true,<br />
['author-mask#'] = true,<br />
['author#mask'] = true,<br />
['author#-mask'] = true,<br />
['authormask#'] = true,<br />
['contributor#'] = true,<br />
['contributor-first#'] = true,<br />
['contributor#-first'] = true,<br />
['contributor-last#'] = true,<br />
['contributor#-last'] = true,<br />
['contributor-given#'] = true,<br />
['contributor#-given'] = true,<br />
['contributor-surname#'] = true,<br />
['contributor#-surname'] = true,<br />
['contributor-link#'] = true,<br />
['contributor#-link'] = true,<br />
['contributor-mask#'] = true,<br />
['contributor#-mask'] = true,<br />
['editor#'] = true,<br />
['editor-first#'] = true,<br />
['editor#-first'] = true,<br />
['editor#-given'] = true,<br />
['editor-given#'] = true,<br />
['editor-last#'] = true,<br />
['editor#-last'] = true,<br />
['editor-link#'] = true,<br />
['editor#link'] = true,<br />
['editor#-link'] = true,<br />
['editorlink#'] = true,<br />
['editor-mask#'] = true,<br />
['editor#mask'] = true,<br />
['editor#-mask'] = true,<br />
['editormask#'] = true,<br />
['editor#-surname'] = true,<br />
['editor-surname#'] = true,<br />
['first#'] = true,<br />
['given#'] = true,<br />
['interviewer#'] = true,<br />
['interviewer-first#'] = true,<br />
['interviewer#-first'] = true,<br />
['interviewer-last#'] = true,<br />
['interviewer#-last'] = true,<br />
['interviewer-link#'] = true,<br />
['interviewer#-link'] = true,<br />
['interviewer-mask#'] = true,<br />
['interviewer#-mask'] = true,<br />
['last#'] = true,<br />
['subject#'] = true,<br />
['subject-link#'] = true,<br />
['subject#link'] = true,<br />
['subject#-link'] = true,<br />
['subjectlink#'] = true,<br />
['surname#'] = true,<br />
['translator#'] = true,<br />
['translator-first#'] = true,<br />
['translator#-first'] = true,<br />
['translator-last#'] = true,<br />
['translator#-last'] = true,<br />
['translator-given#'] = true,<br />
['translator#-given'] = true,<br />
['translator-surname#'] = true,<br />
['translator#-surname'] = true,<br />
['translator-link#'] = true,<br />
['translator#-link'] = true,<br />
['translator-mask#'] = true,<br />
['translator#-mask'] = true,<br />
}<br />
<br />
--[[--------------------------< C I T E A R X I V S U P P O R T E D P A R A M E T E R S >----------------<br />
<br />
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the<br />
parameters provided in a cite arxiv template. This method might be expanded to other templates being considered.<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
--[[<br />
This is a list of parameters that once were but now are no longer supported:<br />
['ARXIV'] = nil, -- not an initialization<br />
['version'] = nil, -- this is the cite arxiv parameter; |version= still supported by other cs1|2 templates<br />
<br />
]]<br />
<br />
local arxiv_basic_arguments = {<br />
['arxiv'] = true,<br />
['class'] = true, -- cite arxiv and arxiv identifiers<br />
['eprint'] = true, -- cite arxiv and arxiv identifiers<br />
}<br />
<br />
<br />
--[[--------------------------< C I T E B I O R X I V S U P P O R T E D P A R A M E T E R S >------------<br />
<br />
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the<br />
parameters provided in a cite biorxiv template. This method might be expanded to other templates being considered.<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
local biorxiv_basic_arguments = {<br />
['biorxiv'] = true,<br />
}<br />
<br />
<br />
--[[--------------------------< C I T E C I T E S E E R X S U P P O R T E D P A R A M E T E R S >--------<br />
<br />
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the<br />
parameters provided in a cite citeseerx template. This method might be expanded to other templates being considered.<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
local citeseerx_basic_arguments = {<br />
['citeseerx'] = true,<br />
}<br />
<br />
<br />
--[[--------------------------< L I M I T E D S U P P O R T E D P A R A M E T E R S >----------------------<br />
<br />
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the<br />
parameters provided in a cite arxiv, cite biorxiv, or cite citeseerx templates. These parameters are common to<br />
all three templates<br />
<br />
Because a steady-state signal conveys no useful information, whitelist.basic_arguments[] list items can have three values:<br />
true - these parameters are valid and supported parameters<br />
false - these parameters are deprecated but still supported<br />
nil - these parameters are no longer supported (when setting a parameter to nil, leave a comment stating the reasons for invalidating the parameter)<br />
<br />
]]<br />
<br />
local limited_basic_arguments = {<br />
['at'] = true,<br />
['author'] = true,<br />
['author-first'] = true,<br />
['author-last'] = true,<br />
['authorlink'] = true,<br />
['author-link'] = true,<br />
['authormask'] = true,<br />
['author-mask'] = true,<br />
['authors'] = true,<br />
['collaboration'] = true,<br />
['date'] = true,<br />
['df'] = true,<br />
['display-authors'] = true,<br />
['first'] = true,<br />
['given'] = true,<br />
['language'] = true,<br />
['last'] = true,<br />
['lastauthoramp'] = true,<br />
['last-author-amp'] = true,<br />
['mode'] = true,<br />
['name-list-format'] = true,<br />
['nocat'] = true,<br />
['no-cat'] = true,<br />
['notracking'] = true,<br />
['no-tracking'] = true,<br />
['p'] = true,<br />
['page'] = true,<br />
['pages'] = true,<br />
['postscript'] = true,<br />
['pp'] = true,<br />
['quotation'] = true,<br />
['quote'] = true,<br />
['ref'] = true,<br />
['surname'] = true,<br />
['template-doc-demo'] = true,<br />
['title'] = true,<br />
['url'] = true,<br />
['URL'] = true,<br />
['vauthors'] = true,<br />
['year'] = true,<br />
}<br />
local limited_numbered_arguments = {<br />
['author#'] = true,<br />
['author-first#'] = true,<br />
['author#-first'] = true,<br />
['author-last#'] = true,<br />
['author#-last'] = true,<br />
['author-link#'] = true,<br />
['author#link'] = true,<br />
['author#-link'] = true,<br />
['authorlink#'] = true,<br />
['author-mask#'] = true,<br />
['author#mask'] = true,<br />
['author#-mask'] = true,<br />
['authormask#'] = true,<br />
['first#'] = true,<br />
['given#'] = true,<br />
['last#'] = true,<br />
['surname#'] = true,<br />
}<br />
<br />
return {<br />
basic_arguments = basic_arguments,<br />
numbered_arguments = numbered_arguments,<br />
limited_basic_arguments = limited_basic_arguments,<br />
limited_numbered_arguments = limited_numbered_arguments,<br />
arxiv_basic_arguments = arxiv_basic_arguments,<br />
biorxiv_basic_arguments = biorxiv_basic_arguments,<br />
citeseerx_basic_arguments = citeseerx_basic_arguments<br />
};</div>
Max