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
 
(55 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "AggregatedComponentTemplate" template.
This is the "AggregatedComponentTemplate" template. It is a similar to ComponentTemplate2, but consists of a single page, does not have multiple component parts.
 
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{AggregatedComponentTemplate
{{AggregatedComponentTemplate
|Status=
|IMAGEComponent=
|IMAGEComponent=
|ComponentCode=
|ComponentCode=
|Application=
|Application=
|ExternalModel=
|Model-Database=
|KeyReference=
|KeyReference=
|Reference=
|Reference=
|Description=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>__NOEDITSECTION__
</noinclude><includeonly>{{AggregatedComponentPartsTemplate|PagePartHeader=Composition of {{FULLPAGENAME}} }}{{IconTemplate|{{#titleparts: {{FULLPAGENAME}}|1}} }}
{{StatusWarning|Status={{{Status|}}} }}{{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
{{LinkToExpertpageTemplate }}
|mainlabel=-
__TOC____NOEDITSECTION__ </div><div class="container">{{InfoBoxTemplate}}{{DisplayFlowchartTemplate|{{#titleparts: {{FULLPAGENAME}}|1}} }}</div>
|?HasDescription=
<div class="page_standard"><h2>Description of {{ROOTPAGENAME}}</h2></div>
|format=ul
<!-- setting of properties values
|intro=Key policy questions are:
-->[[Category:AggregatedComponent]]
}}{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
{{#set:
<div style="float:right; clear:right; ">
  |FrameworkElementType={{{FrameworkElementType|}}}
{{InfoBoxStyleTemplate}}
  |HasInputVar={{{InputVar|}}}|+sep=;
{{#ifeq:{{{IMAGEComponent|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>IMAGE components</b></td></tr>
  |HasOutputVar={{{OutputVar|}}}|+sep=;
<tr><td>
  |HasParameter={{{Parameter|}}}|+sep=;
<ul>
  |HasOverview={{{Overview|}}}|+sep=;
{{#arraymap:{{{IMAGEComponent|}}}|;|x|[[HasIMAGEComponent::x]]}}
  |HasIMAGEComponent={{{IMAGEComponent|}}}|+sep=;
</ul>
  |HasApplication={{{Application|}}}|+sep=;
</td></tr>
  |HasModelDatabase={{{Model-Database|}}}|+sep=;
}}
  |HasKeyReference={{{KeyReference|}}}|+sep=;
{{#ifeq:{{{Application|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>Applications</b></td></tr>
  |HasReference={{{Reference|}}}|+sep=;
<tr><td>
  |HasPageLabel=Introduction page
<ul>
  |HasAllReferences={{FULLPAGENAME}}/References
{{#arraymaptemplate:{{{Application|}}}|ComponentHasApplicationTemplate|;|}}
  |HasComponentCode={{{ComponentCode|}}}
  </ul>
}}</includeonly>
</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|}}}|||
==Description==
{{{Description|}}}}}
 
{{#ask:[[Category:Component]][[BelongsToAggregatedComponent::{{PAGENAME}}]]
|mainlabel=
|format=ul
|intro=<h2>Components</h2>{{PAGENAME}} is an aggregation of:
}}
 
 
[[Category:AggregatedComponent]]
[[HasStatus::{{{Status|}}}| ]]
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
<!--[[FrameworkElementType::{{{FrameworkElementType|}}}}| ]] -->
</includeonly>

Latest revision as of 15:17, 1 April 2020

This is the "AggregatedComponentTemplate" template. It is a similar to ComponentTemplate2, but consists of a single page, does not have multiple component parts.

It should be called in the following format:

{{AggregatedComponentTemplate
|IMAGEComponent=
|ComponentCode=
|Application=
|Model-Database=
|KeyReference=
|Reference=
}}

Edit the page to see the template text.