• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Sfn whitelist/sandbox

  • Language
  • Watch
  • View source
< Template:Sfn whitelist
(Redirected from Template:Sfn allowlist/sandbox)
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Sfn whitelist (diff).
Template documentation[view] [edit] [history] [purge]

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, and CITEREFVan_Tricht2011

add the following somewhere in the article (in or near the appropriate reference section is probably best):

{{sfn whitelist|CITEREFBrand1968|CITEREFFine1994|CITEREFGeanakoplos1959|CITEREFVan_Tricht2011}}

The anchor IDs should be copy/pasted directly from the short-cite template's error message.

See also

  • Help:CS1 errors
  • Help:Footnotes
  • Help:Reference display customization
  • Help:Shortened footnotes
  • MediaWiki:Common.css
  • Module:Footnotes
  • Template:Cite whitelink
  • Category:Harv and Sfn template errors#Displaying error messages
The above documentation is transcluded from Template:Sfn whitelist/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Sfn_whitelist/sandbox&oldid=12773794"
Last edited on 21 February 2024, at 07:13

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 21 February 2024, at 07:13.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop