Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(106 intermediate revisions by 5 users not shown)
Line 6: Line 6:
|Application=
|Application=
|IMAGEComponent=
|IMAGEComponent=
|ExternalModel=
|Model-Database=
|KeyReference=
|KeyReference=
|Reference=
|Reference=
|Description=
}}
}}
</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
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}} }}__TOC__
# De InfoboxTemplate aanroep
<!--We beginnen de Component-beschrijving met de KeyPolicyQuestions, gevolgd door de table of contents. -->{{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
# De flowchart
  |mainlabel=-
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
  |?HasDescription=
# description
  |format=ul
# De input and outputs
  |intro=Key policy questions are:
</noinclude><includeonly>{{ComponentFrameTemplate}}
}}
<div class="page_standard">
<!--We willen geen [edit] per sectie laten zien.--> __NOEDITSECTION__
{{DisplayKeyPolicyQuestionsTemplate|{{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.-->
<h2>Introduction</h2></div>
{{InfoBoxTemplate|PagePartHeader=Component parts|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
<!--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.-->
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
  |mainlabel=page
  |?HasPageName=figure
  |?HasCaption=caption
  |?HasAltTitle=alt
  |format=template
  |link=none
  |template=ViewIconTemplate
}}
{{#ask:[[Category:Figure page]][[HasFigureType::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
  |mainlabel=page
  |?HasPageName=figure
  |?HasCaption=caption
  |?HasAltTitle=alt
  |format=template
  |link=none
  |template=ViewFlowchartTemplate
}}{{{Description|}}}<br clear="all"/>
}}
<!--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.-->
{{#ifeq:{{PAGENAME}}
  |Drivers
  |<h2>Main pages of {{PAGENAME}}</h2>
Detailed information can be found on the following page:
* [[{{PAGENAME}}/Drivers and types of scenarios|Drivers and types of scenarios]]
  |{{InputOutputParameterTemplate}}<br clear="all"><h2> Main pages of {{PAGENAME}}</h2>
Detailed information can be found on the following pages:
* [[HasDetailedDescription::{{PAGENAME}}/Description|Detailed description]] for a detailed description of this component
* [[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]]
[[Category:Component]]
[[HasTitle::{{PAGENAME}}| ]]
{{#set:
{{#ifeq:{{{Flowchart|}}}|||[[HasFlowchart::File:{{{Flowchart|}}}| ]]}}
  |FrameworkElementType={{{FrameworkElementType|}}}
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
  |BelongsToAggregatedComponent={{{AggregatedComponent|}}}
[[HasStatus::{{{Status|}}}|]]
  |HasInputVar={{{InputVar|}}}|+sep=;
{{#ifeq:{{{MainComponent|}}}|||[[BelongsToMainComponent::{{{MainComponent}}}|]]}}
  |HasOutputVar={{{OutputVar|}}}|+sep=;
[[HasComponentCode::{{{ComponentCode|}}}|]]
  |HasParameter={{{Parameter|}}}|+sep=;
{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|x|[[HasInputVar::x| ]]| }} }}
  |HasOverview={{{Overview|}}}|+sep=;
{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|x|[[HasOutputVar::x| ]]| }} }}
  |HasIMAGEComponent={{{IMAGEComponent|}}}|+sep=;
{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|x|[[HasParameter::x| ]]| }} }}
  |HasApplication={{{Application|}}}|+sep=;
[[HasPageLabel::Introduction| ]]
  |HasModelDatabase={{{Model-Database|}}}|+sep=; 
</includeonly>
  |HasKeyReference={{{KeyReference|}}}|+sep=;
  |HasReference={{{Reference|}}}|+sep=;
  |HasPageLabel=Introduction page
  |HasDetailedDescription={{FULLPAGENAME}}/Description
  |HasPolicyIntervention={{FULLPAGENAME}}/Policy issues
  |HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations
  |HasAllReferences={{FULLPAGENAME}}/References
  |HasComponentCode={{{ComponentCode|}}}
}}</includeonly>

Latest revision as of 14:40, 1 April 2020

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

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

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