Difference between revisions of "Template:InfoBoxTemplate"

From IMAGE
Jump to: navigation, search
Line 24: Line 24:
 
       -->{{#ifeq:{{NAMESPACE}}||<!-- main namespace
 
       -->{{#ifeq:{{NAMESPACE}}||<!-- main namespace
 
         -->{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy }}<!--
 
         -->{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy }}<!--
         -->|[[{{NAMESPACE}}]]<!--
+
         -->|{{#ask:[[IsCurrentVersion::false]][[IsVersionOf::yy ]]|mainlabel=-|? hasNamespace=}}<!--
 
       -->}}<!--
 
       -->}}<!--
    -->)</li></ul><!--  
+
      -->)</li></ul><!-- The components of this computer model
The components of this computer model
+
    -->{{#ifexpr:{{PropertyTestTemplate|prop=IsImplementationOf|page=yy }}<2|</td></tr>
-->{{#arraymap:{{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none}}|;|xx
 
      |{{#ifexpr:{{PropertyTestTemplate|prop=IsImplementationOf|page=xx }}<2|</td></tr>
 
 
           |<!--add namespace to result of this query!  
 
           |<!--add namespace to result of this query!  
           -->{{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::xx]]
+
           -->{{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
 
                   |link=none|intro=Aggregated component:|format=ul|template=AddNamespaceTemplate}}<!--
 
                   |link=none|intro=Aggregated component:|format=ul|template=AddNamespaceTemplate}}<!--
           -->{{#ask:[[Category:Component]][[-IsImplementationOf::xx]]
+
           -->{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
 
                   |link=none|intro=Components:|format=ul|template=AddNamespaceTemplate}}
 
                   |link=none|intro=Components:|format=ul|template=AddNamespaceTemplate}}
 
           </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 14:03, 7 July 2017

It should be called in the following format:

{{InfoBoxtemplate}}