Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
(70 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 the 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
# The input output tables and the parts again
# 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><div class="top_container">{{IconTemplate| {{PAGENAME}}}}
</noinclude><includeonly><!--step 1-->{{StatusWarning|Status={{{Status|}}} }}
{{ContentPartsTemplate|PagePartHeader=Parts of {{FULLPAGENAME}} }}
<!--step 2-->{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
__TOC____NOEDITSECTION__
  |mainlabel=page
<!--step 2--></div><div class="container">{{InfoBoxTemplate}}<!--step 3-->{{DisplayFlowchartTemplate|{{PAGENAME}} }}<!--step 4--><div class="page_standard">
  |?HasPageName=figure
{{DisplayKeyPolicyQuestionsTemplate|{{PAGENAME}} }}<!--step 5-->  
  |?HasCaption=caption
  |?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: -->
-->{{#ifeq:{{{OutputVar|}}}|||{{#arraymap:{{{OutputVar|}}}|;|xx|{{#set:HasOutputVar=xx}} }} }}<!--
{{InputOutputParameterTemplate}}<br clear="all">
-->{{#ifeq:{{{Parameter|}}}|||{{#arraymap:{{{Parameter|}}}|;|xx|{{#set:HasParameter=xx}} }} }} <!--
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}
-->{{#ifeq:{{{Overview|}}}|||{{#arraymap:{{{Overview|}}}|;|xx|{{#set:HasOverview=xx}} }} }} <!--
 
-->{{#ifeq:{{{IMAGEComponent|}}}|||{{#arraymap:{{{IMAGEComponent|}}}|;|xx|{{#set:HasIMAGEComponent=xx}} }} }}<!--
<!--step 8-->
-->{{#ifeq:{{{Application|}}}|||{{#arraymap:{{{Application|}}}|;|xx|{{#set:HasApplication=xx}} }} }}<!--
[[Category:Component]]
-->{{#ifeq:{{{Model-Database|}}}|||{{#arraymap:{{{Model-Database|}}}|;|xx|{{#set:HasModelDatabase=xx}} }} }}<!--
[[HasTitle::{{PAGENAME}}| ]]
-->{{#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
</includeonly>
-->{{#set:HasTitle={{PAGENAME}} }} <!--
HasTitle is used where?
-->{{#set:HasComponentCode={{{ComponentCode|}}} }}</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