Template:Source-attribution/doc
This is a documentation subpage for Template:Source-attribution. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 19,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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}}
TemplateData
Adds a notice that an article incorporates information from a public domain source
Parameter | Description | Type | Status | |
---|---|---|---|---|
Source | 1 | The name of the source, along with any other details which are needed to identify the work | Content | suggested |
Sentence | sentence | Replaces the word "source" with custom text
| Content | optional |
Plural? | pl plural | Set to yes to change "this source" to "these sources" | Boolean | optional |
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
- ^ Author, A. N. (1066). An Old Book. This article incorporates text from this source, which is in the 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)
- ^ This article incorporates text from these sources, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)
- ^ 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