Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
(65 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  
# 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
# De parts of the component again
  |?HasPageName=figure
</noinclude><includeonly><div class="top_container">{{IconTemplate| {{PAGENAME}}}}
  |?HasCaption=caption
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}
  |?HasAltTitle=alt
__TOC____NOEDITSECTION__
  |format=template
<!--step 2--></div><div class="container">{{InfoBoxTemplate}}<!--step 3-->{{DisplayFlowchartTemplate|{{PAGENAME}} }}<!--step 4--><div class="page_standard">
  |link=none
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}<!--step 5-->  
  |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>
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ask:[[Category:Figure page]][[HasFigureType::Flowchart]][[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=ViewFlowchartTemplate
-->{{#ifeq:{{{FrameworkElementType|}}}|||{{#set:FrameworkElementType={{{FrameworkElementType|}}} }} }}<!--
}}{{{Description|}}} <br clear="all"/>
-->{{#ifeq:{{{AggregatedComponent|}}}|||{{#set:BelongsToAggregatedComponent={{{AggregatedComponent|}}} }} }}<!--
}}
-->{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|xx|{{#set:HasInputVar=xx }} }} }}<!--
{{InputOutputParameterTemplate}}<br clear="all">
-->{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|xx|{{#set:HasOutputVar=xx}} }} }}<!--
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}
-->{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|xx|{{#set:HasParameter=xx}} }} }} <!--
 
-->{{#ifeq:{{{Overview|}}}|||{{#arraymap:{{{Overview|}}}|;|xx|{{#set:HasOverview=xx}} }} }} <!--
<!--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:{{{IMAGEComponent|}}}|||{{#arraymap:{{{IMAGEComponent|}}}|;|xx|{{#set:HasIMAGEComponent=xx}} }} }}<!--
[[Category:Component]]
-->{{#ifeq:{{{Application|}}}|||{{#arraymap:{{{Application|}}}|;|xx|{{#set:HasApplication=xx}} }} }}<!--
[[HasTitle::{{PAGENAME}}| ]]
-->{{#ifeq:{{{Model-Database|}}}|||{{#arraymap:{{{Model-Database|}}}|;|xx|{{#set:HasModelDatabase=xx}} }} }}<!--
{{#ifeq:{{{Flowchart|}}}|||[[HasFlowchart::File:{{{Flowchart|}}}| ]]}}
-->{{#ifeq:{{{KeyReference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasKeyReference=xx}} }} }}<!--
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
-->{{#ifeq:{{{Reference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasReference=xx}} }} }}<!--
[[HasStatus::{{{Status|}}}|]]
properties for component structure
{{#ifeq:{{{MainComponent|}}}|||[[BelongsToMainComponent::{{{MainComponent}}}|]]}}
-->{{#set:HasPageLabel=Introduction page}} <!--
[[HasComponentCode::{{{ComponentCode|}}}|]]
-->{{#set:HasDetailedDescription={{FULLPAGENAME}}/Description}}<!--
{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|x|[[HasInputVar::x| ]]| }} }}
-->{{#set:HasPolicyIntervention={{FULLPAGENAME}}/Policy issues}}<!--
{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|x|[[HasOutputVar::x| ]]| }} }}
-->{{#set:HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations}}<!--
{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|x|[[HasParameter::x| ]]| }} }}
-->{{#set:HasAllReferences={{FULLPAGENAME}}/References}}<!--
[[HasPageLabel::Introduction page| ]]
other properties
{{#ifeq:{{PAGENAME}}|Drivers||
-->{{#set:HasTitle={{PAGENAME}} }} <!--
[[HasDetailedDescription::{{PAGENAME}}/Description| ]]
HasTitle is used where?
[[HasPolicyIntervention::{{PAGENAME}}/Policy Interventions| ]]
-->{{#set:HasComponentCode={{{ComponentCode|}}} }}</includeonly>
[[HasDataLimitations::{{PAGENAME}}/Data_uncertainties_limitations| ]]
}}
[[HasAllReferences::{{PAGENAME}}/References| ]]
 
</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