This page is semi-protected against editing.

Template:MIT

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
This file is licensed under the Expat License, sometimes known as the MIT License:

Copyright © The author(s)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.


To uploader: MIT License has various versions, you may want to specify the license more precisely. Click {{MIT}} to see details.

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

The MIT License (Expat license or X11 license) template

The template automatically sets the following categories: Files using the templates {{MIT|<Author>|Expat}}, {{Expat|<Author>}} and {{MIT|<Author>}} are placed in Category:Expat/MIT License; files using the templates {{MIT|<Author>|X11}} and {{X11|<Author>}} are placed in Category:X11 License.

Usage

{{MIT |1= |2= |3= }}

Template parameters

ParameterDescriptionDefaultStatus
1
attribution
authorOriginal author of the work; optional but strongly recommendedThe author(s)suggested
2licenseLicense; "Expat" or "X11"; optional but recommended; see Detailed Usage belowExpatsuggested
3
year
yearYear, normally it should be the year of first publicationemptyoptional
<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.


Wikipedia's help about TemplateDataCommons-specific information

The MIT License (Expat license or X11 license) template

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
author1 attribution

Original author of the work; optional but strongly recommended

Default
The author(s)
Contentsuggested
license2

License; optional but recommended; see the template documentation for more information

Suggested values
Expat X11
Default
Expat
Linesuggested
year3 year

Year, normally it should be the year of first publication

Lineoptional

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

Localization

Bahasa Indonesia  British English  dansk  Deutsch  English  español  Esperanto  français  italiano  Nederlands  português do Brasil  polski  português  suomi  svenska  Tagalog  Türkçe  български  македонски  русский  українська  বাংলা  +/−

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

Note: Do not translate the words "Expat" and "X11" when they are used as parameters inside "{{}}".

Detailed Usage

MIT License has various versions, it may accurately refer to the Expat license or the X11 license. The "MIT License" often used and published on the official site of Open Source Initiative is the same as the Expat license. So It would be better if you specify the license more precisely:

Expat License

If you are sure that the work is licensed under the same version as the Expat license, you may use:

{{MIT|Thomas Edison|Expat}}

or

{{Expat|Thomas Edison}}

it would render as:

This file is licensed under the Expat License, sometimes known as the MIT License:

Copyright © Thomas Edison

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.


The file would be placed in Category:Expat/MIT License.

X11 License

If you are sure that the work is licensed under the same version as the X11 license, which prevents the name(s) of the author(s) from being used in advertising, you may use:

{{MIT|Thomas Edison|X11}}

or

{{X11|Thomas Edison}}

it would render as:

This file is licensed under the X11 License, sometimes known as the MIT License:

Copyright © Thomas Edison

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.

Except as contained in this notice, the name(s) of (the) Thomas Edison shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from (the) Thomas Edison.


The file would be placed in Category:X11 License.

Default MIT License

If you leave the second parameter blank:

{{MIT|Thomas Edison}}

it would render as:

This file is licensed under the Expat License, sometimes known as the MIT License:

Copyright © Thomas Edison

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.


To uploader: MIT License has various versions, you may want to specify the license more precisely. Click {{MIT}} to see details.

with a notice "To uploader: MIT License has various versions..." at the bottom. The file would be placed in Category:Expat/MIT License.