Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
# 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
# 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 uitvragen
# icon uitvragen
#content parts en TOC
# 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.
# 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
# If a description exists, the flowchart of the componen tis displayed together with the 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.
# 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.
</noinclude><includeonly><!--step 1-->{{StatusWarning|Status={{{Status|}}} }}
</noinclude><includeonly><!--step 1-->{{StatusWarning|Status={{{Status|}}} }}
<!--step 2-->{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
<!--step 2-->{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
Line 32: Line 36:
<br clear="all"/>__NOEDITSECTION__  
<br clear="all"/>__NOEDITSECTION__  
<!--step 4-->{{InfoBoxTemplate|PagePartHeader=Component parts|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
<!--step 4-->{{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}}]]
<!--step 5--> {{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
   |mainlabel=-
   |mainlabel=-
   |?HasDescription=
   |?HasDescription=
   |format=ul
   |format=ul
   |intro=<h2>Key policy questions</h2>
   |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.-->
}}<!--step 6-->
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ask:[[Category:Figure page]][[HasFigureType::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
{{#ask:[[Category:Figure page]][[HasFigureType::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
Line 49: Line 53:
}}{{{Description|}}} <br clear="all"/>
}}{{{Description|}}} <br clear="all"/>
}}
}}
<!--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.-->
<!--step 7: Drivers || input output-->
{{#ifeq:{{PAGENAME}}
{{#ifeq:{{PAGENAME}}
   |Drivers
   |Drivers
   |<h2>Main pages of {{PAGENAME}}</h2>
   |<h2>Parts of {{PAGENAME}}</h2>
Detailed information can be found on the following page:
Detailed information can be found on the following page:
* [[{{PAGENAME}}/Drivers and types of scenarios|Drivers and types of scenarios]]
* [[{{PAGENAME}}/Drivers and types of scenarios|Drivers and types of scenarios]]
   |{{InputOutputParameterTemplate}}<br clear="all"><h2> Main pages of {{PAGENAME}}</h2>
   |{{InputOutputParameterTemplate}}<br clear="all"><h2> Parts of {{PAGENAME}}</h2>
Detailed information can be found on the following pages:
Detailed information can be found on the following pages:
* [[HasDetailedDescription::{{PAGENAME}}/Description|Detailed description]] for a detailed description of this component
* [[HasDetailedDescription::{{PAGENAME}}/Description|Detailed description]] for a detailed description of this component
Line 63: Line 67:
The overview of all [[HasAllReferences::{{PAGENAME}}/References|references]].
The overview of all [[HasAllReferences::{{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]]
[[Category:Component]]
[[HasTitle::{{PAGENAME}}| ]]
[[HasTitle::{{PAGENAME}}| ]]

Revision as of 18:33, 27 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.

Steps:

  1. 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
  2. icon uitvragen
  3. 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).
  4. 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.
  5. We beginnen de Component-beschrijving met de KeyPolicyQuestions
  6. If a description exists, the flowchart of the componen tis displayed together with the description.
  7. 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.
  8. 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.