Template:InfoBoxTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
-->{{#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:[[Concept:ModelWithVersion]][[IsImplementationOf::Land degradation]]|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:{{#show:xx||? hasNamespace=}}
        -->|{{#ask:[[IsCurrentVersion::false]][[IsVersionOf::yy ]]|mainlabel=-|? hasNamespace=}}<!--
    |{{NAMESPACE}}
      -->}}<!--
    | <ul><li>yy (version {{NAMESPACE}})</li></ul>
      -->)</li></ul><!-- The components of this computer model
    {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
    -->{{#ifexpr:{{PropertyTestTemplate|prop=IsImplementationOf|page=yy }}<2|
          |intro=Aggregated component:|format=ul|mainlabel={{NAMESPACE}}:}}
          |<!--add namespace to result of this query!
    {{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
          -->{{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
          |intro=Components:|format=ul|mainlabel={{NAMESPACE}}:}}
                  |link=none|intro=Aggregated component:|format=ul|template=AddNamespaceTemplate}}<!--
    |{{#ifeq:{{NAMESPACE}}||
          -->{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
      {{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
                  |link=none|intro=Components:|format=ul|template=AddNamespaceTemplate}}
        |<ul><li>yy (version xx)</li></ul>
 
        {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
        }}
          |intro=Aggregated component:|format=ul}}
    |}}</td></tr><!--
        {{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
          |intro=Components:|format=ul}}
        |}}   
      }}
    }}
  |}}
|}}
</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 18:19, 7 July 2017

It should be called in the following format:

{{InfoBoxtemplate}}