Template:License: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (Modified the documentation.)
(Added the CC BY-SA licenses.)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
   | GPLv2+   = [[Template:GPL|GPLv2+]]
  | CC BY-SA 3.0    = [[Image:CC some rights reserved.png|x24px|link=Template:Cc-by-sa-3.0]] <!--
   | #default = [[Template:GPL|GPLv2+]]
                  -->[[Image:Cc-by new white.png|x24px|link=Template:Cc-by-sa-3.0]] <!--
                  -->[[Image:Cc-sa.png|x24px|link=Template:Cc-by-sa-3.0]] <!--
                  -->[[Template:Cc-by-sa-3.0|3.0]] <!--
                  -->[[Category:CC-BY-SA-3.0]]
  | CC BY-SA 4.0    = [[Image:CC some rights reserved.png|x24px|link=Template:Cc-by-sa-4.0]] <!--
                  -->[[Image:Cc-by new white.png|x24px|link=Template:Cc-by-sa-4.0]] <!--
                  -->[[Image:Cc-sa.png|x24px|link=Template:Cc-by-sa-4.0]] <!--
                  -->[[Template:Cc-by-sa-4.0|4.0]] <!--
                  -->[[Category:CC-BY-SA-4.0]]
  | CC BY-NC-SA 3.0 = [[Image:CC some rights reserved.png|x24px|link=Template:Cc-by-nc-sa-3.0]] <!--
                  -->[[Image:Cc-by new white.png|x24px|link=Template:Cc-by-nc-sa-3.0]] <!--
                  -->[[Image:Cc-nc.png|x24px|link=Template:Cc-by-nc-sa-3.0]] <!--
                  -->[[Image:Cc-sa.png|x24px|link=Template:Cc-by-nc-sa-3.0]] <!--
                  -->[[Template:Cc-by-nc-sa-3.0|3.0]] <!--
                  -->[[Category:CC-BY-NC-SA-3.0]]
  | CC BY-NC-SA 4.0 = [[Image:CC some rights reserved.png|x24px|link=Template:Cc-by-nc-sa-4.0]] <!--
                  -->[[Image:Cc-by new white.png|x24px|link=Template:Cc-by-nc-sa-4.0]] <!--
                  -->[[Image:Cc-nc.png|x24px|link=Template:Cc-by-nc-sa-4.0]] <!--
                  -->[[Image:Cc-sa.png|x24px|link=Template:Cc-by-nc-sa-4.0]] <!--
                  -->[[Template:Cc-by-nc-sa-4.0|4.0]] <!--
                  -->[[Category:CC-BY-NC-SA-4.0]]
  | CC BY-NC-ND 3.0 = [[Image:CC some rights reserved.png|x24px|link=Template:Cc-by-nc-nd-3.0]] <!--
                  -->[[Image:Cc-by new white.png|x24px|link=Template:Cc-by-nc-nd-3.0]] <!--
                  -->[[Image:Cc-nc.png|x24px|link=Template:Cc-by-nc-nd-3.0]] <!--
                  -->[[Image:Cc-nd white.png|x24px|link=Template:Cc-by-nc-nd-3.0]] <!--
                  -->[[Template:Cc-by-nc-nd-3.0|3.0]] <!--
                  -->[[Category:CC-BY-NC-ND-3.0]]
  | CC BY-NC-ND 4.0 = [[Image:CC some rights reserved.png|x24px|link=Template:Cc-by-nc-nd-4.0]] <!--
                  -->[[Image:Cc-by new white.png|x24px|link=Template:Cc-by-nc-nd-4.0]] <!--
                  -->[[Image:Cc-nc.png|x24px|link=Template:Cc-by-nc-nd-4.0]] <!--
                  -->[[Image:Cc-nd white.png|x24px|link=Template:Cc-by-nc-nd-4.0]] <!--
                  -->[[Template:Cc-by-nc-nd-4.0|4.0]] <!--
                  -->[[Category:CC-BY-NC-ND-4.0]]
   | GPLv2+         = [[Template:GPL|GPLv2+]] [[Category:GPLv2+]]
  | GPLv3+          = [[Image:Gplv3-88x31.png|x24px|link=Template:GPL3|GPLv3+]] [[Category:GPLv3+]]
   | #default       = {{#if: {{{1|}}}
                        | {{{1}}} [[Category:Uncategorized license]]
                        | [[Template:GPL|GPLv2+]] [[Category:GPLv2+]]
                      }}
}}<noinclude>
}}<noinclude>
{{Informative template|1=
{{Informative template|1=
== Goal ==
== Goal ==
To be used to license files.
To be used to license files.  This will automatically append the license category to the page for all recognised licenses.


The template automatically sets the following categories: [[:Category:GPL]],
The template automatically sets the following categories: [[:Category:GPL]],
Line 19: Line 57:


{{license/doc table}}
{{license/doc table}}
See the table at {{tl|license/doc table}}.
== Examples ==
=== Default ===
{{obr}}license{{cbr}}
{{license}}
=== GPLv2+ ===
{{obr}}license{{!}}GPLv2+{{cbr}}
{{license|GPLv2+}}
=== GPLv3+ ===
{{obr}}license{{!}}GPLv3+{{cbr}}
{{license|GPLv3+}}
=== Creative Commons ===
==== CC BY-SA ====
===== Version 3.0 =====
{{obr}}license{{!}}CC BY-SA 3.0{{cbr}}
{{license|CC BY-SA 3.0}}
===== Version 4.0 =====
{{obr}}license{{!}}CC BY-SA 4.0{{cbr}}
{{license|CC BY-SA 4.0}}
==== CC BY-NC-SA ====
===== Version 3.0 =====
{{obr}}license{{!}}CC BY-NC-SA 3.0{{cbr}}
{{license|CC BY-NC-SA 3.0}}
===== Version 4.0 =====
{{obr}}license{{!}}CC BY-NC-SA 4.0{{cbr}}
{{license|CC BY-NC-SA 4.0}}
==== CC BY-NC-ND ====
===== Version 3.0 =====
{{obr}}license{{!}}CC BY-NC-ND 3.0{{cbr}}
{{license|CC BY-NC-ND 3.0}}
===== Version 4.0 =====
{{obr}}license{{!}}CC BY-NC-ND 4.0{{cbr}}
{{license|CC BY-NC-ND 4.0}}
=== Unknown license ===
{{obr}}license{{!}}never-seen-before-open-source-license{{cbr}}
{{license|never-seen-before-open-source-license}}


}}
}}
[[Category:License templates]]
[[Category:License templates]]
</noinclude>
</noinclude>

