Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
m (Reverted edits by RinekeOostenrijk (talk) to last revision by LiselotteHeukelom)
Line 13: Line 13:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
 
</noinclude><includeonly><!-- 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|}}} }}
Steps in the template:
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}__TOC__<br clear="all"/>__NOEDITSECTION__
# 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 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.-->{{InfoBoxTemplate|PagePartHeader=Component parts|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
# icon uitvragen
<!--We beginnen de Component-beschrijving met de KeyPolicyQuestions, gevolgd door de table of contents. --> {{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
# 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).
  |mainlabel=-
# 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.
  |?HasDescription=
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
  |format=ul
# If a description exists, the flowchart of the componen tis displayed together with the description.
  |intro=<h2>Key policy questions</h2>
# The input output tables and the parts again
}}<!--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.-->
# 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:{{{Description|}}}|||<h2>Introduction</h2>
 
{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
</noinclude><includeonly><!--step 1-->{{StatusWarning|Status={{{Status|}}} }}
<!--step 2-->{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
   |mainlabel=page
   |mainlabel=page
   |?HasPageName=figure
   |?HasPageName=figure
Line 33: Line 31:
   |link=none
   |link=none
   |template=ViewIconTemplate
   |template=ViewIconTemplate
}}<!--step 3-->
}} {{#ask:[[Category:Figure page]][[HasFigureType::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
{{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>
{{#ask:[[Category:Figure page]][[HasFigureType::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
   |mainlabel=page
   |mainlabel=page
   |?HasPageName=figure
   |?HasPageName=figure
Line 54: Line 41:
}}{{{Description|}}} <br clear="all"/>
}}{{{Description|}}} <br clear="all"/>
}}
}}
<!--step 7: -->
<!--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.-->
{{InputOutputParameterTemplate}}<br clear="all">
{{#ifeq:{{PAGENAME}}
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}
  |Drivers
  |<h2>Main pages of {{PAGENAME}}</h2>
Detailed information can be found on the following page:
* [[{{PAGENAME}}/Drivers and types of scenarios|Drivers and types of scenarios]]
  |{{InputOutputParameterTemplate}}<br clear="all"><h2> Main pages of {{PAGENAME}}</h2>
Detailed information can be found on the following pages:
* [[HasDetailedDescription::{{PAGENAME}}/Description|Detailed description]] for a detailed description of this component
* [[HasPolicyIntervention::{{PAGENAME}}/Policy Interventions|Policy interventions]] for policy interventions and illustrated effects
* [[HasDataLimitations::{{PAGENAME}}/Data_uncertainties_limitations|Data uncertainties and limitations]] for details about data, uncertainty and limitations
}}
The overview of all [[HasAllReferences::{{PAGENAME}}/References|references]].


<!--step 8-->
<!--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}}| ]]
[[HasTitle::{{PAGENAME}}| ]]
{{#ifeq:{{{Flowchart|}}}|||[[HasFlowchart::File:{{{Flowchart|}}}| ]]}}
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
{{#ifeq:{{{FrameworkElementType|}}}|||[[FrameworkElementType::{{{FrameworkElementType|}}}| ]] }}
[[HasStatus::{{{Status|}}}|]]
[[HasStatus::{{{Status|}}}|]]

Revision as of 17:22, 28 November 2013

This is the "ComponentTemplate2" template. It should be called in the following format:

{{ComponentTemplate2
|Application=
|IMAGEComponent=
|ExternalModel=
|KeyReference=
|Reference=
|Description=
}}

Edit the page to see the template text.