Template:Docu

From NYC Resistor Wiki
Jump to: navigation, 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
  • Property "Master page" (as page type) with input value "{{{master page}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
  • Property "From version" (as page type) with input value "{{{minversion}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
|0||{{#switch:{{{language}}}|
    de = Andere Versionen:|
    Other versions:
}}
  • Property "Master page" (as page type) with input value "{{{master page}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
  • Property "From version" (as page type) with input value "{{{minversion}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
}}       {{#ifeq:0
  • Property "Master page" (as page type) with input value "{{{master page}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
  • Property "From version" (as page type) with input value "{{{minversion}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
|0||{{#switch:{{{language}}}|
   de = Andere Sprachen:|
   Other languages:
}}
  • Property "Master page" (as page type) with input value "{{{master page}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
  • Property "From version" (as page type) with input value "{{{minversion}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
}}

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