Template:Self: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
BudjarnLambeth (talk | contribs)
mNo edit summary
Fredg999 (talk | contribs)
Switch license according to given parameter, move doc, categories
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
'''''I, the copyright holder of this work,''' hereby publish it under the [https://creativecommons.org/licenses/by-sa/4.0/deed.en Creative Commons Attribution-ShareAlike 4.0] License.''
'''''I, the copyright holder of this work,''' hereby publish it under the {{#switch: {{{1|}}} | cc-by-sa-4.0 = [https://creativecommons.org/licenses/by-sa/4.0/ Creative Commons Attribution-ShareAlike 4.0] | cc-by-4.0 = [https://creativecommons.org/licenses/by/4.0/ Creative Commons Attribution 4.0] | cc-zero = [https://creativecommons.org/publicdomain/zero/1.0/ Creative Commons Zero 1.0] | ''unspecified CC license (see [[Template:Self]])''}} License.''
</includeonly>
</includeonly><noinclude>
<noinclude>
{{documentation}}
{{Wikipedia}}
This is the template that handles licensing information when you upload a file to the wiki and select one of the “own work” options from the drop-down menu.


It outputs the following in the description of the file you’ve uploaded: “'''''I, the copyright holder of this work,''' hereby publish it under the [https://creativecommons.org/licenses/by-sa/4.0/deed.en Creative Commons Attribution-ShareAlike 4.0] License.''”
[[Category:Xenharmonic Wiki file copyright templates]]
[[Category:Templates]]
{{todo|expand|comment=Find some way for this template to detect whether or not the author selected “share-alike” or not in the drop down menu when they uploaded the file, and have the template’s output reflect that.}}
</noinclude>
</noinclude>

Latest revision as of 22:38, 6 May 2025

Template documentation[view] [edit] [history] [purge]
English Wikipedia has an article on:

The Self template handles licensing information when you upload a file to the wiki and select one of the "own work" options from the drop-down menu.

Usage

The template uses a single unnamed parameter to determine the text to display.

Licensing option Parameter Displayed text
Own work, Creative Commons Attribution-Share Alike 4.0 cc-by-sa-4.0 I, the copyright holder of this work, hereby publish it under the Creative Commons Attribution-ShareAlike 4.0 License.
Own work, Creative Commons Attribution 4.0 cc-by-4.0 I, the copyright holder of this work, hereby publish it under the Creative Commons Attribution 4.0 License.
Own work, release into public domain under the CC-Zero license cc-zero I, the copyright holder of this work, hereby publish it under the Creative Commons Zero 1.0 License.

See also