Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 24: Line 24:
<!--We willen geen [edit] per sectie laten zien.--> __NOEDITSECTION__  
<!--We willen geen [edit] per sectie laten zien.--> __NOEDITSECTION__  
<!--De InfoboxTestTemplate controleert of de properties die normaal gesproken in de infobox worden weergegeven waardes hebben. Zo ja, dan wordt de infobox getoond; zo nee, dan wordt de infobox weggelaten. Voor subpagina's wordt ook gecontroleerd of de hoofdpagina references heeft, zodat die getoond kunnen worden.-->
<!--De InfoboxTestTemplate controleert of de properties die normaal gesproken in de infobox worden weergegeven waardes hebben. Zo ja, dan wordt de infobox getoond; zo nee, dan wordt de infobox weggelaten. Voor subpagina's wordt ook gecontroleerd of de hoofdpagina references heeft, zodat die getoond kunnen worden.-->
{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
{{InfoBoxTemplate}}
<div style="float:right; clear:right; ">
{{InfoBoxStyleTemplate}}
{{#ifeq:{{{IMAGEComponent|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>Related IMAGE components</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymaptemplate:{{{IMAGEComponent|}}}|ComponentHasIMAGEComponentTemplate|;|}}
  </ul>
  </td></tr>
}}
{{#ifeq:{{{Application|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>Projects/Applications</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymaptemplate:{{{Application|}}}|ComponentHasApplicationTemplate|;|}}
  </ul>
  </td></tr>
}}
{{#ifeq:{{{ExternalModel|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>External models</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymaptemplate:{{{ExternalModel|}}}|ComponentHasExternalModelTemplate|;|}}
  </ul>
  </td></tr>
}}
{{#ifeq:{{#ask:[[Category:Computer Model]][[IsImplementedIn::{{PAGENAME}}]]|format=count}}|0||
  <tr>{{InfoBoxCellStyleTemplate}}<b>Implemented in computer model</b></td></tr>
  <tr><td>
  {{#ask:[[Category:Computer Model]][[IsImplementedIn::{{PAGENAME}}]]
    |format=ul
  }}</td></tr>
}}
{{#ifeq:{{{KeyReference|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>Key references</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymaptemplate:{{{KeyReference|}}}|ComponentHasKeyReferenceTemplate|;|}}
  </ul>
  </td></tr>
}}
{{#ifeq:{{{Reference|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>References</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymaptemplate:{{{Reference|}}}|ComponentHasReferenceTemplate|;|}}
  </ul>
  </td></tr>
}}
</table>
</div>
|}}
<!--If a description exists, the icon (the place where this component is with respect to the IMAGE-framework) and the flowchart of the component are displayed together with the description.-->
<!--If a description exists, the icon (the place where this component is with respect to the IMAGE-framework) and the flowchart of the component are displayed together with the description.-->
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>

Revision as of 11:09, 15 October 2013

This is the "ComponentTemplate2" template. It should be called in the following format:

{{ComponentTemplate2
|Application=
|IMAGEComponent=
|ExternalModel=
|KeyReference=
|Reference=
|Description=
}}

Edit the page to see the template text.