Difference between revisions of "Template:InfoBoxTemplate"

From IMAGE
Jump to: navigation, search
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:[[Concept:ModelWithVersion]][[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
+
  {{#ask:[[Concept:ModelWithVersion]][[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
|;|yy
+
  |;|yy
|{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}}
+
  |{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}}
  |;|xx
+
    |;|xx
  |{{#ifeq:{{#show:xx||? hasNamespace=}}
+
     |{{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
     |{{NAMESPACE}}
+
      |<ul><li>yy (version xx)</li></ul>
    | <ul><li>yy (version {{NAMESPACE}})</li></ul>
+
      {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
    {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
+
        |intro=Aggregated component:|format=ul
          |intro=Aggregated component:|format=ul|mainlabel={{NAMESPACE}}:}}
+
      }}{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
    {{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
 
          |intro=Components:|format=ul|mainlabel={{NAMESPACE}}:}}
 
    |{{#ifeq:{{NAMESPACE}}||
 
      {{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
 
        |<ul><li>yy (version xx)</li></ul>
 
        {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
 
          |intro=Aggregated component:|format=ul}}
 
        {{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
 
 
           |intro=Components:|format=ul}}
 
           |intro=Components:|format=ul}}
        |}}     
+
    |}}     
      }}
 
    }}
 
 
   |}}
 
   |}}
|and}}
+
| and }}
 
</td></tr><!--
 
</td></tr><!--
 
-->{{#ifeq:{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
 
-->{{#ifeq:{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||

Revision as of 08:02, 1 August 2017

It should be called in the following format:

{{InfoBoxtemplate}}