This page is semi-protected against editing.

Template:BSD

From Wikimedia Commons, the free media repository
(Redirected from Template:BSDu)
Jump to navigation Jump to search
Copyright © The author

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of The author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

This software is provided by The author and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall The author and contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:BSD/doc.

The template for BSD licenses

The template automatically sets the following categories: Category:0-clause BSD License, Category:2-clause BSD License, Category:3-clause BSD License, or Category:4-clause BSD License

Usage

{{BSD |1= |version= |year= }}

Template parameters

ParameterDescriptionDefaultStatus
1AttributionCopyright holder (Owner, author)The authorrequired
versionVersionWhich version of BSD license to use:
  • 4: 4-clause license (original "BSD License");
  • 3: 3-clause license ("New BSD License" or "Modified BSD License" or "Revised BSD License");
  • 2: 2-clause license ("Simplified BSD License" or "FreeBSD License");
  • 0: 0-clause license ("0BSD", "Zero-Clause BSD", or "Free Public License 1.0.0")
See Detailed Usage for examples.
3suggested
yearYearYear, normally it should be the year of first publicationemptysuggested
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

The template for BSD licenses.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Attribution1

Copyright holder (Owner, author)

Default
The author
Linerequired
Versionversion

Which version of the BSD license to use:

  • 4 – 4-clause license (original "BSD License");
  • 3 – 3-clause license ("New BSD License" or "Modified BSD License" or "Revised BSD License");
  • 2 – 2-clause license ("Simplified BSD License" or "FreeBSD License");
  • 0 – 0-clause license ("0BSD", "Zero-Clause BSD", or "Free Public License 1.0.0")

Suggested values
0 2 3 4
Default
3
Numbersuggested
Yearyear

Year, normally it should be the year of first publication

Numbersuggested

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Placement: In the "Permission" parameter of the {{Information}} template (or the respective parameter of similar templates) or in the "Licensing" section

Relies on:
{{0BSD}}

See also

{{ISC}}, {{BSD}}

Localization

čeština  Deutsch  dansk  English  español  українська  Esperanto  日本語  polski  Ελληνικά  فارسی  македонски  русский  中文  العربية  suomi  Nederlands  Bahasa Indonesia  português do Brasil  français  magyar  한국어  italiano  português  +/−

This template makes use of {{Autotranslate}} and the translate extension. The layout of the template can be found under Template:BSD/layout.

Detailed Usage

{{BSD|Josiah Carberry|version=3|year=2009}}

3-clause license

The BSD 3-Clause License ("New BSD License" or "Modified BSD License") is the default status for this template.

{{BSD|Josiah Carberry}}

or

{{BSD|Josiah Carberry|version=3}}

renders as:

Copyright © Josiah Carberry

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Josiah Carberry nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

This software is provided by Josiah Carberry "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall Josiah Carberry be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

2-clause license

The BSD 2-Clause License (a.k.a. "Simplified BSD License" or "FreeBSD License")

{{BSD|Josiah Carberry|version=2}}

renders as:

Copyright © Josiah Carberry

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

This software is provided by Josiah Carberry "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall Josiah Carberry be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

4-clause license

The BSD 4-Clause License (original "BSD License")

{{BSD|Josiah Carberry|version=4}}

renders as:

Copyright © Josiah Carberry

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. All advertising materials mentioning features or use of this software must display the following acknowledgement:
    This product includes software developed by Josiah Carberry.
  4. Neither the name of Josiah Carberry nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

This software is provided by Josiah Carberry "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall Josiah Carberry be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

0-clause license

The BSD 0-Clause License ("0BSD", "Zero-Clause BSD", or "Free Public License 1.0.0")

{{BSD|Josiah Carberry|version=0}}

renders as:

This file is made available under the Zero-Clause BSD License.

Copyright © Josiah Carberry

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Please note that the 0-clause license relies on {{0BSD}}