Difference between revisions of "Template:ModelVersionTemplate"

From IMAGE
Jump to: navigation, search
 
(11 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|
+
{{#ifeq:{{#show:{{PAGENAME}}|?IsChanged}}|true|
 
''Changes compared to previous version:''
 
''Changes compared to previous version:''
 
{{#arraymap:
 
{{#arraymap:
Line 50: Line 52:
 
{{#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 19: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.