Template:ModelVersionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
Version description: {{{hasDescription|}}}
Version description: {{{hasDescription|}}}
<!-- check the nr of CurrentVersions of this model, there should be one-->
<!-- check the nr of CurrentVersions of this model, there should be one-->
Please check the number of current versions of model  {{{isVersionOf|}}}, there should be one!


{{CheckCurrentVersionTemplate
{{#arraymap:{{#ask:[[{{{isVersionOf|}}}]]|?-IsVersionOf=|mainlabel=-|link=none|format=list|sep=;}}
  |{{#arraymap:{{#ask:[[{{{isVersionOf|}}}]]|?-IsVersionOf=|mainlabel=-|link=none|format=list|sep=;}}
   |;|yy
   |;|yy
   | {{#ifeq:{{#ask:[[yy]]|?IsCurrentVersion=|mainlabel=-}}|true
   | [[yy]]; currentversion is {{#show:[[yy]]|?IsCurrentVersion}}
    |1
   |<br/>
    |0
    }}
   |+
  }}
}}
}}



Revision as of 16:02, 6 May 2016

This is the "ModelVersionTemplate" template. It should be called in the following format:

{{ModelVersionTemplate
|hasDescription=
|hasNamespace=
|isVersionOf=
}}

Edit the page to see the template text.