Template:MW-screenshot: Difference between revisions
More actions
m new tvar syntax |
m 1 revision imported |
(No difference)
|
Latest revision as of 17:11, 31 August 2025
{{#switch:
| =
The MediaWiki Logo {{#ifeq: trivial| trivial |No copyright|GNU license}} | This is a screenshot of the MediaWiki software. MediaWiki as a whole is licensed under the GNU General Public License version 2 or higher (GPLv2+). View the text of the GNU General Public License version 2 at https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Official logos of the Wikimedia Foundation, if contained in this screenshot are copyrighted and licensed under the CC BY-SA 3.0 license.
{{#switch:
|trivial=That said, however, this image is so simple, that it is probably not subject to copyright at all, and thus can be freely used for any purpose.
{{#if: | {{{demospace}}} | {{#ifeq:Template|File | file | other }} }} | file | image = | other | #default = }} | #default= Lua error: expandTemplate: template loop detected.
}} | gfdl=
{{#if: | {{{demospace}}} | {{#ifeq:Template|File | file | other }} }} | file | image = | other
| #default =
}}
| free={{#if: |{{{{{free}}}}}|Content is under a free license - please specify a license using the |
| #default=
{{#switch:<translate></translate>
| =
<translate> The MediaWiki Logo</translate> {{#ifeq: | trivial |<translate> No copyright</translate>|<translate> GNU license</translate>}} | <translate> This is a screenshot of the MediaWiki software.</translate> <translate> MediaWiki as a whole is licensed under the GNU General Public License version 2 or higher (<tvar name=1>GPLv2+</tvar>).</translate> <translate> View the text of the GNU General Public License version 2 at <tvar name=gnu>https://www.gnu.org/licenses/old-licenses/gpl-2.0.html</tvar></translate>
<translate> Official logos of the Wikimedia Foundation, if contained in this screenshot are copyrighted and licensed under the CC BY-SA 3.0 license.</translate>
{{#switch:
|trivial=<translate> That said, however, this image is so simple, that it is probably not subject to copyright at all, and thus can be freely used for any purpose.</translate>
{{#if: | {{{demospace}}} | {{#ifeq:Template|File | file | other }} }} | file | image = | other | #default = }} | #default= Lua error: expandTemplate: template loop detected.
}} | gfdl=
{{#if: | {{{demospace}}} | {{#ifeq:Template|File | file | other }} }} | file | image = | other
| #default =
}}
| free={{#if: |{{{{{free}}}}}|<translate> Content is under a free license - please specify a license using the <tvar name=1> |
{{#ifeq:|true||
{{#switch: | trivial | none= | wikipedia= | gfdl= | pd | free= | unfree= | #default= }} {{#switch: |= | none= | monobook= | #default=[[Category:{{{skin}}} skin screenshots]] }}
}}
| #default=
Lua error: expandTemplate: template loop detected.
}} }}
Usage
{{MW-screenshot|content=|skin=|free=}}
- CONTENT is used to specify what other content is visible in the screenshot, and should be replaced with one of the following values:
- {{#ifeq:Category:MW screenshots with no other content|
|
}}{{#if:none |none |none}}{{#ifeq:Category:MW screenshots with no other content|
|
}}
- there is no content, or all content is part of the MediaWiki user-interface.- {{#ifeq:Category:MW screenshots with Wikipedia content|
|
}}{{#if:wikipedia |wikipedia |wikipedia}}{{#ifeq:Category:MW screenshots with Wikipedia content|
|
}}
- The screenshot is of a Wikipedia page.- {{#ifeq:Category:MW screenshots with GFDL content|
|
}}{{#if:gfdl |gfdl |gfdl}}{{#ifeq:Category:MW screenshots with GFDL content|
|
}}
- The content is released under the GFDL license (but is not Wikipedia content).- {{#ifeq:Category:MW screenshots with free content|
|
}}{{#if:free |free |free}}{{#ifeq:Category:MW screenshots with free content|
|
}}
- The content is released under any other 'free or open source' license (not GFDL). In this case you can use the 'free' parameter to indicate a template to be used (see below).- {{#ifeq:Category:MW screenshots with non-free content|
|
}}{{#if:unfree |unfree |unfree}}{{#ifeq:Category:MW screenshots with non-free content|
|
}}
- The content is proprietary and is not distributed under any 'free or open source' license.- Any other value will cause the image to be placed in {{#ifeq:Category:MW screenshots with unspecified content|
|
}}[[Special:MyLanguage/Category:MW screenshots with unspecified content|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}MW screenshots with unspecified content/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0 |{{#ifeq:en|en |MW screenshots with unspecified content |{{#if: |{{#ifeq:0|0 | | String Module Error: Target string is empty }} |{{#if:{{ Template:TNTN | nsp = 0 }} |{{ Template:TNTN | nsp = 0 }} |Category:MW screenshots with unspecified content }} }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:MW screenshots with unspecified content |MW screenshots with unspecified content |Category:MW screenshots with unspecified content }} |Category:MW screenshots with unspecified content }}
}}}}]]{{#ifeq:Category:MW screenshots with unspecified content|
|
}}
and will need fixing.- SKIN is used to specify which skin is being used in the screenshot:
- none - No skin-specific content is visible (which is unlikely...)
- One of the following built-in skins: {{#ifeq:Category:Vector skin screenshots|
|
}}{{#if:vector |vector |vector}}{{#ifeq:Category:Vector skin screenshots|
|
}}
(the default skin), otherwise {{#ifeq:Category:Chick skin screenshots||
}}{{#if:chick |chick |chick}}{{#ifeq:Category:Chick skin screenshots|
|
}}
, {{#ifeq:Category:Classic skin screenshots||
}}{{#if:classic |classic |classic}}{{#ifeq:Category:Classic skin screenshots|
|
}}
, {{#ifeq:Category:Cologne Blue skin screenshots||
}}{{#if:cologneblue |cologneblue |cologneblue}}{{#ifeq:Category:Cologne Blue skin screenshots|
|
}}
, {{#ifeq:Category:Modern skin screenshots||
}}{{#if:modern |modern |modern}}{{#ifeq:Category:Modern skin screenshots|
|
}}
, {{#ifeq:Category:MonoBook skin screenshots||
}}{{#if:monobook |monobook |monobook}}{{#ifeq:Category:MonoBook skin screenshots|
|
}}
, {{#ifeq:Category:MySkin skin screenshots||
}}{{#if:myskin |myskin |myskin}}{{#ifeq:Category:MySkin skin screenshots|
|
}}
, {{#ifeq:Category:Nostalgia skin screenshots||
}}{{#if:nostalgia |nostalgia |nostalgia}}{{#ifeq:Category:Nostalgia skin screenshots|
|
}}
, {{#ifeq:Category:Simple skin screenshots||
}}{{#if:simple |simple |simple}}{{#ifeq:Category:Simple skin screenshots|
|
}}
. (note standard also exists as an alias for classic)- Any other value will cause the image to be placed in {{#ifeq:Category:MW screenshots with no skin specified|
|
}}[[Special:MyLanguage/Category:MW screenshots with no skin specified|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}MW screenshots with no skin specified/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0 |{{#ifeq:en|en |MW screenshots with no skin specified |{{#if: |{{#ifeq:0|0 | | String Module Error: Target string is empty }} |{{#if:{{ Template:TNTN | nsp = 0 }} |{{ Template:TNTN | nsp = 0 }} |Category:MW screenshots with no skin specified }} }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:MW screenshots with no skin specified |MW screenshots with no skin specified |Category:MW screenshots with no skin specified }} |Category:MW screenshots with no skin specified }}
}}}}]]{{#ifeq:Category:MW screenshots with no skin specified|
|
}}
and will need fixing.- FREE is an optional parameter, only used if content=free. In this case, the parameter names a template to be used to specify the license (don't include the curly brackets). For example: free=PD.
{{#if:== Usage ==
{{MW-screenshot|content=|skin=|free=}}
- CONTENT is used to specify what other content is visible in the screenshot, and should be replaced with one of the following values:
- {{#ifeq:Category:MW screenshots with no other content|
|
}}{{#if:none |none |none}}{{#ifeq:Category:MW screenshots with no other content|
|
}}
- there is no content, or all content is part of the MediaWiki user-interface.- {{#ifeq:Category:MW screenshots with Wikipedia content|
|
}}{{#if:wikipedia |wikipedia |wikipedia}}{{#ifeq:Category:MW screenshots with Wikipedia content|
|
}}
- The screenshot is of a Wikipedia page.- {{#ifeq:Category:MW screenshots with GFDL content|
|
}}{{#if:gfdl |gfdl |gfdl}}{{#ifeq:Category:MW screenshots with GFDL content|
|
}}
- The content is released under the GFDL license (but is not Wikipedia content).- {{#ifeq:Category:MW screenshots with free content|
|
}}{{#if:free |free |free}}{{#ifeq:Category:MW screenshots with free content|
|
}}
- The content is released under any other 'free or open source' license (not GFDL). In this case you can use the 'free' parameter to indicate a template to be used (see below).- {{#ifeq:Category:MW screenshots with non-free content|
|
}}{{#if:unfree |unfree |unfree}}{{#ifeq:Category:MW screenshots with non-free content|
|
}}
- The content is proprietary and is not distributed under any 'free or open source' license.- Any other value will cause the image to be placed in {{#ifeq:Category:MW screenshots with unspecified content|
|
}}[[Special:MyLanguage/Category:MW screenshots with unspecified content|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}MW screenshots with unspecified content/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0 |{{#ifeq:en|en |MW screenshots with unspecified content |{{#if: |{{#ifeq:0|0 | | String Module Error: Target string is empty }} |{{#if:{{ Template:TNTN | nsp = 0 }} |{{ Template:TNTN | nsp = 0 }} |Category:MW screenshots with unspecified content }} }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:MW screenshots with unspecified content |MW screenshots with unspecified content |Category:MW screenshots with unspecified content }} |Category:MW screenshots with unspecified content }}
}}}}]]{{#ifeq:Category:MW screenshots with unspecified content|
|
}}
and will need fixing.- SKIN is used to specify which skin is being used in the screenshot:
- none - No skin-specific content is visible (which is unlikely...)
- One of the following built-in skins: {{#ifeq:Category:Vector skin screenshots|
|
}}{{#if:vector |vector |vector}}{{#ifeq:Category:Vector skin screenshots|
|
}}
(the default skin), otherwise {{#ifeq:Category:Chick skin screenshots||
}}{{#if:chick |chick |chick}}{{#ifeq:Category:Chick skin screenshots|
|
}}
, {{#ifeq:Category:Classic skin screenshots||
}}{{#if:classic |classic |classic}}{{#ifeq:Category:Classic skin screenshots|
|
}}
, {{#ifeq:Category:Cologne Blue skin screenshots||
}}{{#if:cologneblue |cologneblue |cologneblue}}{{#ifeq:Category:Cologne Blue skin screenshots|
|
}}
, {{#ifeq:Category:Modern skin screenshots||
}}{{#if:modern |modern |modern}}{{#ifeq:Category:Modern skin screenshots|
|
}}
, {{#ifeq:Category:MonoBook skin screenshots||
}}{{#if:monobook |monobook |monobook}}{{#ifeq:Category:MonoBook skin screenshots|
|
}}
, {{#ifeq:Category:MySkin skin screenshots||
}}{{#if:myskin |myskin |myskin}}{{#ifeq:Category:MySkin skin screenshots|
|
}}
, {{#ifeq:Category:Nostalgia skin screenshots||
}}{{#if:nostalgia |nostalgia |nostalgia}}{{#ifeq:Category:Nostalgia skin screenshots|
|
}}
, {{#ifeq:Category:Simple skin screenshots||
}}{{#if:simple |simple |simple}}{{#ifeq:Category:Simple skin screenshots|
|
}}
. (note standard also exists as an alias for classic)- Any other value will cause the image to be placed in {{#ifeq:Category:MW screenshots with no skin specified|
|
}}[[Special:MyLanguage/Category:MW screenshots with no skin specified|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}MW screenshots with no skin specified/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0 |{{#ifeq:en|en |MW screenshots with no skin specified |{{#if: |{{#ifeq:0|0 | | String Module Error: Target string is empty }} |{{#if:{{ Template:TNTN | nsp = 0 }} |{{ Template:TNTN | nsp = 0 }} |Category:MW screenshots with no skin specified }} }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:MW screenshots with no skin specified |MW screenshots with no skin specified |Category:MW screenshots with no skin specified }} |Category:MW screenshots with no skin specified }}
}}}}]]{{#ifeq:Category:MW screenshots with no skin specified|
|
}}
and will need fixing.- FREE is an optional parameter, only used if content=free. In this case, the parameter names a template to be used to specify the license (don't include the curly brackets). For example: free=PD.|
}}