Template:ModelVersionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(105 intermediate revisions by the same user not shown)
Line 4: Line 4:
<pre>
<pre>
{{ModelVersionTemplate
{{ModelVersionTemplate
|hasNamespace=
|hasDescription=
|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>
This version of {{{isVersionOf|}}} is documented in the {{{hasNamespace|}}} namespace.
<div class="page_standard"><table class="PageWidthTableTemplate">
<tr><td class="PageWidthTableFirstCell">'''Version of Model:'''</td>
<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>
}}
</table>


{{{hasDescription|}}}
{{#ifeq:{{#show:{{PAGENAME}}|?IsChanged}}|true|
''Changes compared to previous version:''
{{#arraymap:
  {{#ask:[[-Has subobject::{{PAGENAME}}]]|link=none|format=Plainlist|sep=;}}
  |;|zz
  |{{#ask:[[zz]]|mainlabel=-
                |? IsChangeOf
                |? HasChangeDescription
                |format=Plainlist
                |template=ChangeTemplate
                |intro=<table  class="PageWidthTableTemplate">
                |outro=  </table>
    }}
    |<br/>}}
|}}


{{#set:HasDescription={{{HasDescription|}}} }}
See {{#show:{{{isVersionOf|}}}|? HasVersionOverview}}  
{{#set:HasNamespace={{{hasNamespace|}}} }}
</div>
{{#IsVersionOf::{{{isVersionOf|}}} ))
{{#ifeq:{{#ask:[[-Has subobject::{{PAGENAME}}]]|format=count}}
|0
|{{#set:IsChanged=false}}
|{{#set:IsChanged=true}}
}}
{{#set:HasDescription={{{hasDescription|}}}
| IsCurrentVersion={{{isCurrentVersion}}}
| HasVersionDocument={{{hasVersionDocument|}}}
| 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.