Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
m (Text replace - "MainComponent" to "AggregatedComponent")
No edit summary
(57 intermediate revisions by 4 users not shown)
Line 6: Line 6:
|Application=
|Application=
|IMAGEComponent=
|IMAGEComponent=
|ExternalModel=
|Model-Database=
|KeyReference=
|KeyReference=
|Reference=
|Reference=
Line 13: Line 13:
</pre>
</pre>
Steps in this template:
Steps in this template:
# We zoeken de status van de pagina op. Als de status ongelijk is aan Publishable, dan wordt een waarschuwing getoond. Dit zit in de StatusWarning-template
# Icon en De subpages van deze pagina ophalen en weergeven in toc  style plus de toc  
# Icon en De subpages van deze pagina ophalen en weergeven in toc  style plus de toc  
# De InfoboxTemplate aanroep
# De InfoboxTemplate aanroep
# De flowchart
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
# De flowchart with the description
# description
# De input and outputs
# De input and outputs
# De parts of the component again
# De parts of the component again
</noinclude><includeonly><!--step 1 --> {{StatusWarning|Status={{{Status|}}} }}
</noinclude><includeonly><div class="top_container">{{IconTemplate| {{PAGENAME}}}}
<!--step 2 -->{{IconTemplate| {{PAGENAME}}}}
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}
__TOC____NOEDITSECTION__
__TOC__
<!--step 2--></div><div class="container">{{InfoBoxTemplate}}<!--step 3-->{{DisplayFlowchartTemplate|{{PAGENAME}} }}<!--step 4--><div class="page_standard">
<br clear="all"/>__NOEDITSECTION__
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}<!--step 5-->  
<!--step 3-->{{InfoBoxTemplate|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
<!--step 4--> {{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
  |mainlabel=-
  |?HasDescription=
  |format=ul
  |intro=<h2>Key policy questions</h2>
}}<!--step 5-->  
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ask:[[Category:Figure]][[HasFigureType::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
{{{Description|}}}
  |mainlabel=page
</div></div>
  |?HasPageName=figure
  |?HasCaption=caption
  |?HasAltTitle=alt
  |format=template
  |link=none
  |template=ViewFlowchartTemplate
}}{{{Description|}}} <br clear="all"/>
}}<!--Step 6-->
}}<!--Step 6-->
{{InputOutputParameterTemplate}}<br clear="all">
{{InputOutputParameterTemplate}}<!--Step 7-->
<!--Step 7-->
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}<!--Below, a number of properties is set  
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}
-->[[Category:Component]]<!--
 
properties from form
<!--Below, a number of properties is set based on the values entered in the form. These properties are relevant for other parts of the wiki but need not be shown to the reader of this page.-->
-->{{#ifeq:{{{FrameworkElementType|}}}|||{{#set:FrameworkElementType={{{FrameworkElementType|}}} }} }}<!--
[[Category:Component]]
-->{{#ifeq:{{{AggregatedComponent|}}}|||{{#set:BelongsToAggregatedComponent={{{AggregatedComponent|}}} }} }}<!--
[[HasTitle::{{PAGENAME}}| ]]
-->{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|xx|{{#set:HasInputVar=xx }} }} }}<!--
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
-->{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|xx|{{#set:HasOutputVar=xx}} }} }}<!--
[[HasStatus::{{{Status|}}}|]]
-->{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|xx|{{#set:HasParameter=xx}} }} }} <!--
{{#ifeq:{{{AggregatedComponent|}}}|||[[BelongsToAggregatedComponent::{{{AggregatedComponent}}}|]]}}
-->{{#ifeq:{{{Overview|}}}|||{{#arraymap:{{{Overview|}}}|;|xx|{{#set:HasOverview=xx}} }} }} <!--
[[HasComponentCode::{{{ComponentCode|}}}|]]
-->{{#ifeq:{{{IMAGEComponent|}}}|||{{#arraymap:{{{IMAGEComponent|}}}|;|xx|{{#set:HasIMAGEComponent=xx}} }} }}<!--
{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|x|[[HasInputVar::x| ]]| }} }}
-->{{#ifeq:{{{Application|}}}|||{{#arraymap:{{{Application|}}}|;|xx|{{#set:HasApplication=xx}} }} }}<!--
{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|x|[[HasOutputVar::x| ]]| }} }}
-->{{#ifeq:{{{Model-Database|}}}|||{{#arraymap:{{{Model-Database|}}}|;|xx|{{#set:HasModelDatabase=xx}} }} }}<!--
{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|x|[[HasParameter::x| ]]| }} }}
-->{{#ifeq:{{{KeyReference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasKeyReference=xx}} }} }}<!--
[[HasPageLabel::Introduction page| ]]
-->{{#ifeq:{{{Reference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasReference=xx}} }} }}<!--
{{#ifeq:{{PAGENAME}}|Drivers||
properties for component structure
[[HasDetailedDescription::{{PAGENAME}}/Description| ]]
-->{{#set:HasPageLabel=Introduction page}} <!--
[[HasPolicyIntervention::{{PAGENAME}}/Policy issues| ]]
-->{{#set:HasDetailedDescription={{FULLPAGENAME}}/Description}}<!--
[[HasDataLimitations::{{PAGENAME}}/Data_uncertainties_limitations| ]]
-->{{#set:HasPolicyIntervention={{FULLPAGENAME}}/Policy issues}}<!--
}}
-->{{#set:HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations}}<!--
[[HasAllReferences::{{PAGENAME}}/References| ]]
-->{{#set:HasAllReferences={{FULLPAGENAME}}/References}}<!--
 
other properties
</includeonly>
-->{{#set:HasTitle={{PAGENAME}} }} <!--
HasTitle is used where?
-->{{#set:HasComponentCode={{{ComponentCode|}}} }}</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