Template:SfnRef inline/doc

is a variant of (a.k.a. ) that works in manually written, non-templated citations. In most cases, this is expected to be used, in cases where an editor is not certain how to format the full citation data into a template, or does not have time to do it, or there is a dispute on the talk page about which citation format should be used, etc. In a handful of cases, however, there remain some articles with local consensus to use entirely manually formatted citations, to exactly mirror some off-site citation style. This rare, but technically permitted by the WP:CITESTYLE guideline.

This template provides a link anchor to work with the shortened-footnote templates, (and their Vancouver-citation-style equivalents  and ). Until this template, there was no easy way to cite the same manually-cited source multiple times at different pages in such an article, using short citations that link to the full citation, and auto-combining duplicate cite to the same page into a single short cite. (It was technically possible, but required manually creating an anchor point with a complicated  ID that matched the input expected by a template like  or .)

What the original does is just generate a   anchor string using author and year data, and pass this to the ref parameter of a CS1 (,, etc.) or CS2  template, which then generates the necessary anchor.

What does is create an invisible-to-the-reader anchor using the same   ID, in a span:    This is equivalent to manually doing, except of course that you don't have to manually figure out the   ID.

Usage
This template is used exactly the same as /, except it is not used inside a CS1/CS2 citation template's ref parameter, but used at the end of a manually formatted citation, either inside p, or when placed in a list of cited sources at the bottom of the page. If the manual citation is not all on one line for some reason, it would be better to use this template at the beginning of the citation.

The parameters are 1 to 4 author surnames (in the same order as found in the citation) and the year as the last parameter, each with it's own.


 * Examples:





Unlike with templated citations, the input is actually rather arbitrary, but (including precise author name spellings and order), since someone might template the manually formatted citation at any time, which would auto-generate citation anchor data that could then be used with the same, , or other short-citation templates without them having to be updated.

Example
Some article text here. The footnote that follows will go to a short citation near the bottom of this page, which in turn will link to the full citation below it, which is free text using this tempate and is not itself a template-formatted citation.

Cited works

 * Buchanan, Abigail. (14 November 2023). "'We are making bagpipes sexy again': Inside the late Queen's beloved Scottish music school". The Daily Telegraph)