Template:Information: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
m (Enhance permissions parameter)
m (Enhance permissions parameter)
Line 10: Line 10:
|- style="vertical-align:top;"
|- style="vertical-align:top;"
! style="background:#ccf; text-align:right; padding-right:0.4em;" | Permission
! style="background:#ccf; text-align:right; padding-right:0.4em;" | Permission
| {{{permission|{{#switch: 1
| {{#if: {{{permission|}}} | {{#switch: {{{permission}}}
  | {{#ifeq: {{{permission|BY-SA}}}|BY-SA|1|0}} = [https://creativecommons.org/licenses/by-sa/4.0/ CC BY-SA 4.0]
  | BY-SA = [https://creativecommons.org/licenses/by-sa/4.0/ CC BY-SA 4.0]
   | {{#ifeq: {{{permission|BY-SA-3}}}|BY-SA-3|1|0}} = [https://creativecommons.org/licenses/by-sa/3.0/ CC BY-SA 3.0]
   | BY-SA-3 = [https://creativecommons.org/licenses/by-sa/3.0/ CC BY-SA 3.0]
   | {{#ifeq: {{{permission|PD}}}|PD|1|0}} = {{wp|Public domain}}
   | PD = {{wp|Public domain}}
   | {{#ifeq: {{{permission|GNU}}}|GNU|1|0}} = [http://www.gnu.org/copyleft/gpl.html GNU General Public License]
   | GNU = [http://www.gnu.org/copyleft/gpl.html GNU General Public License]
   }} }}}
  | #default = {{{permission}}}
   }} | [https://creativecommons.org/licenses/by-sa/4.0/ CC BY-SA 4.0] }}
|- {{#if: {{{additional|}}} | style="vertical-align:top;" | style="display:none;"}}
|- {{#if: {{{additional|}}} | style="vertical-align:top;" | style="display:none;"}}
! style="background:#ccf; text-align:right; padding-right:0.4em;" | Additional information
! style="background:#ccf; text-align:right; padding-right:0.4em;" | Additional information

Revision as of 02:32, 30 October 2024

Description
Source
Author
Permission CC BY-SA 4.0
Additional information

Template:Information is a template for displaying source and licensing information for a file. To use it, place the following code on the page:

{{Information
| description =
| source      =
| author      =
| permission  =
| additional  =
}}

Note: The permission parameter defaults to CC BY-SA 4.0 but may be changed.