Template:ModelVersionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
(45 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{ModelVersionTemplate
{{ModelVersionTemplate
|hasDescription=
|hasDescription=
|hasNamespace=
|hasVersionDocument=
|isVersionOf=
|isVersionOf=
|versionNumber=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifeq:{{#show:{{PAGENAME}}|? IsCurrentVersion}}|true
<div class="page_standard"><table class="PageWidthTableTemplate">
|{{PAGENAME}} is the current version of {{{isVersionOf|}}}
<tr><td class="PageWidthTableFirstCell">'''Version of Model:'''</td>
|{{PAGENAME}}is a previous version of {{{isVersionOf|}}}. The documentation is preserved in the {{{hasNamespace|}}} namespace.
<td class="PageWidthTableRemainderCell">[[{{{isVersionOf|}}}]]</td></tr>
<tr><td class="PageWidthTableFirstCell">'''Version number:'''</td>
<td class="PageWidthTableRemainderCell">{{{versionNumber|}}}</td></tr>
<tr><td class="PageWidthTableFirstCell">'''Current version:'''</td>
<td class="PageWidthTableRemainderCell">{{{isCurrentVersion|}}}</td></tr>
<tr><td class="PageWidthTableFirstCell">'''Description:'''</td>
<td class="PageWidthTableRemainderCell">{{{hasDescription|}}}</td></tr>
{{#ifeq:{{{hasVersionDocument|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Archive of this version:'''</td>
<td class="PageWidthTableRemainderCell">{{{hasVersionDocument|}}}, [[Media:{{{hasVersionDocument|}}}| open pdf file]]</td></tr>
}}
}}
Version description: {{{hasDescription|}}}
</table>
<!-- check the nr of CurrentVersions of this model, there should be one-->


Please check the number of current versions of {{{isVersionOf|}}}, there should be one!
{{#ifeq:{{#show:{{PAGENAME}}|?IsChanged}}|true|
''Changes compared to previous version:''
{{#arraymap:
  {{#ask:[[-Has subobject::{{PAGENAME}}]]|link=none|format=list|sep=;}}
  |;|zz
  |{{#ask:[[zz]]|mainlabel=-
                |? IsChangeOf
                |? HasChangeDescription
                |format=template
                |template=ChangeTemplate
                |intro=<table  class="PageWidthTableTemplate">
                |outro=  </table>
    }}
    |<br/>}}
|}}


'''List of versions:'''
See {{#show:{{{isVersionOf|}}}|? HasVersionOverview}}  
<ol>{{#arraymap:{{#ask:[[{{{isVersionOf|}}}]]|?-IsVersionOf=|mainlabel=-|link=none|format=list|sep=;}}
</div>
  |;|yy
{{#ifeq:{{#ask:[[-Has subobject::{{PAGENAME}}]]|format=count}}
  | <li>{{#ask:[[yy]]|?IsCurrentVersion=current version|format=list}}</li>
|0
  |
|{{#set:IsChanged=false}}
}}</ol>
|{{#set:IsChanged=true}}
 
'''Components of {{PAGENAME}}:'''
{{#ifeq:{{{hasNamespace|}}}
|main
|{{#ask:[[-IsImplementationOf::{{{isVersionOf|}}}]]|format=ul}}
|<ul>{{#arraymap:{{#ask:[[{{{isVersionOf|}}}]]|?IsImplementationOf=|mainlabel=-|format=list|link=none|sep=;}}|;|yy|<li>[[{{{hasNamespace|}}}:yy]]</li>|}}</ul>
}}
}}
{{#set:HasDescription={{{hasDescription|}}}  
{{#set:HasDescription={{{hasDescription|}}}  
| IsCurrentVersion={{{isCurrentVersion}}}
| IsCurrentVersion={{{isCurrentVersion}}}
| HasNamespace={{{hasNamespace|}}}  
| HasVersionDocument={{{hasVersionDocument|}}}  
| IsVersionOf={{{isVersionOf|}}}  
| IsVersionOf={{{isVersionOf|}}}  
| HasVersionNumber={{{versionNumber|}}}
}}  
}}  
[[Category:ModelVersion]]
[[Category:ModelVersion]]
</includeonly>
</includeonly>

Revision as of 20:35, 31 July 2017

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

{{ModelVersionTemplate
|hasDescription=
|hasVersionDocument=
|isVersionOf=
|versionNumber=
}}

Edit the page to see the template text.