Template:ExtensionLicense/doc

From Anarchaserver

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:extensionlicense/doc|-1|-2}}|doc|1|0}} and {{#if:en|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:Template:ExtensionLicense
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages{{#translation:}}]]
                  | [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:extensionlicense/doc|-1|-2}}|doc|1|0}} and {{#if:en|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:Template:ExtensionLicense
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages{{#translation:}}]]
                  | [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
                 }}
        }}
    | 
   }}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} Template to simplify the display and format of Licensing in Extension Infoboxes.

Usage

Usage: {{#if
{{safesubst:#switch:
|no
|n
|false
|0        = 
|         = 
|¬        = 
|yes
|y
|true
|1        = yes
|#default = yes

}}|Page Template:Nowrap/styles.css has no content.}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:EL|EL]]{{#if:LICENSECODE||LICENSECODE}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}

License Code Displayed Description Category
EduCommunity2 Educational Community License 2.0 Category:Educational Community licensed extensions
GNUGPL GNU General Public License Category:GPL licensed extensions
GNUGPL2 GNU General Public License 2.0 Category:GPL licensed extensions
GNUGPL2+ GNU General Public License 2.0 or later Category:GPL licensed extensions
GNUGPL3 GNU General Public License 3.0 Category:GPL licensed extensions
GNUGPL3+ GNU General Public License 3.0 or later Category:GPL licensed extensions
GNUFREE GNU Free Documentation License
LGPL GNU Lesser General Public License
LGPL3 GNU Lesser General Public License 3.0
GNUFDL GNU Free Documentation License
MIT <translate> The MIT License</translate> Category:MIT licensed extensions
MPL Mozilla Public License 2.0 Category:MPL licensed extensions
CCBY3 CC BY 3.0 Category:Creative Commons licensed extensions
CCBY4 CC BY 4.0 Category:Creative Commons licensed extensions
CCBYSA CC BY-SA Category:Creative Commons licensed extensions
CCBYSA2 CC BY-SA 2.0 Category:Creative Commons licensed extensions
CCBYSA25+ CC BY-SA 2.5 or later Category:Creative Commons licensed extensions
CCBYSA3 CC BY-SA 3.0 Category:Creative Commons licensed extensions
CCBYSA4 CC BY-SA 4.0 Category:Creative Commons licensed extensions
CCBYNC3 CC BY-NC 3.0 Category:Creative Commons licensed extensions
CCBYNCSA25 CC BY-NC-SA 2.5 Category:Creative Commons licensed extensions
CCBYNCSA3 CC BY-NC-SA 3.0 Category:Creative Commons licensed extensions
APACHE2 Apache License v2.0 Category:Apache licensed extensions
PD Public domain Category:Public domain licensed extensions
BSD2 BSD 2-Clause License Category:BSD licensed extensions
BSD3 BSD 3-Clause License Category:BSD licensed extensions
ISC ISC license Category:ISC licensed extensions
WTFPL WTFPL v2 Category:WTFPL licensed extensions
UserMati User:Mati/License
UserTimStarling <translate> Any OSI approved license</translate>

TemplateData

{{#switch:<translate></translate> |=

{{#if:{{safesubst:#switch:
|no
|n
|false
|0        = 
|         = 
|¬        = 
|yes
|y
|true
|1        = yes
|#default = yes

}}|{{#ifexpr:{{#if:|{{#ifeq:Template:ExtensionLicense/doc|Template:Transclude|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:extensionlicense/doc|-1|-2}}|doc|1|0}} and {{#if:en|1|0}} ) )|1|0}}}}|Template:Navbar}}}} {{#if:||<translate> This is the [[<tvar name=1>Special:MyLanguage/Help:TemplateData</tvar>|TemplateData]] documentation for this template used by [[<tvar name=2>Special:MyLanguage/VisualEditor</tvar>|VisualEditor]] and other tools.</translate>}}

ExtensionLicense

{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:extensionlicense/doc|-1|-2}}|doc|1|0}} and {{#if:en|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=

 {{#switch:

|=

{{#if:{{safesubst:#switch:
|no
|n
|false
|0        = 
|         = 
|¬        = 
|yes
|y
|true
|1        = yes
|#default = yes

}}|{{#ifexpr:{{#if:|{{#ifeq:Template:ExtensionLicense/doc|Template:Transclude|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:extensionlicense/doc|-1|-2}}|doc|1|0}} and {{#if:en|1|0}} ) )|1|0}}}}|Template:Navbar}}}} {{#if:||This is the TemplateData documentation for this template used by VisualEditor and other tools.}}

ExtensionLicense

{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:extensionlicense/doc|-1|-2}}|doc|1|0}} and {{#if:en|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=

 Lua error: expandTemplate: template loop detected.

}} }} <templatedata> { "description": { "en": "Template to simplify the display and format of licensing in extension infoboxes." }, "format": "inline", "params": { "1": { "label": { "en": "license code" }, "example": "GNUGPL", "type": "line", "required": true } } } </templatedata>