Template:ModelVersionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:


Version description: {{{hasDescription|}}}
Version description: {{{hasDescription|}}}
<!-- If there is a previous version, check whether the IsCurrenVersion of that previous version is false-->
<!-- check the nr of CurrentVersions of this model, there should be one-->


previous version has boolean value {{#ask:{{{hasPrevVersion|}}}|?IsCurrentVersion}} for current version
{{checkCurrentVersion|{{{isVersionOf|}}} }}
 
{{#if:{{{hasPrevVersion|}}}||
|{{#if:{{{hasNamespace|}}}
  |main
  |{{#if:{{#ask:{{{hasPrevVersion|}}}|? IsCurrentVersion}}
    |1
    |Previous version and this version both has a 'is current version' = true. Please  set {{{hasPrevVersion|}}} to false!
    |
  }}
  |
  }}
}}


See components:  
See components:  

Revision as of 14:24, 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.