Template:SfnRef/doc

Generate an identifier suitable as an anchor for a Harvard citation. This template, which can be used with either the name or the name, is intended to be paired with Harvard citation templates such as Sfn, harv, and harvnb. This template uses the same arguments as the other citation templates. As explained below, this template is needed only in some cases when the Harvard citation templates are used.

Usage


or

The first parameter is the first author's last name. Up to four authors can be given as parameters; if there are more than four authors, list only the first four. The last parameter is the year of publication, possibly with a letter suffixed to avoid ambiguity if there are multiple citations by the same set of authors in the same year.

All named parameters such as p are ignored.

Purpose
This template creates the proper value for the ref parameter for use with cite journal, cite book, citation, and the other Citation Style 1 and 2 templates, and for use by vcite journal, vcite book and other templates that generate references. It is intended to be paired with Sfn and uses the same arguments. As explained below, / is only necessary in a subset of the cases where is used.

creates a short footnote that is linked to a full footnote. creates the link automatically, but the full footnote must be assigned the proper ID value to be a valid target for that link.

When using the Citation Style 1 and 2 family of citation templates, a default ID is generated from the last names of the first four authors or editors. A custom ID can be created via the ref parameter. However, if none of last1, editor-last, or their equivalents are used, use to create the proper value without having to know the rules for how  creates the ID.

The vcite journal etc. templates (with " ", not " ") require the use of / to work with Harvard citations.

Examples

 * With the shortened footnote template

When citing an article published in the December 2004 edition of Rolling Stone where the author is unknown, you might create a short footnote as follows:



harv will not work in this case because "Rolling Stone" is not the name of the author. You may code the value for the ref parameter manually, or you can use and specify the same parameters as used with :



The full footnote:



You can copy and paste the template code and change the name of the template from "Sfn" to "SfnRef". If your short footnote includes page numbers such as, you can copy and paste it to create ; the 48 parameter is not necessary but will do no harm.


 * With other Harvard templates

For example, a References section might contain the following markup:

This markup uses  to generate the anchor identifier "", used internally to link Harvard references to citations. (This identifier is not visible to the article's reader.) The generated citation looks like this:

Article prose can link to this citation with markup like the following:

which generates the following:

To see how it works, click on the "".