Template:InfoBoxTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(80 intermediate revisions by the same user 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}}
|Application=
|IMAGEComponent=
|Model-Database=
|KeyReference=
|Reference=
}}
</pre>
</pre>
</noinclude><includeonly>{{#ifexpr:
</noinclude><includeonly><!--
{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|<div class="InfoBoxTemplateClear"><table class="InfoBoxStyle">{{#ifeq:{{{Overview|}}}|||<tr><td class="InfoBoxCellStyleTemplate">Relevant  overviews</td></tr>
check the need for an infobox on this page (most recent version is the norm)
  <tr><td>
-->{{#ifeq:{{InfoboxTestTemplate|basepage={{ROOTPAGENAME}}|subpage={{SUBPAGENAME}} }}|0|| <!--
   <ul>
existing data for infobox
   {{#arraymap:{{{Overview|}}}|;|xx|<li>[[HasOverview::xx]]|</li>}}
--><div class="InfoBoxTemplateClear"><table class="InfoBoxStyle"> <!--
   </ul></td></tr>
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{ROOTPAGENAME}}|reverse=1 }}|0||
}}
<tr><td class="InfoBoxCellStyleTemplate">Component is implemented in:</td></tr>
{{#ifeq:{{{IMAGEComponent|}}}|||
<tr><td>{{#arraymap:
  <tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
  {{#ask:[[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
  <tr ><td>
   |;|yy
  <ul>
   |{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}}
  {{#arraymap:{{{IMAGEComponent|}}}|;|xx|<li>[[HasIMAGEComponent::xx]]|</li>}}
    |;|xx
  </ul></td></tr>
    |{{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
}}
      |<ul><li>[[yy]] (version {{#ask:[[xx]]|format=Plainlist}})</li></ul>
{{#ifeq:{{{Application|}}}|||
      {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
  <tr><td class="InfoBoxCellStyleTemplate">Projects/Applications</td></tr>
        |intro=Aggregated component:|format=ul
  <tr><td>
      }}{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
  <ul>
          |intro=Components:|format=ul}}
  {{#arraymap:{{{Application|}}}|;|xx|<li>[[HasApplication::xx]]|</li>}}
    |}}   
  </ul></td></tr>
   |}}
}}
| and }}
{{#ifeq:{{{Model-Database|}}}|||
</td></tr><!--
  <tr><td class="InfoBoxCellStyleTemplate">Models/Databases</td></tr>
-->{{#ifeq:{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
  <tr><td>
<tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
  <ul>
<tr ><td>{{#ask:[[-HasIMAGEComponent::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  {{#arraymap:{{{Model-Database|}}}|;|xx|<li>[[HasModelDatabase::xx]]|</li>}}
</td></tr>}}
  </ul></td></tr>
}}<!--
}}
-->{{#ifeq:{{PropertyTestTemplate|prop=HasApplication|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
{{#ifeq:{{#ask:[[Category:ComputerModelAndDatabase]][[IsImplementationOf::{{PAGENAME}}]]|format=count}}|0||
<tr><td class="InfoBoxCellStyleTemplate">Projects/Applications</td></tr>
  <tr><td class="InfoBoxCellStyleTemplate">Implemented in computer model</td></tr>
<tr><td>{{#ask:[[-HasApplication::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  <tr><td>
</td></tr>}}<!--
  {{#ask:[[Category:ComputerModelAndDatabase]][[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><td class="InfoBoxCellStyleTemplate">Key publications</td></tr>
<tr><td class="InfoBoxCellStyleTemplate">Relevant  overviews</td></tr>
  <tr><td>
<tr><td>{{#ask:[[-HasOverview::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  <ul>
</td></tr>}}<!--
  {{#arraymap:{{{KeyReference|}}}|;|xx|<li>[[HasKeyReference::xx]]|</li>}}
-->{{#ifeq:{{PropertyTestTemplate|prop=HasKeyReference|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
  </ul></td></tr>
<tr><td class="InfoBoxCellStyleTemplate">Key publications</td></tr>
}}
<tr><td><tr><td>{{#ask:[[-HasKeyReference::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
{{#ifeq:{{{Reference|}}}|||
</td></tr>}}<!--
  <tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
-->{{#ifeq:{{PropertyTestTemplate|prop=HasReference|page={{FULLPAGENAME}} }}|0||
  <tr class="mw-collapsible mw-collapsed"><td>
<tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
  <ul>
<tr><td class="mw-collapsible mw-collapsed">
  {{#arraymap:{{{Reference|}}}|;|xx|<li>[[HasReference::xx]]|</li>}}
{{#ask:[[-HasReference::{{FULLPAGENAME}}]]|format=ul}}
  </ul></td></tr>
</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}}