Difference between revisions of "Template:ComponentTemplate2"

From IMAGE
Jump to: navigation, search
(109 intermediate revisions by 4 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><!-- 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--> {{StatusWarning|Status={{{Status|}}} }}
+
# Icon en De subpages van deze pagina ophalen en weergeven in toc  style plus de toc
<!--We beginnen de Component-beschrijving met de KeyPolicyQuestions, gevolgd door de table of contents. -->{{#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
  }}
+
# De parts of the component again
<!--We willen geen [edit] per sectie laten zien.--> __NOEDITSECTION__
+
</noinclude><includeonly><div class="top_container">{{IconTemplate| {{PAGENAME}}}}
<!--De InfoboxTestTemplate controleert of de properties die normaal gesproken in de infobox worden weergegeven waardes hebben. Zo ja, dan wordt de infobox getoond; zo nee, dan wordt de infobox weggelaten. Voor subpagina's wordt ook gecontroleerd of de hoofdpagina references heeft, zodat die getoond kunnen worden.-->
+
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}
{{InfoBoxTemplate|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
+
__TOC____NOEDITSECTION__
__TOC__
+
<!--step 2--></div><div class="container">{{InfoBoxTemplate}}<!--step 3-->{{DisplayFlowchartTemplate|{{PAGENAME}} }}<!--step 4--><div class="page_standard">
<!--If a description exists, the icon (the place where this component is with respect to the IMAGE-framework) and the flowchart of the component are displayed together with the description.-->
+
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}<!--step 5-->  
 
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
 
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
+
{{{Description|}}}
  |mainlabel=page
+
</div></div>
  |?HasPageName=figure
+
}}<!--Step 6-->
  |?HasCaption=caption
+
{{InputOutputParameterTemplate}}<!--Step 7-->
  |?HasAltTitle=alt
+
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}<!--Below, a number of properties is set
  |format=template
+
-->[[Category:Component]]<!--
  |link=none
+
properties from form
  |template=ViewIconTemplate
+
-->{{#ifeq:{{{FrameworkElementType|}}}|||{{#set:FrameworkElementType={{{FrameworkElementType|}}} }} }}<!--
}}
+
-->{{#ifeq:{{{AggregatedComponent|}}}|||{{#set:BelongsToAggregatedComponent={{{AggregatedComponent|}}} }} }}<!--
{{#ask:[[Category:Figure page]][[HasFigureType::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
+
-->{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|xx|{{#set:HasInputVar=xx }} }} }}<!--
  |mainlabel=page
+
-->{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|xx|{{#set:HasOutputVar=xx}} }} }}<!--
  |?HasPageName=figure
+
-->{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|xx|{{#set:HasParameter=xx}} }} }} <!--
  |?HasCaption=caption
+
-->{{#ifeq:{{{Overview|}}}|||{{#arraymap:{{{Overview|}}}|;|xx|{{#set:HasOverview=xx}} }} }} <!--
  |?HasAltTitle=alt
+
-->{{#ifeq:{{{IMAGEComponent|}}}|||{{#arraymap:{{{IMAGEComponent|}}}|;|xx|{{#set:HasIMAGEComponent=xx}} }} }}<!--
  |format=template
+
-->{{#ifeq:{{{Application|}}}|||{{#arraymap:{{{Application|}}}|;|xx|{{#set:HasApplication=xx}} }} }}<!--
  |link=none
+
-->{{#ifeq:{{{Model-Database|}}}|||{{#arraymap:{{{Model-Database|}}}|;|xx|{{#set:HasModelDatabase=xx}} }} }}<!--
  |template=ViewFlowchartTemplate
+
-->{{#ifeq:{{{KeyReference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasKeyReference=xx}} }} }}<!--
}}{{{Description|}}}<br clear="all"/>
+
-->{{#ifeq:{{{Reference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasReference=xx}} }} }}<!--
}}
+
properties for component structure
<!--There is one component that has a different structure from the others: the component Drivers. If the Drivers-page is opened, we need no Input-output-vars and we need a different set of Main pages. For all component-pages an overview of references is required.-->
+
-->{{#set:HasPageLabel=Introduction page}} <!--
{{#ifeq:{{PAGENAME}}
+
-->{{#set:HasDetailedDescription={{FULLPAGENAME}}/Description}}<!--
  |Drivers
+
-->{{#set:HasPolicyIntervention={{FULLPAGENAME}}/Policy issues}}<!--
  |<h2>Main pages of {{PAGENAME}}</h2>
+
-->{{#set:HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations}}<!--
Detailed information can be found on the following page:
+
-->{{#set:HasAllReferences={{FULLPAGENAME}}/References}}<!--
* [[{{PAGENAME}}/Drivers and types of scenarios|Drivers and types of scenarios]]
+
other properties
  |{{InputOutputParameterTemplate}}<br clear="all"><h2> Main pages of {{PAGENAME}}</h2>
+
-->{{#set:HasTitle={{PAGENAME}} }} <!--
Detailed information can be found on the following pages:
+
HasTitle is used where?
* [[HasDetailedDescription::{{PAGENAME}}/Description|Detailed description]] for a detailed description of this component
+
-->{{#set:HasComponentCode={{{ComponentCode|}}} }}</includeonly>
* [[HasPolicyIntervention::{{PAGENAME}}/Policy Interventions|Policy interventions]] for policy interventions and illustrated effects
 
* [[HasDataLimitations::{{PAGENAME}}/Data_uncertainties_limitations|Data uncertainties and limitations]] for details about data, uncertainty and limitations
 
}}
 
The overview of all [[HasAllReferences::{{PAGENAME}}/References|references]].
 
 
 
<!--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.-->
 
[[Category:Component]]
 
[[HasTitle::{{PAGENAME}}| ]]
 
{{#ifeq:{{{Flowchart|}}}|||[[HasFlowchart::File:{{{Flowchart|}}}| ]]}}
 
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
 
[[HasStatus::{{{Status|}}}|]]
 
{{#ifeq:{{{MainComponent|}}}|||[[BelongsToMainComponent::{{{MainComponent}}}|]]}}
 
[[HasComponentCode::{{{ComponentCode|}}}|]]
 
{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|x|[[HasInputVar::x| ]]| }} }}
 
{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|x|[[HasOutputVar::x| ]]| }} }}
 
{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|x|[[HasParameter::x| ]]| }} }}
 
[[HasPagelabel::Introduction| ]]
 
</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