Template:DisplayVersionComponentsTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
(3 intermediate revisions by the same user not shown)
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|}}}]] (last version)</td>
   |<td class="StandardTableCell">[[{{{1|}}}]] <br/>(latest 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|}}}]] (previous version)</td>
   |<td class="StandardTableCell">[[{{{1|}}}]] <br/>(previous version)</td>
   <td class="StandardTableCell"><ul>{{#arraymap:
   <td class="StandardTableCell">
    {{#ask:[[-IsImplementationOf::{{{userparam|}}}]]|format=list |link=none |sep=; }}
      <ul><li>{{#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:14, 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.