Template:BSD/doc: Difference between revisions
m syntaxhighlight lang="wikitext" |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{TemplateBox |
{{TemplateBox |
||
|1=1 |
|1=1 |
||
|1alias=attribution |
|||
| 1label = Attribution |
|||
|1d=Copyright holder (Owner, author) |
|1d=Copyright holder (Owner, author) |
||
|1def=The author |
|1def=The author |
||
|1stat=required |
|1stat=required |
||
| 1type = line |
|||
|2=version |
|2=version |
||
| 2label = Version |
|||
|2d=Which version of {{w|BSD license}} to use: |
|2d=Which version of {{w|BSD license}} to use: |
||
* '''4''': 4-clause license (original "BSD License"); |
* '''4''': 4-clause license (original "BSD License"); |
||
* '''3''': 3-clause license ("New BSD License" or "Modified BSD License" or "Revised 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"); |
* '''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|Detailed Usage]] for examples. |
See [[#Detailed Usage|Detailed Usage]] for examples. |
||
|2d-td=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") |
|||
<nowiki/> |
|||
| 2sv = 0/2/3/4 |
|||
|2def=3 |
|2def=3 |
||
|2stat= |
|2stat=suggested |
||
| 2type = number |
|||
|3=year |
|3=year |
||
| 3label = Year |
|||
|3d=Year, normally it should be the year of first publication |
|3d=Year, normally it should be the year of first publication |
||
⚫ | |||
|3def= |
|||
| 3type = number |
|||
⚫ | |||
|name=BSD |
|name=BSD |
||
|desc=The template for {{w|BSD licenses}} |
|desc=The template for {{w|BSD licenses}} |
||
| desc-td = The template for BSD licenses. |
|||
|namespace=File |
|namespace=File |
||
|usergroup=all |
|usergroup=all |
||
Line 24: | Line 42: | ||
|type=licence tag |
|type=licence tag |
||
|example= |
|example= |
||
|i18n-method= |
|i18n-method=ext.translate |
||
|i18n-desc= |
|i18n-desc= |
||
|seealso= |
|seealso={{tlx|ISC}}, {{tlx|BSD}} |
||
|setscats=[[:Category:0-clause BSD License]], [[:Category:2-clause BSD License]], [[:Category:3-clause BSD License]], <em>or</em> [[:Category:4-clause BSD License]] |
|||
|setscats= |
|||
|lines= |
|lines= |
||
|shorthand= |
|shorthand= |
||
|relieson= |
|relieson={{tlx|0BSD}} |
||
| useTemplateData = 1 |
|||
}} |
}} |
||
==Detailed Usage== |
==Detailed Usage== |
||
< |
<syntaxhighlight lang="wikitext">{{BSD|Josiah Carberry|version=3|year=2009}}</syntaxhighlight> |
||
===3-clause license=== |
===3-clause license=== |
||
The {{w|BSD 3-Clause License}} ("New BSD License" or "Modified BSD License") is the default status for this template. |
The {{w|BSD 3-Clause License}} ("New BSD License" or "Modified BSD License") is the default status for this template. |
||
<syntaxhighlight lang="wikitext">{{BSD|Josiah Carberry}}</syntaxhighlight> |
|||
<pre>{{BSD|Thomas Edison}}</pre> |
|||
or |
or |
||
< |
<syntaxhighlight lang="wikitext">{{BSD|Josiah Carberry|version=3}}</syntaxhighlight> |
||
renders as: |
renders as: |
||
{{BSD| |
{{BSD|Josiah Carberry|version=3}} |
||
===2-clause license=== |
===2-clause license=== |
||
The {{w|BSD 2-Clause License}} (a.k.a. "Simplified BSD License" or "FreeBSD License") |
The {{w|BSD 2-Clause License}} (a.k.a. "Simplified BSD License" or "FreeBSD License") |
||
< |
<syntaxhighlight lang="wikitext">{{BSD|Josiah Carberry|version=2}}</syntaxhighlight> |
||
renders as: |
renders as: |
||
{{BSD| |
{{BSD|Josiah Carberry|version=2}} |
||
===4-clause license=== |
===4-clause license=== |
||
The {{w|BSD 4-Clause License}} (original "BSD License") |
The {{w|BSD 4-Clause License}} (original "BSD License") |
||
< |
<syntaxhighlight lang="wikitext">{{BSD|Josiah Carberry|version=4}}</syntaxhighlight> |
||
renders as: |
renders as: |
||
{{BSD| |
{{BSD|Josiah Carberry|version=4}} |
||
===0-clause license=== |
|||
The {{w|BSD 0-Clause License}} ("0BSD", "Zero-Clause BSD", or "Free Public License 1.0.0") |
|||
<syntaxhighlight lang="wikitext">{{BSD|Josiah Carberry|version=0}}</syntaxhighlight> |
|||
renders as: |
|||
{{BSD|Josiah Carberry|version=0}} |
|||
Please note that the 0-clause license relies on {{tlx|0BSD}} |
|||
<includeonly> |
<includeonly> |
Latest revision as of 07:10, 3 June 2023
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
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Attribution | Copyright holder (Owner, author) | The author | required |
version | Version | Which version of BSD license to use:
| 3 | suggested |
year | Year | Year, normally it should be the year of first publication | empty | suggested |
Template data | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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 Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information The template for BSD licenses.
|
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
Localization
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:
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:
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:
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}}