Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
(196 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|}}}|||[[HasLeadText::{{{LeadText|}}}| ]]
# De InfoboxTemplate aanroep
__TOC__}}
# De flowchart
__NOEDITSECTION__
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
{{StatusWarning|Status={{{Status|}}} }}{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
#  description
<div style="float:right; clear:right; ">
# De input and outputs
{{InfoBoxStyleTemplate}}
# De parts of the component again
{{#ifeq:{{{IMAGEComponent|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>IMAGE components</b></td></tr>
</noinclude><includeonly><div class="top_container">{{IconTemplate| {{PAGENAME}}}}
<tr><td>
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}
<ul>
__TOC____NOEDITSECTION__
{{#arraymap:{{{IMAGEComponent|}}}|;|x|[[HasIMAGEComponent::x]]}}
<!--step 2--></div><div class="container">{{InfoBoxTemplate}}<!--step 3-->{{DisplayFlowchartTemplate|{{PAGENAME}} }}<!--step 4--><div class="page_standard">
</ul>
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}<!--step 5-->
</td></tr>
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
}}
{{{Description|}}}
{{#ifeq:{{{Application|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>Applications</b></td></tr>
</div></div>
<tr><td>
}}<!--Step 6-->
<ul>
{{InputOutputParameterTemplate}}<!--Step 7-->
{{#arraymaptemplate:{{{Application|}}}|ComponentHasApplicationTemplate|;|x|[[HasApplication::x]]}}
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}<!--Below, a number of properties is set
</ul>
-->[[Category:Component]]<!--
</td></tr>
properties from form
}}
-->{{#ifeq:{{{FrameworkElementType|}}}|||{{#set:FrameworkElementType={{{FrameworkElementType|}}} }} }}<!--
{{#ifeq:{{{ExternalModel|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>External models</b></td></tr>
-->{{#ifeq:{{{AggregatedComponent|}}}|||{{#set:BelongsToAggregatedComponent={{{AggregatedComponent|}}} }} }}<!--
<tr><td>
-->{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|xx|{{#set:HasInputVar=xx }} }} }}<!--
<ul>
-->{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|xx|{{#set:HasOutputVar=xx}} }} }}<!--
{{#arraymaptemplate:{{{ExternalModel|}}}|ComponentHasExternalModelTemplate|;|y|[[HasExternalModel::y]]}}
-->{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|xx|{{#set:HasParameter=xx}} }} }} <!--
</ul>
-->{{#ifeq:{{{Overview|}}}|||{{#arraymap:{{{Overview|}}}|;|xx|{{#set:HasOverview=xx}} }} }} <!--
</td></tr>
-->{{#ifeq:{{{IMAGEComponent|}}}|||{{#arraymap:{{{IMAGEComponent|}}}|;|xx|{{#set:HasIMAGEComponent=xx}} }} }}<!--
}}
-->{{#ifeq:{{{Application|}}}|||{{#arraymap:{{{Application|}}}|;|xx|{{#set:HasApplication=xx}} }} }}<!--
{{#ifeq:{{{KeyReference|}}}|||
-->{{#ifeq:{{{Model-Database|}}}|||{{#arraymap:{{{Model-Database|}}}|;|xx|{{#set:HasModelDatabase=xx}} }} }}<!--
<tr>{{InfoBoxCellStyleTemplate}}<b>Key references</b></td></tr>
-->{{#ifeq:{{{KeyReference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasKeyReference=xx}} }} }}<!--
<tr><td>
-->{{#ifeq:{{{Reference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasReference=xx}} }} }}<!--
<ul>
properties for component structure
{{#arraymaptemplate:{{{KeyReference|}}}|ComponentHasKeyReferenceTemplate|;|x|[[HasKeyReference::x]]}}
-->{{#set:HasPageLabel=Introduction page}} <!--
</ul>
-->{{#set:HasDetailedDescription={{FULLPAGENAME}}/Description}}<!--
</td></tr>
-->{{#set:HasPolicyIntervention={{FULLPAGENAME}}/Policy issues}}<!--
}}
-->{{#set:HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations}}<!--
{{#ifeq:{{{Reference|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>References</b></td></tr>
-->{{#set:HasAllReferences={{FULLPAGENAME}}/References}}<!--
<tr><td>
other properties
<ul>
-->{{#set:HasTitle={{PAGENAME}} }} <!--
{{#arraymaptemplate:{{{Reference|}}}|ComponentHasReferenceTemplate|;|x|[[HasReference::x]]}}
HasTitle is used where?
</ul>
-->{{#set:HasComponentCode={{{ComponentCode|}}} }}</includeonly>
</td></tr>
}}
</table>
</div>
|}}
 
{{#ifeq:{{{Description|}}}|||
<h2>Introduction</h2>
{{#ask:[[Category:Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
|mainlabel=pagina
|?HasCaption=caption
|?HasAltTitle=alt
|format=template
|link=none
|template=ViewIconTemplate
}}
{{#ask:[[Category:Flowcharts]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
|mainlabel=pagina
|?HasCaption=caption
|?HasAltTitle=alt
|format=template
|link=none
|template=ViewPolicyInterventionFigureTemplate2
}}{{{Description|}}}
}}
== Links to other parts of IMAGE framework ==
{{InputOutputAssumptionTemplate}}
 
== Main pages of {{PAGENAME}}==
Detailed information can be found on the following pages:
* [[{{PAGENAME}}/Description|Detailed description]] for a detailed description of this component
* [[{{PAGENAME}}/Policy Interventions|Policy interventions]] for policy interventions and illustrated effects
* [[{{PAGENAME}}/Data_uncertainties_limitations|Data uncertainties and limitations]] for details about data, uncertainty and limitations
 
The overview of all [[{{PAGENAME}}/References|references]].
 
 
 
[[Category:Component]]
[[HasTitle::{{PAGENAME}}| ]]
[[HasAltTitle::{{{AltText|}}}| ]]
[[HasCaption::{{{CaptionText|}}}| ]]
{{#ifeq:{{{Flowchart|}}}|||[[HasFlowchart::File:{{{Flowchart|}}}| ]]}}
{{#ifeq:{{{FrameworkElementType|}}}|||{{#arraymap:{{{FrameworkElementType|}}}|,|x|[[FrameworkElementType::x| ]]| }} }}
[[HasStatus::{{{Status|}}}|]]
{{#ifeq:{{{MainComponent|}}}|||[[BelongsToMainComponent::{{{MainComponent}}}|]]}}
</includeonly>

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