Template:InfoBoxTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
(Created page with "<includeonly> {{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}| <div style="float:right; clear:right; "> {...")
 
No edit summary
(108 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
<noinclude>
{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
It should be called in the following format:
<div style="float:right; clear:right; ">
<pre>
{{InfoBoxStyleTemplate}}
{{InfoBoxtemplate}}
{{#ifeq:{{{IMAGEComponent|}}}|||
</pre>
  <tr>{{InfoBoxCellStyleTemplate}}<b>Related IMAGE components</b></td></tr>
</noinclude><includeonly><!--
  <tr><td>
check the need for an infobox on this page (most recent version is the norm)
   <ul>
-->{{#ifeq:{{InfoboxTestTemplate|basepage={{ROOTPAGENAME}}|subpage={{SUBPAGENAME}} }}|0|| <!--
   {{#arraymaptemplate:{{{IMAGEComponent|}}}|ComponentHasIMAGEComponentTemplate|;|}}
existing data for infobox
  </ul>
--><div class="InfoBoxTemplateClear"><table class="InfoBoxStyle"> <!--
   </td></tr>
-->{{#ifeq: {{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{ROOTPAGENAME}}]]</q>]]|format =count}}|0||
}}
<tr><td class="InfoBoxCellStyleTemplate">Version Overviews</td></tr>
{{#ifeq:{{{Application|}}}|||
<tr><td>  
  <tr>{{InfoBoxCellStyleTemplate}}<b>Projects/Applications</b></td></tr>
{{#ask:[[IMAGE framework version overview]]|format=ul}}
  <tr><td>
{{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{ROOTPAGENAME}}]]</q>]]|format=ul}}
  <ul>
</td></tr>
  {{#arraymaptemplate:{{{Application|}}}|ComponentHasApplicationTemplate|;|}}
}}<!-- model of component and version
  </ul>
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{ROOTPAGENAME}}|reverse=1 }}|0||
  </td></tr>
<tr><td class="InfoBoxCellStyleTemplate">Component is implemented in:</td></tr>
}}
<tr><td>{{#arraymap:
{{#ifeq:{{{ExternalModel|}}}|||
  {{#ask:[[Concept:ModelWithVersion]][[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
  <tr>{{InfoBoxCellStyleTemplate}}<b>External models</b></td></tr>
   |;|yy
  <tr><td>
   |{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}}
  <ul>
    |;|xx
  {{#arraymaptemplate:{{{ExternalModel|}}}|ComponentHasExternalModelTemplate|;|}}
    |{{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
  </ul>
      |<ul><li>yy (version {{#show:xx|? HasVersionNumber}})</li></ul>
  </td></tr>
      {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
}}
        |intro=Aggregated component:|format=ul
{{#ifeq:{{#ask:[[Category:Computer Model]][[IsImplementedIn::{{PAGENAME}}]]|format=count}}|0||
      }}{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
  <tr>{{InfoBoxCellStyleTemplate}}<b>Implemented in computer model</b></td></tr>
          |intro=Components:|format=ul}}
  <tr><td>
    |}}   
  {{#ask:[[Category:Computer Model]][[IsImplementedIn::{{PAGENAME}}]]  
   |}}
    |format=ul
| and }}
  }}</td></tr>
</td></tr><!--
}}
-->{{#ifeq:{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
{{#ifeq:{{{KeyReference|}}}|||
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
  <tr>{{InfoBoxCellStyleTemplate}}<b>Key references</b></td></tr>
<tr ><td>{{#ask:[[-HasIMAGEComponent::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  <tr><td>
</td></tr>}}
  <ul>
}}<!--
  {{#arraymaptemplate:{{{KeyReference|}}}|ComponentHasKeyReferenceTemplate|;|}}
-->{{#ifeq:{{PropertyTestTemplate|prop=HasApplication|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
  </ul>
<tr><td class="InfoBoxCellStyleTemplate">Projects/Applications</td></tr>
  </td></tr>
<tr><td>{{#ask:[[-HasApplication::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
}}
</td></tr>}}<!--
{{#ifeq:{{{Reference|}}}|||
-->{{#ifeq:{{PropertyTestTemplate|prop=HasModelDatabase|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
  <tr>{{InfoBoxCellStyleTemplate}}<b>References</b></td></tr>
<tr><td class="InfoBoxCellStyleTemplate">Models/Databases</td></tr>
  <tr><td>
<tr><td>{{#ask:[[-HasModelDatabase::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  <ul>
</td></tr>}}<!--
  {{#arraymaptemplate:{{{Reference|}}}|ComponentHasReferenceTemplate|;|}}
-->{{#ifeq:{{PropertyTestTemplate|prop=HasOverview|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
  </ul>
<tr><td class="InfoBoxCellStyleTemplate">Relevant  overviews</td></tr>
  </td></tr>
<tr><td>{{#ask:[[-HasOverview::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
</td></tr>}}<!--
-->{{#ifeq:{{PropertyTestTemplate|prop=HasKeyReference|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
<tr><td class="InfoBoxCellStyleTemplate">Key publications</td></tr>
<tr><td><tr><td>{{#ask:[[-HasKeyReference::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
</td></tr>}}<!--
-->{{#ifeq:{{PropertyTestTemplate|prop=HasReference|page={{FULLPAGENAME}} }}|0||
<tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
<tr><td class="mw-collapsible mw-collapsed">
{{#ask:[[-HasReference::{{FULLPAGENAME}}]]|format=ul}}
</td></tr>
}}
}}
</table>
</table>
</div>
</div>
|}}
}}<!--
</includeonly>
--></includeonly>

Revision as of 08:13, 1 August 2017

It should be called in the following format:

{{InfoBoxtemplate}}