Difference between revisions of "Template:InfoBoxTemplate"

From IMAGE
Jump to: navigation, search
Line 16: Line 16:
 
<tr><td class="InfoBoxCellStyleTemplate">Implemented in:</td></tr>
 
<tr><td class="InfoBoxCellStyleTemplate">Implemented in:</td></tr>
 
<tr><td>{{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]] |format=ul}}
 
<tr><td>{{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]] |format=ul}}
</td></tr>}}<!--
+
}}<!--
 
The components of this computer model
 
The components of this computer model
 
-->{{#arraymap:{{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none}}|;|xx
 
-->{{#arraymap:{{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none}}|;|xx
    |{{#ifexpr:{{PropertyTestTemplate|prop=IsImplementationOf|page=xx }}<2|
+
      |{{#ifexpr:{{PropertyTestTemplate|prop=IsImplementationOf|page=xx }}<2|</td></tr>
        |<tr><td class="InfoBoxCellStyleTemplate">Composition of xx</td></tr><!--
+
          |Composition:<!--
add namespace to result of this query! -->
+
          add namespace to result of this query!  
          <tr ><td>{{#ask:[[-IsImplementationOf::xx]]|link=none|format=ul|template=AddNamespaceTemplate}}
+
          -->{{#ask:[[-IsImplementationOf::xx]]|link=none|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||
 
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
 
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>

Revision as of 09:36, 17 June 2016

It should be called in the following format:

{{InfoBoxtemplate}}