Template:copyright: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:


=== Parameters ===
=== Parameters ===
*public_domain
Allowed values of the [[Property:type copyright]]:<br>{{#show: Property:type copyright|?Allows value}}
*non_commercial
*cc_sa
*display
*unknown


=== Examples ===
=== Examples ===
The code <code><nowiki>{{copyright|cc_sa}}</nowiki></code> will display:
The code <code><nowiki>{{copyright|type_copyright=Public Domain}}</nowiki></code> will display:
{{copyright|cc_sa}}
{{copyright|type_copyright=Public Domain}}


The code <code><nowiki>{{copyright|non_commercial}}</nowiki></code> will display:
The code <code><nowiki>{{copyright|non_commercial}}</nowiki></code> will display:
{{copyright|non_commercial}}
{{copyright|non_commercial}}
The code <code><nowiki>{{copyright}}</nowiki></code> will display:
{{copyright}}


__NOTOC__
__NOTOC__
[[Category:Text Module]]
[[Category:Text Module]]
</noinclude><includeonly>{{#vardefine: parameter | {{{1|}}} }}{{#vardefine: ok | 0 }}<div class="cshow">'''Copyright:'''<br />{{#ifeq: {{#var: parameter }}|display|This file is licensed only for display on [http://www.univie.ac.at/lexlep/ {{SITENAME}}] and should not be downloaded and used without permission from the copyright holder.{{#vardefine: ok | 1 }}[[type_copyright::Only for Display on {{SITENAME}}| ]]}}{{#ifeq: {{#var: parameter }}|public_domain|This file has been released into the '''public domain''' by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.{{#vardefine: ok | 1 }}[[type_copyright::Public Domain| ]]}}{{#ifeq: {{#var: parameter }}|cc_sa|This file is licensed under the [http://creativecommons.org/licenses/by-sa/3.0/ Creative&nbsp;Commons Attribution&nbsp;ShareAlike&nbsp;3.0]&nbsp;License.{{#vardefine: ok | 1 }}[[type_copyright::Creative Commons Attribution ShareAlike 3.0| ]]}}{{#ifeq: {{#var: parameter }}|non_commercial|The copyright holder only allows this file to be used for '''non-commercial''' and/or '''educational''' purposes.{{#vardefine: ok | 1 }}[[type_copyright::Non-commercial or educational use| ]]}}{{#ifeq: {{#var: ok}}|0|There has not yet been defined any copyright condition for this file. You are '''not allowed''' to do anything with this file![[type_copyright::unknown| ]]}}</div></includeonly>
</noinclude><includeonly>{{#if: {{{type_copyright|}}}|{{#vardefine: parameter| {{{type_copyright|}}} }}|{{#vardefine: parameter | {{{1|}}} }} }}{{#ifeq: {{#var: parameter}}|public_domain|{{#vardefine: parameter|Public Domain}} }}{{#ifeq: {{#var: parameter}}|cc_sa|{{#vardefine: parameter|Creative Commons Attribution ShareAlike 3.0}} }}{{#ifeq: {{#var: parameter}}|non_commercial|{{#vardefine: parameter|Non-commercial or educational use}} }}{{#ifeq: {{#var: parameter}}|display|{{#vardefine: parameter|Display only}} }}{{#vardefine: ok | 0 }}
== Licensing ==
<div class="cshow">'''Copyright:'''<br />{{#ifeq: {{#var: parameter }}|Public Domain|This file has been released into the '''public domain''' by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.{{#vardefine: ok | 1 }} }}{{#ifeq: {{#var: parameter }}|Creative Commons Attribution ShareAlike 3.0|This file is licensed under the [http://creativecommons.org/licenses/by-sa/3.0/ Creative Commons Attribution ShareAlike&nbsp;3.0] License.{{#vardefine: ok | 1 }} }}{{#ifeq: {{#var: parameter }}|Non-commercial or educational use|The copyright holder only allows this file to be used for '''non-commercial''' and/or '''educational''' purposes. In case of use, the prior written '''permission of the copyright holder''' is required.{{#vardefine: ok | 1 }} }}{{#ifeq: {{#var: parameter }}|Display only|This file is licensed only for display on [http://www.univie.ac.at/raetica/ {{SITENAME}}] and should not be downloaded and used without permission from the copyright holder.{{#vardefine: ok | 1 }} }}{{#ifeq: {{#var: ok}}|0|There has not yet been defined any copyright condition for this file. You are '''not allowed''' to do anything with this file!{{#vardefine: parameter| unknown }} }}[[type copyright::{{#var: parameter}}| ]]
</div></includeonly>

Latest revision as of 09:28, 4 June 2014

This template serves to display copyright information on file pages. It stores the used license as Property:type_copyright. The license selection list is defined in MediaWiki:Licenses.

Parameters

Allowed values of the Property:type copyright:
Public Domain, Creative Commons Attribution ShareAlike 3.0, Non-commercial or educational use, unknown, Display only

Examples

The code {{copyright|type_copyright=Public Domain}} will display:

Licensing

Copyright:
This file has been released into the public domain by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.

The code {{copyright|non_commercial}} will display:

Licensing

Copyright:
The copyright holder only allows this file to be used for non-commercial and/or educational purposes. In case of use, the prior written permission of the copyright holder is required.

The code {{copyright}} will display:

Licensing

Copyright:
There has not yet been defined any copyright condition for this file. You are not allowed to do anything with this file!