Template:Sfn whitelist: Difference between revisions
(create; experiment to test concept of local false-positive error message suppression; see Module talk:Footnotes#Whitelist issues;) |
m (1 revision imported from alpha:Template:Sfn_whitelist) |
(2 intermediate revisions by 2 users not shown) | |
(No difference)
|
Latest revision as of 10:17, 26 May 2023
This template produces no output. The {{sfn}}
and {{harv}}
families of short-cite templates can emit error messages identifying short-cite templates that cannot find the target anchor to which they are supposed to link.
The short-cite templates cannot always locate anchor IDs that do exist – for the technical details, see Category:Harv and Sfn template errors. These unseen anchor IDs cause the short-cite templates to emit false-positive error messages. The purpose of {{sfn whitelist}}
is to hold a list of valid anchor IDs so that the short-cite error message is suppressed.
Usage
If a series of short-cite templates are reporting no-target errors for these example valid anchor IDs:
CITEREFBrand1968
,CITEREFFine1994
,CITEREFGeanakoplos1959
, andCITEREFVan_Tricht2011
somewhere in the article (in or near the appropriate reference section is probably best) add this:
{{sfn whitelist|CITEREFBrand1968|CITEREFFine1994|CITEREFGeanakoplos1959|CITEREFVan_Tricht2011}}
The anchor IDs should be copy/pasted directly from the short-cite template's error message.