Template:License: Difference between revisions

Template page
RTGame>AttemptToCallNil
(Only insert the category if the page is a file)
 
m (Changed protection level for "Template:License": High risk template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(50 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{msgbox
<div class="mbox mbox--expanded mbox--license mbox--{{{class|med}}}" role="presentation"><!--
|bgcol    = #FDFDFD
    --><span class="mbox__title"><!--
|lincol    = #AAAAAA
        --><span class="mbox__icon metadata">{{
|width    = 720px
  #if: {{{shortname|}}}  
|css      = text-align: left; margin: 0.5em auto; {{{css|}}}
  | [[File:{{{image|License {{{shortname|none}}}.png}}}|32px|link=]]
|image    = {{{image|License {{{shortname|none}}}.png}}}
  | [[File:WikimediaUI-Alert.svg|32px|link=]]}}{{
|imagecss  = text-align:center
|imagetextafter = {{
  #if: {{{img2|}}}
  #if: {{{img2|}}}
  | <div class="nowrap">[[File:License {{{img2}}}.svg|20px]] {{
  | [[File:License {{{img2}}}.svg|24px|link=]] {{
   #if: {{{img3|}}}
   #if: {{{img3|}}}
   | [[File:License {{{img3}}}.svg|20px]]
   | [[File:License {{{img3}}}.svg|24px|link=]]
   }} {{
   }} {{
   #if: {{{img4|}}}
   #if: {{{img4|}}}
   | [[File:License {{{img4}}}.svg|20px]]
   | [[File:License {{{img4}}}.svg|24px|link=]]
   }}</div>
   }}
  }}
  }}<!--
|imagesize = {{{imagesize|64px}}}
        --></span><!--
|title    = {{{title|This file is {{#if: {{{license|}}} | licensed under a {{{license}}} license. | unlicensed.}} }}}
        --><span>{{{title|This file is {{#if: {{{license|}}} | licensed under a {{{license}}} license. | unlicensed.}} }}}</span><!---
|text      = {{{description|Please set a license by {{#ifexist: {{FULLPAGENAME}} | applying the correct [[:Category:Licensing templates|license template]] | using the appropriate option on the drop-down list }}. Unlicensed images may be a copyright violation if they are not your works and will get deleted.}}}
    --></span><!--
|nocat = 1
    --><div class="mbox__text"><!--
}}<includeonly>{{#if: {{{title|}}}{{{license|}}}{{{nocat|}}} || {{#ifeq: {{NAMESPACE}} | File | [[Category:Unlicensed files]] }} }}</includeonly><noinclude>
        -->{{{description|Please set a license by {{#ifexist: {{FULLPAGENAME}} | applying the correct [[:Category:Licensing templates|license template]] | using the appropriate option on the drop-down list }}. Unlicensed images may be a copyright violation if they are not your works and will get deleted.}}}<!--
{{documentation}}
    --></div><!--
<!-- Put categories/interwiki on the documentation page -->
--></div><!--
</noinclude>
--><templatestyles src="Template:Mbox/styles.css" /><templatestyles src="Template:License/styles.css" />
<includeonly>{{#if: {{{title|}}}{{{license|}}}{{{nocat|}}} || {{#ifeq: {{NAMESPACE}} | File | [[Category:Unlicensed files]] }} }}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 14:57, 5 May 2021

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:License/doc. Changes can be proposed in the talk page.

This template should be used on any files that don't have a license, and you don't know what license it is supposed to be.

Usage

On images

This template can be automatically added to a file on upload by selecting This file is unlicensed or I'm not sure of this file's license from the licensing drop-down menu.

Alternatively, this template can be manually added to a file by pasting this code under the file's summary (if it has one) and above any categories.

== Licensing ==
{{license}}

Files using this template will be automatically added to Category:Unlicensed files.

In templates

This template is used to create all other license templates.

The image can be set using the parameter |image=. If unset, the image will default to "License name.png", with "name" being replaced by the value of |shortname=, or "none" if unset. The image size can be set using |imagesize=, which defaults to 64px

Below the image are three optional images set by the parameters |img2=, |img3=, and |img4=. Each parameter if set will add the image "License name.svg below the first image, with "name" being replaced with the value of the parameter.

The title can be set using the parameter |title=. If unset, the title will default to "This file is licensed under a type license.", with "type" being replaced with the value of |license=. If |license= is unset, the title will be the unlicensed title shown above, and the file will be added to Category:Unlicensed files.

The description can be set using |description=. If unset, the description will be the unlicensed description shown above.

See also