Template:Source-attribution/doc

From "PTTLink Wiki"
Jump to navigation Jump to search

Usage

This template should be placed in the References section of an article if the article incorporates text from a source that is not under copyright and there is no source specific template listed in Category:Attribution templates.

This template takes up to three parameters:

1 (unnamed)
The name of the source, along with any other details which are needed to identify the work
pl
Pass yes to this parameter to change from "this source" to "these sources"
sentence
Pass any value to this template in order to change the opening statement (see examples)
{{Source-attribution|source and other details}}

Examples

A text string with no parameters, such as <ref>{{cite book|last=Author|first=A. N.|year=1066|title=An Old Book}} {{PD-notice}}</ref>, would display as [1]

The template with only the unnamed parameter, e.g. <ref>{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)}}</ref>, shows as [2]

Using |pl=yes, as in <ref>{{Source-attribution|pl=yes|''Handbook to the cathedrals of England'', by Richard John (1869)}}</ref>, shows as [3]

Using |sentence=yes, as in <ref>{{Source-attribution|sentence=yes|''Handbook to the cathedrals of England'', by Richard John (1869)}}</ref>, shows as [4]

In the references section, these appear as

References

  1. Author, A. N. (1066). An Old Book. {{cite book}}: |last= has generic name (help) Public Domain This article incorporates text from this source, which is in the public domain.
  2. Public Domain This article incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)
  3. Public Domain This article incorporates text from these sources, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)
  4. Public Domain One or more of the preceding sentences incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Hidden category

This template includes a hidden category—Category:Source attribution—which does not appear at the bottom of an article page but does contain any article page that contains this template.

See also