Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(79 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>
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  
# De subpages van deze pagina ophalen en weergeven in toc  style plus de toc plus de icon
# De InfoboxTemplate aanroep
#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.
# De flowchart
</noinclude><includeonly><!--step 1 --> {{StatusWarning|Status={{{Status|}}} }}
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
<!--step 2 -->{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}
# description
__TOC__{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
# De input and outputs
  |mainlabel=page
</noinclude><includeonly>{{ComponentFrameTemplate}}
  |?HasPageName=figure
<div class="page_standard">
  |?HasCaption=caption
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}
  |?HasAltTitle=alt
<h2>Introduction</h2></div>
  |format=template
  |link=none
  |template=ViewIconTemplate
}}
<br clear="all"/>__NOEDITSECTION__
<!--step 3-->{{InfoBoxTemplate|PagePartHeader=Component parts|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
<!--We beginnen de Component-beschrijving met de KeyPolicyQuestions, gevolgd door de table of contents. --> {{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
  |mainlabel=-
  |?HasDescription=
  |format=ul
  |intro=<h2>Key policy questions</h2>
}}<!--We willen geen [edit] per sectie laten zien.--> <!--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::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
  |mainlabel=page
  |?HasPageName=figure
  |?HasCaption=caption
  |?HasAltTitle=alt
  |format=template
  |link=none
  |template=ViewFlowchartTemplate
}}{{{Description|}}} <br clear="all"/>
}}
{{InputOutputParameterTemplate}}<br clear="all">
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}
 
<!--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 page| ]]
  |HasModelDatabase={{{Model-Database|}}}|+sep=;
{{#ifeq:{{PAGENAME}}|Drivers||
  |HasKeyReference={{{KeyReference|}}}|+sep=;
[[HasDetailedDescription::{{PAGENAME}}/Description| ]]
  |HasReference={{{Reference|}}}|+sep=;
[[HasPolicyIntervention::{{PAGENAME}}/Policy Interventions| ]]
  |HasPageLabel=Introduction page
[[HasDataLimitations::{{PAGENAME}}/Data_uncertainties_limitations| ]]
  |HasDetailedDescription={{FULLPAGENAME}}/Description
}}
  |HasPolicyIntervention={{FULLPAGENAME}}/Policy issues
[[HasAllReferences::{{PAGENAME}}/References| ]]
  |HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations
 
  |HasAllReferences={{FULLPAGENAME}}/References
</includeonly>
  |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