Template:ModelVersionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(36 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 or new version of [[{{{isVersionOf|}}}]].
<td class="PageWidthTableRemainderCell">[[{{{isVersionOf|}}}]]</td></tr>
{{#ifeq:{{{hasNamespace|}}} |main||
<tr><td class="PageWidthTableFirstCell">'''Version number:'''</td>
The documentation is preserved in the {{{hasNamespace|}}} namespace.}}
<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>
}}
}}
{{#ask: [[{{PAGENAME}}]]
</table>
|link=none
|format=template
|template=DisplayChangePathTemplate
|userparam={{{isVersionOf|}}}
}}
 


'''List of  {{{isVersionOf|}}} versions:'''
{{#ifeq:{{#show:{{PAGENAME}}|?IsChanged}}|true|
<ol>{{#arraymap:{{#ask:[[{{{isVersionOf|}}}]]|?-IsVersionOf=|mainlabel=-|link=none|format=list|sep=;}}
''Changes compared to previous version:''
  |;|yy
{{#arraymap:
  | <li>{{#ask:[[yy]]|?IsCurrentVersion=current version:|format=list}}</li>
  {{#ask:[[-Has subobject::{{PAGENAME}}]]|link=none|format=Plainlist|sep=;}}
  |
  |;|zz
}}</ol>
  |{{#ask:[[zz]]|mainlabel=-
                |? IsChangeOf
                |? HasChangeDescription
                |format=Plainlist
                |template=ChangeTemplate
                |intro=<table  class="PageWidthTableTemplate">
                |outro=  </table>
    }}
    |<br/>}}
|}}


See {{#show:{{{isVersionOf|}}}|? HasVersionOverview}}  
See {{#show:{{{isVersionOf|}}}|? HasVersionOverview}}  
 
</div>
{{#ifeq:{{#ask:[[-Has subobject::{{PAGENAME}}]]|format=count}}
|0
|{{#set:IsChanged=false}}
|{{#set:IsChanged=true}}
}}
{{#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>

Latest revision as of 13:17, 23 March 2020

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.