Template:MW-screenshot

From Anarchaserver
Revision as of 16:09, 4 February 2022 by B01 (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

| #default=

 {{#switch:

| =

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

}} }} Lua error: Module:TNT:158: Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates.{{#if:<translate>

Usage

</translate> {{#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}}:MW-screenshot|MW-screenshot]]{{#if:content=|skin=|free=||content=|skin=|free=}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}

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

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:Category|Category:}}MW screenshots with unspecified content/Page display title/en

 |{{#if:
   |
   |{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}MW screenshots with unspecified content/Page_display_title}} }}
 }}
 |{{#if:
   |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|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:Category|Category:}}MW screenshots with no skin specified/Page display title/en

 |{{#if:
   |
   |{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}MW screenshots with no skin specified/Page_display_title}} }}
 }}
 |{{#if:
   |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.|

[[Category:Template documentation pages{{#translation:}}]] }}

[[Category:License templates{{#translation:}}]] [[Category:File namespace templates{{#translation:}}|MW-screenshot]]