Template:ComponentTemplate2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
}} | }} | ||
</pre> | </pre> | ||
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 | |||
# De subpages van deze pagina ophalen en weergeven in toc style plus de toc plus de icon | |||
#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. | |||
</noinclude><includeonly><!--step 1 --> {{StatusWarning|Status={{{Status|}}} }} | |||
<!--step 2 -->{{ContentPartsTemplate|PagePartHeader=Parts of {{PAGENAME}}|subpage=0 }} | |||
__TOC__{{#ask:[[Category:Figure page]][[HasFigureType::Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]] | |||
|mainlabel=page | |||
|?HasPageName=figure | |||
|?HasCaption=caption | |||
|?HasAltTitle=alt | |||
|format=template | |||
|link=none | |||
|template=ViewIconTemplate | |||
}} | |||
<br clear="all"/>__NOEDITSECTION__ | |||
<!--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}}]] | <!--We beginnen de Component-beschrijving met de KeyPolicyQuestions, gevolgd door de table of contents. --> {{#ask:[[Category:KeyPolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]] | ||
|mainlabel=- | |mainlabel=- | ||
Line 23: | Line 36: | ||
}}<!--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.--> | }}<!--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.--> | ||
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2> | {{#ifeq:{{{Description|}}}|||<h2>Introduction</h2> | ||
{{#ask:[[Category:Figure page]][[HasFigureType::Flowchart]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]] | |||
|mainlabel=page | |mainlabel=page | ||
|?HasPageName=figure | |?HasPageName=figure |
Revision as of 13:08, 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:
- 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
- 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.