Template:ModelVersionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
</noinclude><includeonly>
</noinclude><includeonly>
<div class="page_standard"><table class="PageWidthTableTemplate">
<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>
<tr><td class="PageWidthTableFirstCell">Version number:</td>
<td class="PageWidthTableRemainderCell">{{{versionNumber|}}}</td></tr>}
<td class="PageWidthTableRemainderCell">{{{versionNumber|}}}</td></tr>
<tr><td class="PageWidthTableFirstCell">Current version:</td>
<tr><td class="PageWidthTableFirstCell">Current version:</td>
<td class="PageWidthTableRemainderCell">{{{isCurrentVersion|}}}</td></tr>}
<td class="PageWidthTableRemainderCell">{{{isCurrentVersion|}}}</td></tr>
<tr><td class="PageWidthTableFirstCell">Description:</td>
<tr><td class="PageWidthTableFirstCell">Description:</td>
<td class="PageWidthTableRemainderCell">{{{hasDescription|}}}</td></tr>}
<td class="PageWidthTableRemainderCell">{{{hasDescription|}}}</td></tr>
{{#ifeq:{{{hasNamespace|}}} |main||
{{#ifeq:{{{hasNamespace|}}} |main||
<tr><td class="PageWidthTableFirstCell">Model description preserved in namespace</td>
<tr><td class="PageWidthTableFirstCell">Model description preserved in namespace:</td>
<td class="PageWidthTableRemainderCell">{{{hasNamespace|}}}</td></tr>}
<td class="PageWidthTableRemainderCell">{{{hasNamespace|}}}</td></tr> }}
}}
<tr><td class="PageWidthTableFirstCell">Changes:</td>
<td class="PageWidthTableRemainderCell">{{#ask:[[-Has subobject::{{PAGENAME}}]]|mainlabel=-|? IsChangeOf|? HasChangeDescription |format=template |template=ChangeTemplate}} </td></tr>
</table>}}
 


</table>
</table>
</div>
</div>
{{#ifeq:{{#show:{{PAGENAME}}|? IsCurrentVersion}}|true
 
|{{PAGENAME}} is the current version of [[{{{isVersionOf|}}}]]
|{{PAGENAME}} is a previous or new version of [[{{{isVersionOf|}}}]].
{{#ifeq:{{{hasNamespace|}}} |main||
The documentation is preserved in the {{{hasNamespace|}}} namespace.}}
}}
{{#ask: [[{{PAGENAME}}]]
{{#ask: [[{{PAGENAME}}]]
|link=none
|link=none
Line 38: Line 38:
}}
}}


'''List of  {{{isVersionOf|}}} versions:'''
<ol>{{#arraymap:{{#ask:[[{{{isVersionOf|}}}]]|?-IsVersionOf=|mainlabel=-|link=none|format=list|sep=;}}
  |;|yy
  | <li>{{#ask:[[yy]]|?IsCurrentVersion=current version:|format=list}}</li>
  |
}}</ol>


See {{#show:{{{isVersionOf|}}}|? HasVersionOverview}}  
See {{#show:{{{isVersionOf|}}}|? HasVersionOverview}}  
Line 52: Line 45:
| HasNamespace={{{hasNamespace|}}}  
| HasNamespace={{{hasNamespace|}}}  
| IsVersionOf={{{isVersionOf|}}}  
| IsVersionOf={{{isVersionOf|}}}  
| HasVersionNumber={{{versionNumber|}}}
}}  
}}  
[[Category:ModelVersion]]
[[Category:ModelVersion]]
</includeonly>
</includeonly>

Revision as of 15:59, 19 June 2017

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

{{ModelVersionTemplate
|hasDescription=
|hasNamespace=
|isVersionOf=
}}

Edit the page to see the template text.