Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MW-screenshot: Difference between revisions

Template page
m new tvar syntax
 
m 1 revision imported
 
(No difference)

Latest revision as of 17:11, 31 August 2025


{{#switch: | =

| #default=

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

| =

{{#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.

}} }}

Template documentation

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.|

}}

Contents