Template:InfoBoxTemplate: Difference between revisions

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

Latest revision as of 16:41, 24 March 2020

It should be called in the following format:

{{InfoBoxtemplate}}