Difference between revisions of "Template:InfoBoxTemplate"

From IMAGE
Jump to: navigation, search
Line 14: Line 14:
 
</td></tr>}}<!--
 
</td></tr>}}<!--
 
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{ROOTPAGENAME}}|reverse=1 }}|0||
 
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{ROOTPAGENAME}}|reverse=1 }}|0||
<tr><td class="InfoBoxCellStyleTemplate">Implemented in computer model</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>}}<!--
 
</td></tr>}}<!--
 +
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|
         |<tr><td class="InfoBoxCellStyleTemplate">xx components</td></tr>
+
         |<tr><td class="InfoBoxCellStyleTemplate">xx components</td></tr><!--
           <tr ><td>{{#ask:[[-IsImplementationOf::xx]]|format=ul}}<!--add namspace to result of this query! -->
+
add namespace to result of this query! -->
 +
           <tr ><td>{{#ifeq:{{NAMESPACE}}|||{{NAMESPACE}}:}}{{#ask:[[-IsImplementationOf::xx]]|format=ul}}
 
           </td></tr>}}
 
           </td></tr>}}
 
|}}<!--
 
|}}<!--

Revision as of 16:26, 13 June 2016

It should be called in the following format:

{{InfoBoxtemplate}}