Difference between revisions of "Template:MW-screenshot"

From RobotX
Jump to navigation Jump to search
Mediawiki>Shirayuki
m
 
m (Text replacement - "<tvar|1>" to "")
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:
 
| =
 
| =
 
{{mbox
 
{{mbox
 
| type  = content
 
| type  = content
| image = [[Image:Wiki.png|52px|<translate><!--T:1--> The MediaWiki Logo</translate>]]<br />{{#ifeq: {{{content|<noinclude>trivial</noinclude>}}}| trivial |[[File:PD-icon.svg|52px|<translate><!--T:2--> No copyright</translate>]]|[[Image:Heckert GNU white.svg|52px|<translate><!--T:3--> GNU license</translate>]]}}
+
| image = [[Image:Wiki.png|52px| The MediaWiki Logo]]<br />{{#ifeq: {{{content|<noinclude>trivial</noinclude>}}}| trivial |[[File:PD-icon.svg|52px| No copyright]]|[[Image:Heckert GNU white.svg|52px| GNU license]]}}
| text = '''<translate><!--T:4--> This is a screenshot of the MediaWiki software.</translate>''' <translate><!--T:11--> MediaWiki as a whole is licenced under the [[w:GNU General Public License|GNU General Public License]] version 2 or higher (<tvar|1><span class="licensetpl_short">GPLv2+</span></>).</translate> <translate><!--T:12--> View the text of the <span class="licensetpl_long">GNU General Public License</span> version 2 at <tvar|gnu>[https://www.gnu.org/licenses/old-licenses/gpl-2.0.html https://www.gnu.org/licenses/old-licenses/gpl-2.0.html]</></translate>.<span style="display:none;" class="licensetpl_link"><nowiki>https</nowiki>://www.gnu.org/licenses/old-licenses/gpl-2.0.html</span>
+
| text = ''' This is a screenshot of the MediaWiki software.''' MediaWiki as a whole is licenced under the [[w:GNU General Public License|GNU General Public License]] version 2 or higher (<span class="licensetpl_short">GPLv2+</span>). View the text of the <span class="licensetpl_long">GNU General Public License</span> version 2 at <tvar|gnu>[https://www.gnu.org/licenses/old-licenses/gpl-2.0.html https://www.gnu.org/licenses/old-licenses/gpl-2.0.html].<span style="display:none;" class="licensetpl_link"><nowiki>https</nowiki>://www.gnu.org/licenses/old-licenses/gpl-2.0.html</span>
<translate><!--T:5--> Official logos of the Wikimedia Foundation, if contained in this screenshot are '''copyrighted and not licensed under a free license.'''</translate>
+
Official logos of the Wikimedia Foundation, if contained in this screenshot are '''copyrighted and not licensed under a free license.'''
{{#ifeq: {{{content|<noinclude>trivial</noinclude>}}} | trivial | <translate><!--T:6--> 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><br/>
+
{{#ifeq: {{{content|<noinclude>trivial</noinclude>}}} | 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'''.<br/>
 
{{#ifeq: {{{content|<noinclude>none</noinclude>}}} | none |  
 
{{#ifeq: {{{content|<noinclude>none</noinclude>}}} | none |  
|<br /><translate><!--T:7--> This screenshot also contains additional content that is not part of the MediaWiki interface as described above. This is covered by the following license:</translate>
+
|<br /> This screenshot also contains additional content that is not part of the MediaWiki interface as described above. This is covered by the following license:
  
{{#switch: {{{content|}}} | wikipedia={{Wikipedia-screenshot}} | pd={{PD}} | gfdl={{GFDL}} | free={{#if: {{{free|}}}|{{{{{free}}}}}|<translate><!--T:8--> Content is under a free license - please specify a license using the 'free' parameter (see {{tl|MW-screenshot}} for info).</translate>}} | unfree=<translate><!--T:9--> Content is under a '''non-free''' license!  Please use the appropriate license tag in addition to this template. Screenshots containing non-free content may be deleted if appropriate permission has not been granted on this page.</translate> | <translate><!--T:10--> No license specified!  Please check the details and correct them.</translate>}}}}}}
+
{{#switch: {{{content|}}} | wikipedia={{Wikipedia-screenshot}} | pd={{PD}} | gfdl={{GFDL}} | free={{#if: {{{free|}}}|{{{{{free}}}}}| Content is under a free license - please specify a license using the 'free' parameter (see {{tl|MW-screenshot}} for info).}} | unfree= Content is under a '''non-free''' license!  Please use the appropriate license tag in addition to this template. Screenshots containing non-free content may be deleted if appropriate permission has not been granted on this page. | No license specified!  Please check the details and correct them.}}}}}}
 
}} {{DEFAULTSORT:{{PAGENAME}}}}
 
}} {{DEFAULTSORT:{{PAGENAME}}}}
 
<includeonly>{{#ifeq:{{{nocat|}}}|true||
 
<includeonly>{{#ifeq:{{{nocat|}}}|true||
Line 37: Line 37:
 
{{Documentation|content=
 
{{Documentation|content=
  
<translate>
+
 
== Usage == <!--T:13-->
+
== Usage ==  
</translate>
+
 
 
{{tlx|MW-screenshot|<nowiki>content=|skin=|free=</nowiki>}}
 
{{tlx|MW-screenshot|<nowiki>content=|skin=|free=</nowiki>}}
  

Latest revision as of 18:18, 21 December 2019


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:
    • none - there is no content, or all content is part of the MediaWiki user-interface.
    • wikipedia - The screenshot is of a Wikipedia page.
    • gfdl - The content is released under the GFDL license (but is not Wikipedia content).
    • free - 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).
    • unfree - 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 Category:MW screenshots with unspecified content and will need fixing.
  • SKIN is used to specify which skin is being used in the screenshot:
  • 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.