Template:Authority reference/doc

Usage
This template is used to produce references or footnotes for works where the reference text is not on the same page as the referencing location, but will be transcluded onto a single page. For example, some works collect all footnotes at the end of the work or at the end of each chapter, and therefore the footnote content is not available on the same page that refers to it.

The behaviour of the template is:
 * In the Page: namespace, this renders as a superscript link to the scan page that contains the reference (e.g. at the end of the chapter or book).
 * In the main namespace, it transcludes the reference text directly from the reference's scan page. This text is wrapped with tags and appears exactly as a normal Cite extension reference. Therefore, it can be controlled as usual, with markup like, smallrefs, etc at the end of the mainspace page.

For this to work, the reference text must:
 * Be inside a labelled section with a unique name, and
 * Must have a matching anchor or equivalent

 This is the reference or footnote text. 

Parameters

 * = name of the work in the Page: namespace where the reference text is found.
 * = page number of the reference text in the Page: namespace
 * = the reference number (this must match the labelled section and the anchor). When is not set, it will also be the reference's superscript text in Page namespace (but not in the main namespace, where it will be a sequential number).
 * = the superscript number to display in Page namespace, if is not suitable. Optional.
 * = name setting within . Optional: if not given, will be used.
 * = group setting within . Optional.
 * = The text to transclude in the mainspace. Optional. Only use this if the text cannot be contained in a single section on a single page. Note: the tag will not work from the Page: namespace.

Basic usage
As stated in Smith, clicking [1] will take you to the footnote on the current page (if you are not in the Page: namespace)

As stated in Smith, clicking [1] will take you to the footnote on the current page (if you are not in the Page: namespace)
 * Output (in mainspace and other non-Page namespaces):

Manual transclusion
In this case, the note text spans multiple Page: namespace pages, so it can be transcluded manually.

As stated in Smith.

As stated in Smith.
 * Output (in mainspace and other non-Page namespaces):

Extended usage
For works where there are many similar references, you can create a helper template that sets the, reducing the complexity of the template in your work's scan pages. An example is IrishBio ref.