Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
(146 intermediate revisions by 5 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>
# Icon en De subpages van deze pagina ophalen en weergeven in toc  style plus de toc
<!-- 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|}}} }}
# 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:'''
# De parts of the component again
  }}<br/>
</noinclude><includeonly><div class="top_container">{{IconTemplate| {{PAGENAME}}}}
__TOC__
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}
<!--We willen geen [edit] per sectie laten zien.--> __NOEDITSECTION__
__TOC____NOEDITSECTION__
<!--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.-->
<!--step 2--></div><div class="container">{{InfoBoxTemplate}}<!--step 3-->{{DisplayFlowchartTemplate|{{PAGENAME}} }}<!--step 4--><div class="page_standard">
{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}<!--step 5-->  
<div style="float:right; clear:right; ">
{{InfoBoxStyleTemplate}}
{{#ifeq:{{{IMAGEComponent|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>IMAGE components</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymap:{{{IMAGEComponent|}}}|;|x|[[HasIMAGEComponent::x]]}}
  </ul>
  </td></tr>
}}
{{#ifeq:{{{Application|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>Applications</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymaptemplate:{{{Application|}}}|ComponentHasApplicationTemplate|;|x|[[HasApplication::x]]}}
  </ul>
  </td></tr>
}}
{{#ifeq:{{{ExternalModel|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>External models</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymap:{{{ExternalModel|}}}|;|y|[[HasExternalModel::y]]}}
  </ul>
  </td></tr>
}}
{{#ifeq:{{{KeyReference|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>Key references</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymaptemplate:{{{KeyReference|}}}|ComponentHasReferenceTemplate|;|x|[[HasKeyReference::x]]}}
  </ul>
  </td></tr>
}}
{{#ifeq:{{{Reference|}}}|||
  <tr>{{InfoBoxCellStyleTemplate}}<b>References</b></td></tr>
  <tr><td>
  <ul>
  {{#arraymaptemplate:{{{Reference|}}}|ComponentHasReferenceTemplate|;|x|[[HasReference::x]]}}
  </ul>
  </td></tr>
}}
</table>
</div>
|}}
<!--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:Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
{{{Description|}}}
  |mainlabel=pagina
</div></div>
  |?HasCaption=caption
}}<!--Step 6-->
  |?HasAltTitle=alt
{{InputOutputParameterTemplate}}<!--Step 7-->
  |format=template
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}<!--Below, a number of properties is set
  |link=none
-->[[Category:Component]]<!--
  |template=ViewIconTemplate
properties from form
}}
-->{{#ifeq:{{{FrameworkElementType|}}}|||{{#set:FrameworkElementType={{{FrameworkElementType|}}} }} }}<!--
{{#ask:[[Category:Flowcharts]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
-->{{#ifeq:{{{AggregatedComponent|}}}|||{{#set:BelongsToAggregatedComponent={{{AggregatedComponent|}}} }} }}<!--
  |mainlabel=pagina
-->{{#ifeq:{{{InputVar|}}}|||{{#arraymap:{{{InputVar|}}}|;|xx|{{#set:HasInputVar=xx }} }} }}<!--
  |?HasCaption=caption
-->{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|xx|{{#set:HasOutputVar=xx}} }} }}<!--
  |?HasAltTitle=alt
-->{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|xx|{{#set:HasParameter=xx}} }} }} <!--
  |format=template
-->{{#ifeq:{{{Overview|}}}|||{{#arraymap:{{{Overview|}}}|;|xx|{{#set:HasOverview=xx}} }} }} <!--
  |link=none
-->{{#ifeq:{{{IMAGEComponent|}}}|||{{#arraymap:{{{IMAGEComponent|}}}|;|xx|{{#set:HasIMAGEComponent=xx}} }} }}<!--
  |template=ViewPolicyInterventionFigureTemplate2
-->{{#ifeq:{{{Application|}}}|||{{#arraymap:{{{Application|}}}|;|xx|{{#set:HasApplication=xx}} }} }}<!--
}}{{{Description|}}}
-->{{#ifeq:{{{Model-Database|}}}|||{{#arraymap:{{{Model-Database|}}}|;|xx|{{#set:HasModelDatabase=xx}} }} }}<!--
}}
-->{{#ifeq:{{{KeyReference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasKeyReference=xx}} }} }}<!--
<!--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:{{{Reference|}}}|||{{#arraymap:{{{KeyReference|}}}|;|xx|{{#set:HasReference=xx}} }} }}<!--
{{#ifeq:{{PAGENAME}}
properties for component structure
  |Drivers
-->{{#set:HasPageLabel=Introduction page}} <!--
  |<h2>Main pages of {{PAGENAME}}</h2>
-->{{#set:HasDetailedDescription={{FULLPAGENAME}}/Description}}<!--
Detailed information can be found on the following page:
-->{{#set:HasPolicyIntervention={{FULLPAGENAME}}/Policy issues}}<!--
* [[{{PAGENAME}}/Drivers and types of scenarios|Drivers and types of scenarios]]
-->{{#set:HasDataLimitations={{FULLPAGENAME}}/Data_uncertainties_limitations}}<!--
  |{{InputOutputParameterTemplate}}<h2> Main pages of {{PAGENAME}}</h2>
-->{{#set:HasAllReferences={{FULLPAGENAME}}/References}}<!--
Detailed information can be found on the following pages:
other properties
* [[{{PAGENAME}}/Description|Detailed description]] for a detailed description of this component
-->{{#set:HasTitle={{PAGENAME}} }} <!--
* [[{{PAGENAME}}/Policy Interventions|Policy interventions]] for policy interventions and illustrated effects
HasTitle is used where?
* [[{{PAGENAME}}/Data_uncertainties_limitations|Data uncertainties and limitations]] for details about data, uncertainty and limitations
-->{{#set:HasComponentCode={{{ComponentCode|}}} }}</includeonly>
}}
The overview of all [[{{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}}| ]]
[[HasAltTitle::{{{AltText|}}}| ]]
[[HasCaption::{{{CaptionText|}}}| ]]
{{#ifeq:{{{Flowchart|}}}|||[[HasFlowchart::File:{{{Flowchart|}}}| ]]}}
{{#ifeq:{{{FrameworkElementType|}}}|||{{#arraymap:{{{FrameworkElementType|}}}|,|x|[[FrameworkElementType::x| ]]| }} }}
[[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| ]]| }} }}
 
 
</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