Module:Footnotes/whitelist/doc explained

This page is a formatted list of anchor IDs and associated citation wrapper-templates. Because of, short-cite templates, via, will emit 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-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 messages for that anchor ID / template pair.

Adding templates to the whitelist

There are three whitelist mechanisms for templates: each one is appropriate for different template behaviors:

  1. Wrapper template produces small number of different references, whose name and date is suitable for short footnotes, name and date not overriden

In this case, the CITEREF should be added to the whitelist variable, with a key of the form CITEREFNameDate and value being a list of templates that can generate that CITEREF.

  1. Wrapper template produces name and date suitable for short footnotes, but the name and date often get overriden and can generate many different references.

These wrapper templates should be added to the wrapper_template variable. The module will then look for uses of the template where the name and/or date are overriden.

  1. Wrapper template produces unusual short footnotes (e.g. without an author or date)

In this case, a Lua pattern that covers all of the CITEREF cases should be added to the wrapper_template_patterns 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.