Module:Citation/CS1/Whitelist: Difference between revisions

Content deleted Content added
m 1 revision imported
m 1 revision imported
 
(5 intermediate revisions by 3 users not shown)
Line 1:
 
--[[--------------------------< S U P P O R T E D P A R A M E T E R S >--------------------------------------
 
Line 5 ⟶ 4:
true - these parameters are valid and supported parameters
false - these parameters are deprecated but still supported
tracked - these parameters are valid and supported parameters tracked in an eponymous properties category
nil - these parameters are no longer supported. remove entirely
Line 20:
['article'] = true,
['article-format'] = true,
['article-number'] = true, -- {{cite journal}}, {{cite conference}}; {{citation}} when |journal= has a value
['article-url'] = true,
['article-url-access'] = true,
Line 39 ⟶ 40:
['bibcode-access'] = true,
['biorxiv'] = true, -- cite biorxiv; here because allowed in cite ... as identifier
['booktitle'] = true,
['book-title'] = true,
['cartography'] = true,
['chapter'] = true,
['chapter-format'] = true,
['chapterurl'] = true,
['chapter-url'] = true,
['chapter-url-access'] = true,
['citeseerx'] = true, -- cite citeseerx; here because allowed in cite ... as identifier
['collaboration'] = true,
['conference'] = true,
['conference-format'] = true,
['conferenceurl'] = false,
['conference-url'] = true,
['contribution'] = true,
['contribution-format'] = true,
['contributionurl'] = false,
['contribution-url'] = true,
['contribution-url-access'] = true,
Line 66 ⟶ 58:
['contributor-mask'] = true,
['date'] = true,
['degree'] = true,
['department'] = true,
['df'] = true,
Line 76 ⟶ 67:
['display-subjects'] = true,
['display-translators'] = true,
['docket'] = true,
['doi'] = true,
['DOI'] = true,
Line 98 ⟶ 88:
['entry-url-access'] = true,
['eprint'] = true, -- cite arxiv; here because allowed in cite ... as identifier
['event'] = true, -- synonym of conference in /Config, but used in Cite speech?
['first'] = true,
['format'] = true,
Line 105 ⟶ 94:
['HDL'] = true,
['hdl-access'] = true,
['host'] = true, -- unique to certain templates?
['id'] = true,
['ID'] = true,
['institution'] = true, -- constrain to cite thesis?
['interviewer'] = true,
['interviewer-first'] = true,
Line 118 ⟶ 107:
['isbn'] = true,
['ISBN'] = true,
['isbn13'] = true,
['ISBN13'] = true,
['ismn'] = true,
['ISMN'] = true,
Line 134 ⟶ 121:
['language'] = true,
['last'] = true,
['laydatelay-date'] = false,
['lay-dateformat'] = truefalse,
['laysourcelay-source'] = false,
['lay-sourceurl'] = truefalse,
['lay-format'] = true,
['layurl'] = false,
['lay-url'] = true,
['lccn'] = true,
['LCCN'] = true,
Line 146 ⟶ 130:
['magazine'] = true,
['medium'] = true,
['minutes'] = true, -- constrain to cite AV media and podcast?
['mode'] = true,
['mr'] = true,
['MR'] = true,
['name-list-format'] = true,
['name-list-style'] = true,
['newspaper'] = true,
['nopp'] = true,
['no-pp'] = true,
['no-tracking'] = true,
Line 182 ⟶ 164:
['postscript'] = true,
['pp'] = true,
['publicationdate'] = true,
['publication-date'] = true,
['publicationplace'] = true,
['publication-place'] = true,
['publisher'] = true,
Line 210 ⟶ 190:
['script-website'] = true,
['script-work'] = true,
['season'] = true,
['section'] = true,
['section-format'] = true,
['sectionurl'] = false,
['section-url'] = true,
['section-url-access'] = true,
['series'] = true,
['ssrn'] = true, -- cite ssrn; these twothree here because allowed in cite ... as identifier
['serieslink'] = true,
['series-link'] = true,
['seriesno'] = false,
['series-no'] = true,
['series-number'] = true,
['ssrn'] = true, -- cite ssrn; these two here because allowed in cite ... as identifier
['SSRN'] = true,
['booktitlessrn-access'] = true,
['subject'] = true,
['subject-link'] = true,
Line 232 ⟶ 206:
['s2cid-access'] = true,
['template-doc-demo'] = true,
['time'] = true, -- constrain to cite av media and podcast?
['time-caption'] = true, -- constrain to cite av media and podcast?
['timecaption'] = false,
['time-caption'] = true,
['title'] = true,
['titlelink'] = false,
['title-link'] = true,
['translator'] = true,
Line 273 ⟶ 245:
['zbl'] = true,
['ZBL'] = true,
}
 
local numbered_arguments = {
Line 353 ⟶ 325:
['translator-mask#'] = true,
['translator#-mask'] = true,
}
 
 
Line 363 ⟶ 335:
preprint templates. Some of these parameters may also be available to the general cs1|2 templates.
 
Same conventions for true/false/tracked/nil as above.
 
]]
Line 382 ⟶ 354:
['ssrn'] = true,
['SSRN'] = true,
['namessrn-list-formataccess'] = true,
},
}
Line 388 ⟶ 361:
--[[--------------------------< 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 >----------------------
 
parameters provided in a cite arxiv, cite biorxiv, or cite citeseerx, and cite ssrn templates. are Thesepreprint parameterstemplates so are commonallowed toonly a
This is an experiment that attempts to use validate() and a limited list of valid parameters to validate the
limited subset of parameters allowed to all other cs1|2 templates. The limited subset is defined here.
parameters provided in a cite arxiv, cite biorxiv, or cite citeseerx templates. These parameters are common to
all three templates
 
Same conventions for true/false/tracked/nil as above.
]]
Line 416 ⟶ 388:
['last'] = true,
['mode'] = true,
['name-list-format'] = true,
['name-list-style'] = true,
['no-tracking'] = true,
Line 431 ⟶ 402:
['title'] = true,
['trans-title'] = true,
['url'] = true,
['URL'] = true,
['vauthors'] = true,
['year'] = true,
}
 
