Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
(172 intermediate revisions by 5 users not shown)
Line 6: Line 6:
|Application=
|Application=
|IMAGEComponent=
|IMAGEComponent=
|ExternalModel=
|Model-Database=
|KeyReference=
|KeyReference=
|Reference=
|Reference=
Line 12: Line 12:
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Steps in this template:
</noinclude><includeonly>
# Icon en De subpages van deze pagina ophalen en weergeven in toc  style plus de toc
{{#ifeq:{{{LeadText|}}}||{{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
# De InfoboxTemplate aanroep
|mainlabel=-
# De flowchart
|?HasDescription=
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
|format=ul
#  description
|intro='''Key policy questions are:'''
# De input and outputs
}}<br/>|[[HasLeadText::{{{LeadText|}}}| ]]{{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
# De parts of the component again
|mainlabel=-
</noinclude><includeonly><div class="top_container">{{IconTemplate| {{PAGENAME}}}}
|?HasDescription=
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}
|format=ul
__TOC____NOEDITSECTION__
|intro='''Key policy questions for {{PAGENAME}} are:'''
<!--step 2--></div><div class="container">{{InfoBoxTemplate}}<!--step 3-->{{DisplayFlowchartTemplate|{{PAGENAME}} }}<!--step 4--><div class="page_standard">
}}__TOC__
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}<!--step 5-->
}}
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
__NOEDITSECTION__
{{{Description|}}}
{{StatusWarning|Status={{{Status|}}} }}{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
</div></div>
<div style="float:right; clear:right; ">
}}<!--Step 6-->
{{InfoBoxStyleTemplate}}
{{InputOutputParameterTemplate}}<!--Step 7-->
{{#ifeq:{{{IMAGEComponent|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>IMAGE components</b></td></tr>
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}<!--Below, a number of properties is set
<tr><td>
-->[[Category:Component]]<!--
<ul>
properties from form
{{#arraymap:{{{IMAGEComponent|}}}|;|x|[[HasIMAGEComponent::x]]}}
-->{{#ifeq:{{{FrameworkElementType|}}}|||{{#set:FrameworkElementType={{{FrameworkElementType|}}} }} }}<!--
</ul>
-->{{#ifeq:{{{AggregatedComponent|}}}|||{{#set:BelongsToAggregatedComponent={{{AggregatedComponent|}}} }} }}<!--
</td></tr>
-->{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|xx|{{#set:HasInputVar=xx }} }} }}<!--
}}
-->{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|xx|{{#set:HasOutputVar=xx}} }} }}<!--
{{#ifeq:{{{Application|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>Applications</b></td></tr>
-->{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|xx|{{#set:HasParameter=xx}} }} }} <!--
<tr><td>
-->{{#ifeq:{{{Overview|}}}|||{{#arraymap:{{{Overview|}}}|;|xx|{{#set:HasOverview=xx}} }} }} <!--
<ul>
-->{{#ifeq:{{{IMAGEComponent|}}}|||{{#arraymap:{{{IMAGEComponent|}}}|;|xx|{{#set:HasIMAGEComponent=xx}} }} }}<!--
{{#arraymaptemplate:{{{Application|}}}|ComponentHasApplicationTemplate|;|x|[[HasApplication::x]]}}
-->{{#ifeq:{{{Application|}}}|||{{#arraymap:{{{Application|}}}|;|xx|{{#set:HasApplication=xx}} }} }}<!--
</ul>
-->{{#ifeq:{{{Model-Database|}}}|||{{#arraymap:{{{Model-Database|}}}|;|xx|{{#set:HasModelDatabase=xx}} }} }}<!--
</td></tr>
-->{{#ifeq:{{{KeyReference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasKeyReference=xx}} }} }}<!--
}}
-->{{#ifeq:{{{Reference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasReference=xx}} }} }}<!--
{{#ifeq:{{{ExternalModel|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>External models</b></td></tr>
properties for component structure
<tr><td>
-->{{#set:HasPageLabel=Introduction page}} <!--
<ul>
-->{{#set:HasDetailedDescription={{FULLPAGENAME}}/Description}}<!--
{{#arraymaptemplate:{{{ExternalModel|}}}|ComponentHasExternalModelTemplate|;|y|[[HasExternalModel::y]]}}
-->{{#set:HasPolicyIntervention={{FULLPAGENAME}}/Policy issues}}<!--
</ul>
-->{{#set:HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations}}<!--
</td></tr>
-->{{#set:HasAllReferences={{FULLPAGENAME}}/References}}<!--
}}
other properties
{{#ifeq:{{{KeyReference|}}}|||
-->{{#set:HasTitle={{PAGENAME}} }} <!--
<tr>{{InfoBoxCellStyleTemplate}}<b>Key references</b></td></tr>
HasTitle is used where?
<tr><td>
-->{{#set:HasComponentCode={{{ComponentCode|}}} }}</includeonly>
<ul>
{{#arraymaptemplate:{{{KeyReference|}}}|ComponentHasKeyReferenceTemplate|;|x|[[HasKeyReference::x]]}}
</ul>
</td></tr>
}}
{{#ifeq:{{{Reference|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>References</b></td></tr>
<tr><td>
<ul>
{{#arraymaptemplate:{{{Reference|}}}|ComponentHasReferenceTemplate|;|x|[[HasReference::x]]}}
</ul>
</td></tr>
}}
</table>
</div>
|}}

Revision as of 07:48, 1 August 2017

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

{{ComponentTemplate2
|Application=
|IMAGEComponent=
|Model-Database=
|KeyReference=
|Reference=
|Description=
}}

Steps in this template:

  1. Icon en De subpages van deze pagina ophalen en weergeven in toc style plus de toc
  2. De InfoboxTemplate aanroep
  3. De flowchart
  4. We beginnen de Component-beschrijving met de KeyPolicyQuestions
  5. description
  6. De input and outputs
  7. De parts of the component again