Template:InfoBoxTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
<pre>
<pre>
{{InfoBoxtemplate
{{InfoBoxtemplate
|Overview=
|Application=
|Application=
|IMAGEComponent=
|IMAGEComponent=
Line 10: Line 11:
}}
}}
</pre>
</pre>
</noinclude><includeonly>{{#ifexpr:
</noinclude><includeonly><!--
{{InfoboxTestTemplate|basepage={{#titleparts: {{FULLPAGENAME}}|1}}|subpage={{#titleparts: {{FULLPAGENAME}}|1|2}} }}|<div class="InfoBoxTemplateClear"><table class="InfoBoxStyle">{{#ifeq:{{{Overview|}}}|||
-->{{#ifexpr:<!--
check the need for an infobox on this page (most recent version is the norm)
-->{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}-->
existing data for infobox
-->|<div class="InfoBoxTemplateClear"><table class="InfoBoxStyle">>
-->{{#ifeq:{{{Overview|}}}|||
<tr><td class="InfoBoxCellStyleTemplate">Relevant  overviews</td></tr>
<tr><td class="InfoBoxCellStyleTemplate">Relevant  overviews</td></tr>
   <tr><td>
   <tr><td>
   <ul>
   <ul>
   {{#arraymap:{{{Overview|}}}|;|xx|<li>[[HasOverview::xx]]|</li>}}
   {{#arraymap:{{{Overview|}}}|;|xx|<li>[[xx]]|</li>}}
   </ul></td></tr>
   </ul></td></tr>
}}{{#ifeq:{{{IMAGEComponent|}}}|||
}}<!--
-->{{#ifeq:{{{IMAGEComponent|}}}|||
   <tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
   <tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
   <tr ><td>
   <tr ><td>
   <ul>
   <ul>
   {{#arraymap:{{{IMAGEComponent|}}}|;|xx|<li>[[HasIMAGEComponent::xx]]|</li>}}
   {{#arraymap:{{{IMAGEComponent|}}}|;|xx|<li>[[xx]]|</li>}}
   </ul></td></tr>
   </ul></td></tr>
}}{{#ifeq:{{{Application|}}}|||
}}<!--
-->{{#ifeq:{{{Application|}}}|||
   <tr><td class="InfoBoxCellStyleTemplate">Projects/Applications</td></tr>
   <tr><td class="InfoBoxCellStyleTemplate">Projects/Applications</td></tr>
   <tr><td>
   <tr><td>
   <ul>
   <ul>
   {{#arraymap:{{{Application|}}}|;|xx|<li>[[HasApplication::xx]]|</li>}}
   {{#arraymap:{{{Application|}}}|;|xx|<li>[[xx]]|</li>}}
   </ul></td></tr>
   </ul></td></tr>
}}{{#ifeq:{{{Model-Database|}}}|||
}}<!--
-->{{#ifeq:{{{Model-Database|}}}|||
   <tr><td class="InfoBoxCellStyleTemplate">Models/Databases</td></tr>
   <tr><td class="InfoBoxCellStyleTemplate">Models/Databases</td></tr>
   <tr><td>
   <tr><td>
   <ul>
   <ul>
   {{#arraymap:{{{Model-Database|}}}|;|xx|<li>[[HasModelDatabase::xx]]|</li>}}
   {{#arraymap:{{{Model-Database|}}}|;|xx|<li>[[xx]]|</li>}}
   </ul></td></tr>
   </ul></td></tr>
}}{{#ifeq:{{#ask:[[Category:ComputerModelAndDatabase]][[IsImplementationOf::{{PAGENAME}}]]|format=count}}|0||
}}<!--
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{PAGENAME}}|0||
   <tr><td class="InfoBoxCellStyleTemplate">Implemented in computer model</td></tr>
   <tr><td class="InfoBoxCellStyleTemplate">Implemented in computer model</td></tr>
   <tr><td>
   <tr><td>
Line 41: Line 51:
     |format=ul
     |format=ul
   }}</td></tr>
   }}</td></tr>
}}{{#ifeq:{{{KeyReference|}}}|||
}}<!--
-->{{#ifeq:{{{KeyReference|}}}|||
   <tr><td class="InfoBoxCellStyleTemplate">Key publications</td></tr>
   <tr><td class="InfoBoxCellStyleTemplate">Key publications</td></tr>
   <tr><td>
   <tr><td>
   <ul>
   <ul>
   {{#arraymap:{{{KeyReference|}}}|;|xx|<li>[[HasKeyReference::xx]]|</li>}}
   {{#arraymap:{{{KeyReference|}}}|;|xx|<li>[[xx]]|</li>}}
   </ul></td></tr>
   </ul></td></tr>
}}{{#ifeq:{{{Reference|}}}|||
}}<!--
-->{{#ifeq:{{{Reference|}}}|||
   <tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
   <tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
   <tr><td class="mw-collapsible mw-collapsed">
   <tr><td class="mw-collapsible mw-collapsed">
   <ul>
   <ul>
   {{#arraymap:{{{Reference|}}}|;|xx|<li>[[HasReference::xx]]|</li>}}
   {{#arraymap:{{{Reference|}}}|;|xx|<li>[[xx]]|</li>}}
   </ul></td></tr>
   </ul></td></tr>
}}
}}
</table>
</table>
</div>
</div>
|}}
|}}<!--
</includeonly>
--></includeonly>

Revision as of 12:23, 11 May 2016

It should be called in the following format:

{{InfoBoxtemplate
|Overview=
|Application=
|IMAGEComponent=
|Model-Database=
|KeyReference=
|Reference=
}}