<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AFootnotes%2Fwhitelist%2Fdoc</id>
	<title>Module:Footnotes/whitelist/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AFootnotes%2Fwhitelist%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Footnotes/whitelist/doc&amp;action=history"/>
	<updated>2026-04-23T01:41:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Footnotes/whitelist/doc&amp;diff=20330213&amp;oldid=prev</id>
		<title>imported&gt;Hike395: /* Adding templates to the whitelist */ typo</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Footnotes/whitelist/doc&amp;diff=20330213&amp;oldid=prev"/>
		<updated>2024-12-02T15:58:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Adding templates to the whitelist: &lt;/span&gt; typo&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{High-risk}}&lt;br /&gt;
This page is a formatted list of anchor IDs and associated citation wrapper-templates.  Because of {{cl|Harv and Sfn template errors#Current limitations and false-positive errors|technical limitations}}, short-cite templates, via [[Module:Footnotes]], will emit [[false positive|false-positive]] error messages for citation wrapper-templates.  The anchor IDs listed here instruct Module:Footnotes to suppress error messages for short-cite templates that link to the anchor IDs listed here so long as the associated citation wrapper-template is present in the article.  This is an imperfect system that will allow [[false negative|false-negatives]] because this mechanism will suppress valid error messages in the absence of a full-cite target.  Adding an anchor ID and matching template to this list will suppress all {{error-small|no target}} error messages for that anchor ID / template pair.&lt;br /&gt;
&lt;br /&gt;
==Adding templates to the whitelist==&lt;br /&gt;
There are three whitelist mechanisms for templates: each one is appropriate for different template behaviors:&lt;br /&gt;
# &amp;lt;b&amp;gt;Wrapper template produces small number of different references, whose name and date is suitable for short footnotes, name and date not overriden&amp;lt;/b&amp;gt;&lt;br /&gt;
#: In this case, the CITEREF should be added to the &amp;lt;code&amp;gt;whitelist&amp;lt;/code&amp;gt; variable, with a key of the form &amp;lt;code&amp;gt;CITEREFNameDate&amp;lt;/code&amp;gt; and value being a list of templates that can generate that CITEREF.&lt;br /&gt;
#:* Do not include disambiguation letters in whitelist entries. In other words, use &amp;quot;CITEREFSmith2018&amp;quot; in this whitelist even when the cite template generates &amp;quot;CITEREFSmith2018a&amp;quot;. &lt;br /&gt;
#:*[[Module:Footnotes/whitelist/sort]] is a tool to aid the maintenance of &amp;lt;code&amp;gt;whitelist{}&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;lt;b&amp;gt;Wrapper template produces name and date suitable for short footnotes, but the name and date often get overriden and can generate many different references.&amp;lt;/b&amp;gt;&lt;br /&gt;
#:These wrapper templates should be added to the &amp;lt;code&amp;gt;wrapper_template&amp;lt;/code&amp;gt; variable. The module will then look for uses of the template where the name and/or date are overriden.&lt;br /&gt;
#:* The default name+date should be supplied either in &amp;lt;code&amp;gt;wrapper_template_defaults&amp;lt;/code&amp;gt; (if there is a single name+date default), or in &amp;lt;code&amp;gt;wrapper_template_defaults_vol&amp;lt;/code&amp;gt; (if the name+date default depends on the volume number).&lt;br /&gt;
#:* Redirects or further wrapping should be described in &amp;lt;code&amp;gt;wrapper_template&amp;lt;/code&amp;gt; as new keys: the value of these keys should be name+date entries in &amp;lt;code&amp;gt;wrapper_template_defaults&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;wrapper_template_defaults_vol&amp;lt;/code&amp;gt;.&lt;br /&gt;
#:* If there is no sensible default name or date (e.g., {{tl|Cite ODNB}}), you can use an empty string &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for the default.&lt;br /&gt;
# &amp;lt;b&amp;gt;Wrapper template produces unusual short footnotes (e.g. without an author or date)&amp;lt;/b&amp;gt;&lt;br /&gt;
#:In this case, a Lua pattern that covers all of the CITEREF cases should be added to the &amp;lt;code&amp;gt;wrapper_template_patterns&amp;lt;/code&amp;gt; variable. Each entry is a pair of lists: a list of templates that share the Lua pattern(s), and a list of Lua patterns that cover the CITEREFs generated by all of the template.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Hike395</name></author>
	</entry>
</feed>