local limited_numbered_arguments = {
Line 465 ⟶ 434:
table are the template's CitationClass parameter value
 
Same conventions for true/false/tracked/nil as above.
 
]]
Line 473 ⟶ 442:
['transcript'] = true,
['transcript-format'] = true,
['transcripturl'] = true,
['transcript-url'] = true,
},
conference = {
['book-title'] = true,
['chapterurlconference'] = true,
['conference-format'] = true,
['conference-url'] = true,
['isbn13event'] = true,
},
episode = {
Line 480 ⟶ 455:
['air-date'] = true,
['credits'] = true,
['episodelink'] = true, -- alias of |title-link=
['episode-link'] = true, -- alias of |title-link=
['network'] = true,
['ISBN13season'] = true,
['publicationdateseries-link'] = true,
['serieslinkseries-no'] = true,
['series-nonumber'] = true,
['station'] = true,
['transcript'] = true,
['transcript-format'] = true,
['transcripturl'] = truefalse,
['transcript-url'] = true,
},
mailinglist = {
['mailinglist'] = true,
['mailing-list'] = true,
},
map = {
['cartography'] = true,
['inset'] = true,
['map'] = true,
['map-format'] = true,
['mapurl'] = true,
['map-url'] = true,
['map-url-access'] = true,
Line 509 ⟶ 486:
['message-id'] = true,
['newsgroup'] = true,
},
report = {
['docket'] = true,
},
serial = {
Line 515 ⟶ 495:
['credits'] = true,
['episode'] = true, -- cite serial only TODO: make available to cite episode?
['episodelinkepisode-link'] = true, -- aliasesalias of |title-link=
['episode-link'] = true,
['network'] = true,
['series-link'] = true,
['station'] = true,
},
speech = {
['conference'] = true,
['layconference-format'] = true,
['layconference-url'] = true,
['noppevent'] = true,
},
thesis = {
['degree'] = true,
['seasondocket'] = true,
},
}