Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
(73 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:
 
# Icon en De subpages van deze pagina ophalen en weergeven in toc  style plus de toc
Steps in teh template:
# De InfoboxTemplate aanroep
# 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
# De flowchart
# icon uitvragen
# content parts en TOC. Aan het eind de 'floating area' afsluiten en zorgen dat er geen edit bij de secties komt (die zou naar de template gaan).
# 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.
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
# If a description exists, the flowchart of the componen tis displayed together with the description.
# description
# There is one component that has a different structure from the others: the component Drivers. We need no Input-output-vars here and we need a different set of Main pages. For all component-pages an overview of references is required.
# De input and outputs
# 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.
# De parts of the component again
</noinclude><includeonly><!--step 1-->{{StatusWarning|Status={{{Status|}}} }}
</noinclude><includeonly><div class="top_container">{{IconTemplate| {{PAGENAME}}}}
<!--step 2-->{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}
  |mainlabel=page
__TOC____NOEDITSECTION__
  |?HasPageName=figure
<!--step 2--></div><div class="container">{{InfoBoxTemplate}}<!--step 3-->{{DisplayFlowchartTemplate|{{PAGENAME}} }}<!--step 4--><div class="page_standard">
  |?HasCaption=caption
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}<!--step 5-->  
  |?HasAltTitle=alt
  |format=template
  |link=none
  |template=ViewIconTemplate
}}<!--step 3-->
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}__TOC__
<br clear="all"/>__NOEDITSECTION__
<!--step 4-->{{InfoBoxTemplate|PagePartHeader=Component parts|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
<!--step 5--> {{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
  |mainlabel=-
  |?HasDescription=
  |format=ul
  |intro=<h2>Key policy questions</h2>
}}<!--step 6-->
{{#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 }} }} }}<!--
<!--step 7: Drivers || input output-->
-->{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|xx|{{#set:HasOutputVar=xx}} }} }}<!--
{{#ifeq:{{PAGENAME}}
-->{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|xx|{{#set:HasParameter=xx}} }} }} <!--
  |Drivers
-->{{#ifeq:{{{Overview|}}}|||{{#arraymap:{{{Overview|}}}|;|xx|{{#set:HasOverview=xx}} }} }} <!--
  |<h2>Parts of {{PAGENAME}}</h2>
-->{{#ifeq:{{{IMAGEComponent|}}}|||{{#arraymap:{{{IMAGEComponent|}}}|;|xx|{{#set:HasIMAGEComponent=xx}} }} }}<!--
Detailed information can be found on the following page:
-->{{#ifeq:{{{Application|}}}|||{{#arraymap:{{{Application|}}}|;|xx|{{#set:HasApplication=xx}} }} }}<!--
* [[{{PAGENAME}}/Drivers and types of scenarios|Drivers and types of scenarios]]
-->{{#ifeq:{{{Model-Database|}}}|||{{#arraymap:{{{Model-Database|}}}|;|xx|{{#set:HasModelDatabase=xx}} }} }}<!--
  |{{InputOutputParameterTemplate}}<br clear="all"><h2> Parts of {{PAGENAME}}</h2>
-->{{#ifeq:{{{KeyReference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasKeyReference=xx}} }} }}<!--
Detailed information can be found on the following pages:
-->{{#ifeq:{{{Reference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasReference=xx}} }} }}<!--
* [[HasDetailedDescription::{{PAGENAME}}/Description|Detailed description]] for a detailed description of this component
properties for component structure
* [[HasPolicyIntervention::{{PAGENAME}}/Policy Interventions|Policy interventions]] for policy interventions and illustrated effects
-->{{#set:HasPageLabel=Introduction page}} <!--
* [[HasDataLimitations::{{PAGENAME}}/Data_uncertainties_limitations|Data uncertainties and limitations]] for details about data, uncertainty and limitations
-->{{#set:HasDetailedDescription={{FULLPAGENAME}}/Description}}<!--
}}
-->{{#set:HasPolicyIntervention={{FULLPAGENAME}}/Policy issues}}<!--
The overview of all [[HasAllReferences::{{PAGENAME}}/References|references]].
-->{{#set:HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations}}<!--
 
-->{{#set:HasAllReferences={{FULLPAGENAME}}/References}}<!--
<!--step 8-->
other properties
[[Category:Component]]
-->{{#set:HasTitle={{PAGENAME}} }} <!--
[[HasTitle::{{PAGENAME}}| ]]
HasTitle is used where?
{{#ifeq:{{{Flowchart|}}}|||[[HasFlowchart::File:{{{Flowchart|}}}| ]]}}
-->{{#set:HasComponentCode={{{ComponentCode|}}} }}</includeonly>
{{#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 page| ]]
</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