The ((sfnp)) (for "shortened footnotes, with parenthetical dates") template is a means of concisely citing the same source at different pages many times throughout the same article. In short, something like ((sfnp|Miller|2017|p=37)) is used to replace something like <ref name="Miller 2017 p37">Miller (2017), p. 37.</ref>, and will not only link automatically to the full citation (the detailed ((cite book|last=Miller|first=Dawn|date=2017|title= ...)) cite), but will also automatically merge duplicate citations to the same source and page! It's great, but not everyone is fully up-to-speed on how to use it, so below is a crash course in getting it to work and avoiding problems. There are a number variations on this template, distinguished below. The full-length citation is usually put at the bottom of the page; there are several ways of doing this, also covered below.

Variants

Several templates in this family are deprecated and should be replaced with other citation methods when encountered in articles:

All of the following were used for inline parenthetical referencing, which puts citation information directly into the main article text. This practice (done with or without any template) was deprecated by the Wikipedia community in 2022, as creating too much reader-distracting clutter.

  • ((harv)) – Formerly used to generate inline parenthetical references in the form "(Miller 2017, p. 37)".
  • ((harvtxt)) – A slight variant on ((harv)) for the same purpose: "Miller (2017, p. 37)".
  • ((harvcol)) – Ditto, but in the even more obtuse format: "(Miller 2017:37)"
  • ((harvcoltxt)) – Slight variant: "Miller (2017:37)"
  • ((harvcolnb)) – Worst of the lot: "Miller 2017:37"
  • ((harvs)) – No, actually this one is worse by inline-citing multiple works by same author in a confusing manner: "Miller (2017, 2023)"

There are also multi-citation versions of these, for bundling multiple reference citations for the same claim into a single [1]-style footnote. These are complicated and beyond the scope of this primer, but they are listed here for future reference:

Basic use of sfnp and harvp

Getting the names and dates to work

Complications and customization

The long-format full citations

Sources reused with multiple citations on different pages are usually placed at the bottom of the article instead of kept inline. There are several ways of doing this that vary on an article-by-article basis:

Technically speaking, you can do it all inline without anything actually breaking. E.g.: Article text here.<ref>((cite book |last=Hughes |first=J. B. |date=2013 ... |page=117))</ref> More article text here.((sfnp|Hughes|2013|p=122))</ref>. However, many editors will consider this sloppy and may move the long cite (sans the page number) to the bottom of the article and replace its original instance with another page-specific short cite, ((sfnp|Hughes|2013|p=117)) in this case.