Template:Docu

From NYC Resistor Wiki
Jump to navigation Jump to search

This template is used for stating the language and version requirements for some documentation page. Usage:

{{docu|master page=Page title|language=en|minversion=1.0|maxversion=1.0.1}}

The parameters have the following meaning:

  • master page: the «main» page about that topic, usually the article with the English documentation for the most current version
  • language: a standard language code
  • minversion: minimal version for which the documentation applies
  • maxversion: maximal version for which the documentation applies, should be left away if a page applies to all current versions

{{#switch:{{{language}}}|

   de = Diese Dokumentationsseite gilt für alle SMW-Versionen von {{{minversion}}} bis zur aktuellsten Version.|
   This documentation page applies to all SMW versions from {{{minversion}}} to the most current version.
}}
{{#ifeq:0|0||{{#switch:{{{language}}}|
    de = Andere Versionen:|
    Other versions:
  }} 

}}       {{#ifeq:0|0||{{#switch:{{{language}}}|

   de = Andere Sprachen:|
   Other languages:
  }} 
}}

{{{master page}}} {{{language}}} {{{minversion}}} {{#if:|{{{maxversion}}}|}}