Template:InfoBoxTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(18 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::{{ROOTPAGENAME}}]]</q>]]|format =count}}|0||
<tr><td class="InfoBoxCellStyleTemplate">Version Overviews</td></tr>
<tr><td>
{{#ask:[[IMAGE framework version overview]]|format=ul}}
{{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{ROOTPAGENAME}}]]</q>]]|format=ul}}
</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">Component is implemented in:</td></tr>
<tr><td class="InfoBoxCellStyleTemplate">Component is implemented in:</td></tr>
<tr><td>{{#arraymap:
<tr><td>{{#arraymap:
      {{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
  {{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
      |;|yy
  |;|yy
      |<ul><li>yy (version:<!--
  |{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}}
      -->{{#ifeq:{{NAMESPACE}}||<!-- main namespace
    |;|xx
        -->{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy }}<!--
    |{{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
        -->|{{#ask:[[IsCurrentVersion::false]][[IsVersionOf::yy ]]|mainlabel=-|? hasNamespace=}}<!--
       |<ul><li>[[yy]] (version {{#ask:[[xx]]|format=Plainlist}})</li></ul>
      -->}}<!--
      {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
       -->)</li></ul><!-- The components of this computer model
        |intro=Aggregated component:|format=ul
    -->{{#ifexpr:{{PropertyTestTemplate|prop=IsImplementationOf|page=yy }}<2|</td></tr>
      }}{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
          |<!--add namespace to result of this query!
          |intro=Components:|format=ul}}
          -->{{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
    |}}   
                  |link=none|intro=Aggregated component:|format=ul|template=AddNamespaceTemplate}}<!--
  |}}
          -->{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
| and }}
                  |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||
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>

Latest revision as of 16:41, 24 March 2020

It should be called in the following format:

{{InfoBoxtemplate}}