Template:InfoBoxTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
m (Text replace - "Template:InfoBoxStyleTemplate" to "<table class="InfoBoxStyle">")
No edit summary
(80 intermediate revisions by 2 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}}
|Application=
|IMAGEComponent=
|Model-Database=
|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 class="InfoBoxTemplateClear" >
-->{{#ifeq:{{InfoboxTestTemplate|basepage={{ROOTPAGENAME}}|subpage={{SUBPAGENAME}} }}|0|| <!--
<table class="InfoBoxStyle">
existing data for infobox
{{#ifeq:{{{Overview|}}}|||
--><div class="InfoBoxTemplateClear"><table class="InfoBoxStyle"> <!--
  <tr><td class="InfoBoxCellStyleTemplate">Relevant  overviews</td></tr>
-->{{#ifeq: {{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{ROOTPAGENAME}}]]</q>]]|format =count}}|0||
  <tr><td>
<tr><td class="InfoBoxCellStyleTemplate">Version Overviews</td></tr>
  <ul>
<tr><td>  
  {{#arraymap:{{{Overview|}}}|;|xx|<li>[[HasOverview::xx]]|</li>}}
{{#ask:[[IMAGE framework version overview]]|format=ul}}
  </ul>
{{#ask:[[-HasVersionOverview::<q>[[IsImplementationOf::{{ROOTPAGENAME}}]]</q>]]|format=ul}}
  </td></tr>
</td></tr>
}}
}}<!-- model of component and version
{{#ifeq:{{{IMAGEComponent|}}}|||
-->{{#ifeq:{{PropertyTestTemplate|prop=IsImplementationOf|page={{ROOTPAGENAME}}|reverse=1 }}|0||
  <tr><td class="InfoBoxCellStyleTemplate">Related IMAGE components</td></tr>
<tr><td class="InfoBoxCellStyleTemplate">Component is implemented in:</td></tr>
  <tr ><td>
<tr><td>{{#arraymap:
   <ul>
  {{#ask:[[Concept:ModelWithVersion]][[IsImplementationOf::{{ROOTPAGENAME}}]]|link=none|sep=;}}
   {{#arraymap:{{{IMAGEComponent|}}}|;|xx|<li>[[HasIMAGEComponent::xx]]|</li>}}
   |;|yy
  </ul>
   |{{#arraymap: {{#ask:[[Category:ModelVersion]][[IsVersionOf::yy]]|link=none|sep=;}}
   </td></tr>
    |;|xx
}}
    |{{#ifeq:{{#ask:[[IsCurrentVersion::true]][[IsVersionOf::yy]]|link=none}}|xx
{{#ifeq:{{{Application|}}}|||
      |<ul><li>yy (version {{#show:xx|? HasVersionNumber}})</li></ul>
  <tr><td class="InfoBoxCellStyleTemplate">Projects/Applications</td></tr>
      {{#ask:[[Category:AggregatedComponent]][[-IsImplementationOf::yy]]
  <tr><td>
        |intro=Aggregated component:|format=ul
  <ul>
      }}{{#ask:[[Category:Component]][[-IsImplementationOf::yy]]
  {{#arraymap:{{{Application|}}}|;|xx|<li>[[HasApplication::xx]]|</li>}}
          |intro=Components:|format=ul}}
  </ul>
    |}}   
  </td></tr>
   |}}
}}
| and }}
{{#ifeq:{{{Model-Database|}}}|||
</td></tr><!--
  <tr><td class="InfoBoxCellStyleTemplate">External models</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||
}}
<tr><td class="InfoBoxCellStyleTemplate">Projects/Applications</td></tr>
{{#ifeq:{{#ask:[[Category:ComputerModelAndDatabase]][[IsImplementationOf::{{PAGENAME}}]]|format=count}}|0||
<tr><td>{{#ask:[[-HasApplication::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  <tr><td class="InfoBoxCellStyleTemplate">Implemented in computer model</td></tr>
</td></tr>}}<!--
  <tr><td>
-->{{#ifeq:{{PropertyTestTemplate|prop=HasModelDatabase|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
  {{#ask:[[Category:ComputerModelAndDatabase]][[IsImplementationOf::{{PAGENAME}}]]  
<tr><td class="InfoBoxCellStyleTemplate">Models/Databases</td></tr>
    |format=ul
<tr><td>{{#ask:[[-HasModelDatabase::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  }}</td></tr>
</td></tr>}}<!--
}}
-->{{#ifeq:{{PropertyTestTemplate|prop=HasOverview|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
{{#ifeq:{{{KeyReference|}}}|||
<tr><td class="InfoBoxCellStyleTemplate">Relevant  overviews</td></tr>
  <tr><td class="InfoBoxCellStyleTemplate">Key publications</td></tr>
<tr><td>{{#ask:[[-HasOverview::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  <tr><td>
</td></tr>}}<!--
  <ul>
-->{{#ifeq:{{PropertyTestTemplate|prop=HasKeyReference|page={{#titleparts: {{FULLPAGENAME}}|1}} }}|0||
  {{#arraymap:{{{KeyReference|}}}|;|xx|<li>[[HasKeyReference::xx]]|</li>}}
<tr><td class="InfoBoxCellStyleTemplate">Key publications</td></tr>
  </ul>
<tr><td><tr><td>{{#ask:[[-HasKeyReference::{{#titleparts: {{FULLPAGENAME}}|1}}]]|format=ul}}
  </td></tr>
</td></tr>}}<!--
}}
-->{{#ifeq:{{PropertyTestTemplate|prop=HasReference|page={{FULLPAGENAME}} }}|0||
{{#ifeq:{{{Reference|}}}|||
<tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
  <tr><td class="InfoBoxCellStyleTemplate">References</td></tr>
<tr><td class="mw-collapsible mw-collapsed">
  <tr class="mw-collapsible mw-collapsed"><td>
{{#ask:[[-HasReference::{{FULLPAGENAME}}]]|format=ul}}
  <ul>
</td></tr>
  {{#arraymap:{{{Reference|}}}|;|xx|<li>[[HasReference::xx]]|</li>}}
  </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}}