Difference between revisions of "Template:DisplayVersionComponentsTemplate"

From IMAGE
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "DisplayChangePathTemplate" template.
+
This is the "DisplayVersionComponentsTemplate" template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
 
{{DisplayVersionComponentsTemplate
 
{{DisplayVersionComponentsTemplate
|1=version
+
|1= version
 
|2 = version number
 
|2 = version number
 
|userparam= model
 
|userparam= model
Line 13: Line 13:
 
<tr class="StandardTableRow">
 
<tr class="StandardTableRow">
 
{{#ifeq:
 
{{#ifeq:
   {{#show:{{{1|}}}|?HasNamespace}}
+
   {{#show:{{{1|}}}|?IsCurrentVersion}}
   |main
+
   |true
 
   |<td class="StandardTableCell">[[{{{1|}}}]] <br/>(last version)</td>
 
   |<td class="StandardTableCell">[[{{{1|}}}]] <br/>(last version)</td>
 
   <td class="StandardTableCell">
 
   <td class="StandardTableCell">
 
     {{#ask:[[-IsImplementationOf::{{{userparam|}}}]]|format=ul|sep=;&nbsp;}}</td>
 
     {{#ask:[[-IsImplementationOf::{{{userparam|}}}]]|format=ul|sep=;&nbsp;}}</td>
 
   |<td class="StandardTableCell">[[{{{1|}}}]] <br/>(previous version)</td>
 
   |<td class="StandardTableCell">[[{{{1|}}}]] <br/>(previous version)</td>
   <td class="StandardTableCell"><ul>{{#arraymap:
+
   <td class="StandardTableCell"><ul><li>
     {{#ask:[[-IsImplementationOf::{{{userparam|}}}]]|format=list |link=none |sep=; }}
+
     {{#show:{{{1|}}}|?HasVersionDocument}}, [[Media:{{#show:{{{1|}}}|?HasVersionDocument}}|open pdf file]]
    |;|yy
+
  </li></ul></td>
    |<li>[[{{#show:{{{1|}}}|? HasNamespace}}:yy]]</li>
 
    |
 
  }}</ul></td>
 
 
}}</tr>
 
}}</tr>
 
</includeonly>
 
</includeonly>

Revision as of 18:04, 31 July 2017

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

{{DisplayVersionComponentsTemplate
|1= version
|2 = version number
|userparam= model
}}

Edit the page to see the template text.