Template:ModelVersionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{ModelVersionTemplate
{{ModelVersionTemplate
|hasDescription=
|hasDescription=
|hasNamespace=
|hasVersionDocument=
|isVersionOf=
|isVersionOf=
|versionNumber=
|versionNumber=
Line 21: Line 21:
<tr><td class="PageWidthTableFirstCell">'''Description:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Description:'''</td>
<td class="PageWidthTableRemainderCell">{{{hasDescription|}}}</td></tr>
<td class="PageWidthTableRemainderCell">{{{hasDescription|}}}</td></tr>
<tr><td class="PageWidthTableFirstCell">'''Model description in namespace:'''</td>
{{#ifeq:{{{hasVersionDocument|}}}|||
<td class="PageWidthTableRemainderCell">{{{hasNamespace|}}}</td></tr>
<tr><td class="PageWidthTableFirstCell">'''Archive of this version:'''</td>
<td class="PageWidthTableRemainderCell">{{{hasVersionDocument|}}}, [[Media:{{{hasVersionDocument|}}}| open pdf file]]</td></tr>
}}
</table>
</table>


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


See {{#show:{{{isVersionOf|}}}|? HasVersionOverview}}  
See {{#show:{{{isVersionOf|}}}|? HasVersionOverview}}  
</div>
</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|}}}
| HasVersionNumber={{{versionNumber|}}}

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.