Latest revision as of 12:17, 12 September 2020

GPLv2+

The following template description is not displayed when the template is inserted in an article.

Goal

To be used to license files. This will automatically append the license category to the page for all recognised licenses.

The template automatically sets the following categories: Category:GPL,

Usage

{{license
| type
}}
type
The name of the license.

License types

Value Linked category Text/graphic
default Category:GPL GPLv2+
"GPLv2+" Category:GPL GPLv2+
"GPLv3+" Category:GPLv3+ GPLv3+
"CC BY-SA 3.0" Category:CC-BY-SA-3.0 CC some rights reserved.png Cc-by new white.png Cc-sa.png 3.0
"CC BY-SA 4.0" Category:CC-BY-SA-4.0 CC some rights reserved.png Cc-by new white.png Cc-sa.png 4.0
"CC BY-NC-SA 3.0" Category:CC-BY-NC-SA-3.0 CC some rights reserved.png Cc-by new white.png Cc-nc.png Cc-sa.png 3.0
"CC BY-NC-SA 4.0" Category:CC-BY-NC-SA-4.0 CC some rights reserved.png Cc-by new white.png Cc-nc.png Cc-sa.png 4.0
"CC BY-NC-ND 3.0" Category:CC-BY-NC-ND-3.0 CC some rights reserved.png Cc-by new white.png Cc-nc.png Cc-nd white.png 3.0
"CC BY-NC-ND 4.0" Category:CC-BY-NC-ND-4.0 CC some rights reserved.png Cc-by new white.png Cc-nc.png Cc-nd white.png 4.0

See the table at {{license/doc table}}.


Examples

Default

{{license}}

GPLv2+

GPLv2+

{{license|GPLv2+}}

GPLv2+

GPLv3+

{{license|GPLv3+}}

GPLv3+

Creative Commons

CC BY-SA

Version 3.0
{{license|CC BY-SA 3.0}}

CC some rights reserved.png Cc-by new white.png Cc-sa.png 3.0

Version 4.0
{{license|CC BY-SA 4.0}}

CC some rights reserved.png Cc-by new white.png Cc-sa.png 4.0

CC BY-NC-SA

Version 3.0
{{license|CC BY-NC-SA 3.0}}

CC some rights reserved.png Cc-by new white.png Cc-nc.png Cc-sa.png 3.0

Version 4.0
{{license|CC BY-NC-SA 4.0}}

CC some rights reserved.png Cc-by new white.png Cc-nc.png Cc-sa.png 4.0

CC BY-NC-ND

Version 3.0
{{license|CC BY-NC-ND 3.0}}

CC some rights reserved.png Cc-by new white.png Cc-nc.png Cc-nd white.png 3.0

Version 4.0
{{license|CC BY-NC-ND 4.0}}

CC some rights reserved.png Cc-by new white.png Cc-nc.png Cc-nd white.png 4.0

Unknown license

{{license|never-seen-before-open-source-license}}

never-seen-before-open-source-license