Template:Open-source attribution

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Open Source Initiative keyhole.svg This article incorporates text from an open source work:

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

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

This template takes one required parameter and up to two optional parameters:

{{Open-source attribution|
|plural  = yes                  <!-- Indicate that the template is citing multiple sources (optional) -->
|pl      = yes                  <!-- Alias for above -->
|license =                      <!-- The license covering the referred work or works (optional) -->
| [source(s) and other details] <!-- Self explanatory (and required) -->
}}

Examples[edit]

The source(s) may be specified as a text string:

{{Open-source attribution|''Some Work'', by J. Doe (2000)}}
Result:
Open Source Initiative keyhole.svg This article incorporates text from an open source work: Some Work, by J. Doe (2000)

The source(s) may be specified within citation templates, such as {{cite book}}:

{{Open-source-attribution| {{cite book |last1=Doe |first1=J. |title=Some Work |volume=Vol. 1, Part 2. |year=2000 |publisher=Foo Publishing House}} }}
Result:
Open Source Initiative keyhole.svg This article incorporates text from an open source work: Doe, J. (2000). Some Work. Vol. 1, Part 2. Foo Publishing House. 

The license covering the work (e.g. CC-BY, CC-BY-SA, CC-NC-BY-SA, LGPL) may be specified:

{{Open-source-attribution|license=CC-BY| {{cite book |last1=Doe |first1=J. |title=Some Work |volume=Vol. 1, Part 2. |year=2000 |publisher=Foo Publishing House}} }}
Result:
Open Source Initiative keyhole.svg This article incorporates text from an open source work, under the CC-BY: Doe, J. (2000). Some Work. Vol. 1, Part 2. Foo Publishing House. 

Multiple works may be specified at a time:

{{Open-source-attribution|plural=yes| {{cite book |last1=Doe |first1=John |title=The Ultimate Question |year=2000 |publisher=Foo Publishing House}}; {{cite book |last1=Doe |first1=Jane |title=The Ultimate Answer |year=2000 |publisher=Bar Publishing Cavalcade}} }}
Result:
Open Source Initiative keyhole.svg This article incorporates text from open source works: Doe, John (2000). The Ultimate Question. Foo Publishing House. ; Doe, Jane (2000). The Ultimate Answer. Bar Publishing Cavalcade. 

All parameters may be specified:

{{Open-source-attribution|plural=yes|license=CC-BY| {{cite book |last1=Doe |first1=John |title=The Ultimate Question |year=2000 |publisher=Foo Publishing House}}; {{cite book |last1=Doe |first1=Jane |title=The Ultimate Answer |year=2000 |publisher=Bar Publishing Cavalcade}} }}
Result:
Open Source Initiative keyhole.svg This article incorporates text from open source works, under the CC-BY: Doe, John (2000). The Ultimate Question. Foo Publishing House. ; Doe, Jane (2000). The Ultimate Answer. Bar Publishing Cavalcade. 

Hidden category[edit]

This template includes a hidden category—Category:Open-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[edit]

  • {{source-attribution}} - a template that can 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.
  • {{citation-attribution}} a template that can be placed at the end of a sentence, sentences or a paragraph that incorporates text from a source that is not under copyright. It is an alternative to this template if only a few sentences or a paragraph has been copied.