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-->
previous version has boolean value {{#ask:{{{hasPrevVersion|}}}|?IsCurrentVersion}} for current version
{{#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:  
Line 19: Line 34:
|format=ul }}
|format=ul }}


{{#if:{{{hasNamespace|}}}|main|{{#set:IsCurrentVersion=1}}|{{#set:IsCurrentVersion=1}} }}
{{#if:{{{hasNamespace|}}}|main|{{#set:IsCurrentVersion=1}}|{{#set:IsCurrentVersion=0}} }}
{{#set:HasDescription={{{hasDescription|}}} }}
{{#set:HasDescription={{{hasDescription|}}}  
{{#set:HasNamespace={{{hasNamespace|}}} }}
| HasNamespace={{{hasNamespace|}}}  
{{#set:IsVersionOf={{{isVersionOf|}}} }}  
| IsVersionOf={{{isVersionOf|}}}  
}}  
[[Category:ModelVersion]]
[[Category:ModelVersion]]
</includeonly>
</includeonly>

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