Template:AggregatedComponentTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
m (moved Template:MainComponentTemplate to Template:AggregatedComponentTemplate: Text replace - "MainComponent" to "AggregatedComponent")
No edit summary
Line 16: Line 16:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>__NOEDITSECTION__
</noinclude><includeonly>__NOEDITSECTION__
{{StatusWarning|Status={{{Status|}}} }}{{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
{{StatusWarning|Status={{{Status|}}} }}{{IconTemplate| {{PAGENAME}}}}<br clear="all"/>
{{InfoBoxTemplate|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
{{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
|mainlabel=-
|mainlabel=-
|?HasDescription=
|?HasDescription=
|format=ul
|format=ul
|intro=Key policy questions are:
|intro=Key policy questions are:
}}{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
<div style="float:right; clear:right; ">
{{InfoBoxStyleTemplate}}
{{#ifeq:{{{IMAGEComponent|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>IMAGE components</b></td></tr>
<tr><td>
<ul>
{{#arraymap:{{{IMAGEComponent|}}}|;|x|[[HasIMAGEComponent::x]]}}
</ul>
</td></tr>
}}
}}
{{#ifeq:{{{Application|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>Applications</b></td></tr>
<tr><td>
<ul>
{{#arraymaptemplate:{{{Application|}}}|ComponentHasApplicationTemplate|;|}}
  </ul>
</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:ComputerModelAndDatabase]][[IsImplementationOf::{{PAGENAME}}]]|format=count}}|0||
  <tr>{{InfoBoxCellStyleTemplate}}<b>Implemented in computer model</b></td></tr>
  <tr><td>
  {{#ask:[[Category:ComputerModelAndDatabase]][[IsImplementationOf::{{PAGENAME}}]]
    |format=ul
  }}</td></tr>
}}
{{#ifeq:{{{KeyReference|}}}|||
<tr>{{InfoBoxCellStyleTemplate}}<b>Main Publications</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>
|}}
[[HasComponentCode::{{{ComponentCode|}}}|]]
{{#ifeq:{{{Description|}}}|||
{{#ifeq:{{{Description|}}}|||
==Description==
==Description==
Line 85: Line 37:
[[Category:AggregatedComponent]]
[[Category:AggregatedComponent]]
[[HasStatus::{{{Status|}}}| ]]
[[HasStatus::{{{Status|}}}| ]]
[[HasComponentCode::{{{ComponentCode|}}}|]]
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
<!--[[FrameworkElementType::{{{FrameworkElementType|}}}}| ]] -->
<!--[[FrameworkElementType::{{{FrameworkElementType|}}}}| ]] -->
</includeonly>
</includeonly>

Revision as of 10:50, 10 December 2013

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

{{AggregatedComponentTemplate
|Status=
|IMAGEComponent=
|ComponentCode=
|Application=
|ExternalModel=
|KeyReference=
|Reference=
|Description=
}}

Edit the page to see the template text.