Difference between revisions of "Template:InfoBoxTemplate"

From IMAGE
Jump to: navigation, search
 
(32 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
existing data for infobox
 
existing data for infobox
 
--><div class="InfoBoxTemplateClear"><table class="InfoBoxStyle"> <!--
 
--><div class="InfoBoxTemplateClear"><table class="InfoBoxStyle"> <!--
-->{{#ifeq: {{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{PAGENAME}}]]</q>]]|format =count}}|0||
+
-->{{#ifeq: {{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{ROOTPAGENAME}}]]</q>]]|format =count}}|0||
 
<tr><td class="InfoBoxCellStyleTemplate">Version Overviews</td></tr>
 
<tr><td class="InfoBoxCellStyleTemplate">Version Overviews</td></tr>
<tr><td> <li>
+
<tr><td>  
<ul>[[IMAGE framework version overview]]</ul>
+
{{#ask:[[IMAGE framework version overview]]|format=ul}}
<ul>{{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{PAGENAME}}]]</q>]]|link=none}}</ul>
+
{{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{ROOTPAGENAME}}]]</q>]]|format=ul}}
</li></td></tr>
+
</td></tr>
}}<!--
+
}}<!-- model of component and version
 
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{ROOTPAGENAME}}|reverse=1 }}|0||
 
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{ROOTPAGENAME}}|reverse=1 }}|0||
<tr><td class="InfoBoxCellStyleTemplate">Implemented in:</td></tr>
+
<tr><td class="InfoBoxCellStyleTemplate">Component is implemented in:</td></tr>
<tr><td>{{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]] |format=ul}}
+
<tr><td>{{#arraymap:
}}<!--
+
  {{#ask:[[Concept:ModelWithVersion]][[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
The components of this computer model
+
  |;|yy
-->{{#arraymap:{{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none}}|;|xx
+
  |{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}}
      |{{#ifexpr:{{PropertyTestTemplate|prop=IsImplementationOf|page=xx }}<2|</td></tr>
+
    |;|xx
          |<!--add namespace to result of this query!
+
    |{{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
          -->{{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::xx]]
+
      |<ul><li>yy (version {{#show:xx|? HasVersionNumber}})</li></ul>
                  |link=none|intro=Aggregated component:|format=ul|template=AddNamespaceTemplate}}<!--
+
      {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
          -->{{#ask:[[Category:Component]][[-IsImplementationOf::xx]]
+
        |intro=Aggregated component:|format=ul
                  |link=none|intro=Components:|format=ul|template=AddNamespaceTemplate}}
+
      }}{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
          </td></tr>
+
          |intro=Components:|format=ul}}
        }}
+
    |}}   
    |}}<!--
+
  |}}
 +
| 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>
Line 51: Line 54:
 
<tr><td><tr><td>{{#ask:[[-HasKeyReference::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
 
<tr><td><tr><td>{{#ask:[[-HasKeyReference::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
 
</td></tr>}}<!--
 
</td></tr>}}<!--
-->{{#ifeq:{{PropertyTestTemplate|prop=HasReference|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
+
-->{{#ifeq:{{PropertyTestTemplate|prop=HasReference|page={{FULLPAGENAME}} }}|0||
 
<tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
 
<tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
 
<tr><td class="mw-collapsible mw-collapsed">
 
<tr><td class="mw-collapsible mw-collapsed">
{{#ask:[[-HasReference::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
+
{{#ask:[[-HasReference::{{FULLPAGENAME}}]]|format=ul}}
 
</td></tr>
 
</td></tr>
 
}}
 
}}

Latest revision as of 07:13, 1 August 2017

It should be called in the following format:

{{InfoBoxtemplate}}