Template:File copyright: Difference between revisions

From VideoLAN Wiki
Jump to navigation Jump to search
Add logic to check for copyright codes
Remove parameter |text=, simply check for first unnamed parameter
Line 6: Line 6:
   |GPL            = This file is under the '''[https://www.gnu.org/licenses/gpl.html GNU General Public License]''' (any version ever published).
   |GPL            = This file is under the '''[https://www.gnu.org/licenses/gpl.html GNU General Public License]''' (any version ever published).
   |PD              = This file is in the '''Public Domain''' and may be used for any purpose.
   |PD              = This file is in the '''Public Domain''' and may be used for any purpose.
   |#default        = {{{text|Copyright details}}}
   |#default        = {{{1|Copyright details}}}
}}</div><noinclude>
}}</div><noinclude>
== Usage ==
== Usage ==
  <code>{{{{PAGENAME}}|<nowiki><copyright>}}</nowiki></code>
  <code>{{{{PAGENAME}}|<nowiki><copyright>}}</nowiki></code>
or
<code>{{{{PAGENAME}}|text=<nowiki>}}</nowiki></code>


Copyright may be:
Copyright may be:
Line 20: Line 18:
* PD
* PD


New copyright values can be added as needed
Otherwise the information will be displayed as-is (wikimarkup allowed), e.g. <code>{{{{PAGENAME}}|<nowiki>custom}}</nowiki></code> will give <samp>custom</samp>


[[Category:File copyright templates|*]]
[[Category:File copyright templates|*]]
</noinclude>
</noinclude>

Revision as of 08:05, 23 April 2019

Copyright details

Usage

{{File copyright|<copyright>}}

Copyright may be:

  • CC-0
  • CC-BY-NC-SA-2.0
  • CC-BY-SA-4.0
  • GPL
  • PD

Otherwise the information will be displayed as-is (wikimarkup allowed), e.g. {{File copyright|custom}} will give custom