Template:ModelVersionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
<pre>
<pre>
{{ModelVersionTemplate
{{ModelVersionTemplate
model
|hasDescription=
|hasNamespace=
|isVersionOf=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
{{#ask: [[isVersionOf::{{{model|}}}]]
This version of {{{isVersionOf|}}} is documented in the {{{hasNamespace|}}} namespace.
|sep=;
 
|link=none
Version description: {{{hasDescription|}}}
|intro=<h2>All versions of {{{model|}}}</h2>
<!-- check the nr of CurrentVersions of this model, there should be one-->
|format=template
 
|template=DisplayChangePathTemplate
Please check the number of current versions of {{{isVersionOf|}}}, there should be one!
 
'''List of versions:'''
<ol>{{#arraymap:{{#ask:[[{{{isVersionOf|}}}]]|?-IsVersionOf=|mainlabel=-|link=none|format=list|sep=;}}
  |;|yy
  | <li>{{#ask:[[yy]]|?IsCurrentVersion=current version|format=list}}</li>
  |
}}</ol>
 
'''Components of {{PAGENAME}}:'''
{{#ifeq:{{{hasNamespace|}}}
|main
|{{#ask:[[-IsImplementationOf::{{{isVersionOf|}}}]]|format=ul}}
|<ul>{{#arraymap:{{#ask:[[{{{isVersionOf|}}}]]|?IsImplementationOf=|mainlabel=-|format=list|link=none|sep=;}}|;|yy|<li>[[{{{hasNamespace|}}}:yy]]</li>|}}</ul>
}}
}}
{{#set:HasDescription={{{hasDescription|}}}
| IsCurrentVersion={{{isCurrentVersion}}}
| HasNamespace={{{hasNamespace|}}}
| IsVersionOf={{{isVersionOf|}}}
}}
[[Category:ModelVersion]]
</includeonly>
</includeonly>

Revision as of 11:37, 17 October 2016

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.