Template:Source-attribution/doc

From MOASSpedia
< Template:Source-attribution
Revision as of 14:57, 26 January 2022 by Wikipedia>Sdkb (→‎Examples: accept as written)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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}}

TemplateData

Adds a notice that an article incorporates information from a public domain source

Template parameters

ParameterDescriptionTypeStatus
Source1

The name of the source, along with any other details which are needed to identify the work

Contentsuggested
Sentencesentence

Replaces the word "source" with custom text

Example
source and other details
Contentoptional
Plural?pl plural

Set to yes to change "this source" to "these sources"

Booleanoptional

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. 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