Template:ModelVersionTemplate: Difference between revisions
Jump to navigation
Jump to search
Oostenrijr (talk | contribs) No edit summary |
Oostenrijr (talk | contribs) No edit summary |
||
(33 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{ModelVersionTemplate | {{ModelVersionTemplate | ||
|hasDescription= | |hasDescription= | ||
| | |hasVersionDocument= | ||
|isVersionOf= | |isVersionOf= | ||
|versionNumber= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 12: | Line 13: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<div class="page_standard"><table class="PageWidthTableTemplate"> | <div class="page_standard"><table class="PageWidthTableTemplate"> | ||
<tr><td class="PageWidthTableFirstCell">Version number:</td> | <tr><td class="PageWidthTableFirstCell">'''Version of Model:'''</td> | ||
<td class="PageWidthTableRemainderCell">{{{versionNumber|}}}</td></tr> | <td class="PageWidthTableRemainderCell">[[{{{isVersionOf|}}}]]</td></tr> | ||
<tr><td class="PageWidthTableFirstCell">Current version:</td> | <tr><td class="PageWidthTableFirstCell">'''Version number:'''</td> | ||
<td class="PageWidthTableRemainderCell">{{{ | <td class="PageWidthTableRemainderCell">{{{versionNumber|}}}</td></tr> | ||
<tr><td class="PageWidthTableFirstCell">Description:</td> | <tr><td class="PageWidthTableFirstCell">'''Current version:'''</td> | ||
<td class="PageWidthTableRemainderCell">{{{hasDescription|}}}</td></tr> | <td class="PageWidthTableRemainderCell">{{{isCurrentVersion|}}}</td></tr> | ||
{{#ifeq:{{{ | <tr><td class="PageWidthTableFirstCell">'''Description:'''</td> | ||
<tr><td class="PageWidthTableFirstCell"> | <td class="PageWidthTableRemainderCell">{{{hasDescription|}}}</td></tr> | ||
<td class="PageWidthTableRemainderCell">{{{ | {{#ifeq:{{{hasVersionDocument|}}}||| | ||
<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}}|? | {{#ifeq:{{#show:{{PAGENAME}}|?IsChanged}}|true| | ||
| | ''Changes compared to previous version:'' | ||
{{#arraymap: | |||
{{# | {{#ask:[[-Has subobject::{{PAGENAME}}]]|link=none|format=list|sep=;}} | ||
|;|zz | |||
|{{#ask:[[zz]]|mainlabel=- | |||
{{#ask: [[{{PAGENAME}}]] | |? IsChangeOf | ||
|link=none | |? HasChangeDescription | ||
|format= | |format=template | ||
| | |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}}} | ||
| | | HasVersionDocument={{{hasVersionDocument|}}} | ||
| IsVersionOf={{{isVersionOf|}}} | | IsVersionOf={{{isVersionOf|}}} | ||
| HasVersionNumber={{{versionNumber|}}} | |||
}} | }} | ||
[[Category:ModelVersion]] | [[Category:ModelVersion]] | ||
</includeonly> | </includeonly> |
Revision as of 20: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.