Template:InfoBoxTemplate: Difference between revisions

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

Revision as of 08:13, 1 August 2017

It should be called in the following format:

{{InfoBoxtemplate}}