Template:ComponentTemplate2: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
Steps in this template:
Steps in this 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
# 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 subpages van deze pagina ophalen en weergeven in toc  style plus de toc plus de icon
# Icon en De subpages van deze pagina ophalen en weergeven in toc  style plus de toc  
#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.
# De InfoboxTemplate aanroep
# We beginnen de Component-beschrijving met de KeyPolicyQuestions
# De flowchart with the description
# De input and outputs
# De parts of the component again
</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 30: Line 34:
<br clear="all"/>__NOEDITSECTION__  
<br clear="all"/>__NOEDITSECTION__  
<!--step 3-->{{InfoBoxTemplate|PagePartHeader=Component parts|IMAGEComponent={{{IMAGEComponent|}}}|Application={{{Application|}}}|ExternalModel={{{ExternalModel|}}}|KeyReference={{{KeyReference|}}}|Reference={{{Reference|}}} }}
<!--step 3-->{{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 4-> {{#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 5-->  
{{#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 46: Line 50:
   |template=ViewFlowchartTemplate
   |template=ViewFlowchartTemplate
}}{{{Description|}}} <br clear="all"/>
}}{{{Description|}}} <br clear="all"/>
}}
}}<!--Step 6-->
{{InputOutputParameterTemplate}}<br clear="all">
{{InputOutputParameterTemplate}}<br clear="all">
<!--Step 7-->
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}
{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }}


Line 53: Line 58:
[[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 13:22, 29 November 2013

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

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

Steps in this template:

  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 en De subpages van deze pagina ophalen en weergeven in toc style plus de toc
  3. De InfoboxTemplate aanroep
  4. We beginnen de Component-beschrijving met de KeyPolicyQuestions
  5. De flowchart with the description
  6. De input and outputs
  7. De parts of the component again