Saltar para o conteúdo

Predefinição:Notas de final de seção/doc

Wikisource, a biblioteca livre

Usage

[editar]

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 <ref> tags and appears exactly as a normal Cite extension reference. Therefore, it can be controlled as usual, with markup like <reference/>, {{smallrefs}}, etc at the end of the mainspace page.

For this to work, the reference text must:

{{anchor+|REFERENCE_ID}}
<section begin=REFERENCE_ID />
This is the reference or footnote text.
<section end=REFERENCE_ID />

Parameters

[editar]
  • title = name of the work in the Page: namespace where the reference text is found.
  • page = page number of the reference text in the Page: namespace
  • ref = the reference number (this must match the labelled section and the anchor). When display 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).
  • display = the superscript number to display in Page namespace, if ref is not suitable. Optional.
  • name = name setting within <ref>. Optional: if not given, ref will be used.
  • group = group setting within <ref>. Optional.
  • transclude = 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 <page/> tag will not work from the Page: namespace.

Example

[editar]

Basic usage

[editar]
As stated in Smith{{Authority reference 
 | title=A Compendium of Irish Biography.djvu 
 | page=614 
 | ref=34
}}, 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)

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


Manual transclusion

[editar]

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

As stated in Smith{{authority reference
 | title = The seven great hymns of the mediaeval church - 1902.djvu
 | page = 66
 | ref=note03
 | transclude={{#section:Page:The seven great hymns of the mediaeval church - 1902.djvu/66|note03}}
{{Page:The seven great hymns of the mediaeval church - 1902.djvu/67}}
}}.
Output (in mainspace and other non-Page namespaces)

As stated in Smith[2].

Instantiation of references

[editar]
{{smallrefs}}

Extended usage

[editar]

For works where there are many similar references, you can create a helper template that sets the title, reducing the complexity of the template in your work's scan pages. An example is {{Viagem ao norte do Brasil (1874) ref}}.


See also

[editar]
  • {{ref}} and {{note}}: to add a footnote ref tag on one page, and the note itself on another page