Difference between revisions of "Template:InfoBoxTemplate"

From IMAGE
Jump to: navigation, search
 
(11 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
<tr><td class="InfoBoxCellStyleTemplate">Component is implemented in:</td></tr>
 
<tr><td class="InfoBoxCellStyleTemplate">Component is implemented in:</td></tr>
 
<tr><td>{{#arraymap:
 
<tr><td>{{#arraymap:
      {{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
+
  {{#ask:[[Concept:ModelWithVersion]][[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
      |;|yy
+
  |;|yy
      |<ul><li>yy (version:<!--
+
  |{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}}
      -->{{#ifeq:{{NAMESPACE}}||<!-- main namespace
+
    |;|xx
        -->{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy }}<!--
+
    |{{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
        -->|[[{{NAMESPACE}}]]<!--
+
      |<ul><li>yy (version {{#show:xx|? HasVersionNumber}})</li></ul>
      -->}}<!--
+
      {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
    -->)</li></ul><!--
+
        |intro=Aggregated component:|format=ul
The components of this computer model
+
      }}{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
-->{{#arraymap:{{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none}}|;|xx
+
          |intro=Components:|format=ul}}
      |{{#ifexpr:{{PropertyTestTemplate|prop=IsImplementationOf|page=xx }}<2|</td></tr>
+
    |}}  
          |<!--add namespace to result of this query!
+
  |}}
          -->{{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::xx]]
+
| and }}
                  |link=none|intro=Aggregated component:|format=ul|template=AddNamespaceTemplate}}<!--
+
</td></tr><!--
          -->{{#ask:[[Category:Component]][[-IsImplementationOf::xx]]
 
                  |link=none|intro=Components:|format=ul|template=AddNamespaceTemplate}}
 
          </td></tr>
 
        }}
 
    |}}
 
    |}}<!--
 
 
-->{{#ifeq:{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
 
-->{{#ifeq:{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
 
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
 
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>

Latest revision as of 07:13, 1 August 2017

It should be called in the following format:

{{InfoBoxtemplate}}