Template:ComponentTemplate2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
<!--We willen geen [edit] per sectie laten zien.--> __NOEDITSECTION__ | <!--We willen geen [edit] per sectie laten zien.--> __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--> {{StatusWarning|Status={{{Status|}}} }} | <!-- 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|}}} }} | ||
<!--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. Voor subpagina's wordt ook gecontroleerd of de hoofdpagina references heeft, zodat die getoond kunnen worden.--> | ||
{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}| | {{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}| | ||
<div style="float:right; clear:right; "> | <div style="float:right; clear:right; "> | ||
{{InfoBoxStyleTemplate}} | {{InfoBoxStyleTemplate}} | ||
{{#ifeq:{{{IMAGEComponent|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>IMAGE components</b></td></tr> | {{#ifeq:{{{IMAGEComponent|}}}||| | ||
<tr><td> | <tr>{{InfoBoxCellStyleTemplate}}<b>IMAGE components</b></td></tr> | ||
<ul> | <tr><td> | ||
{{#arraymap:{{{IMAGEComponent|}}}|;|x|[[HasIMAGEComponent::x]]}} | <ul> | ||
</ul> | {{#arraymap:{{{IMAGEComponent|}}}|;|x|[[HasIMAGEComponent::x]]}} | ||
</td></tr> | </ul> | ||
</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Application|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>Applications</b></td></tr> | {{#ifeq:{{{Application|}}}||| | ||
<tr><td> | <tr>{{InfoBoxCellStyleTemplate}}<b>Applications</b></td></tr> | ||
<ul> | <tr><td> | ||
{{#arraymap:{{{Application|}}}|;|x|[[HasApplication::x]]}} | <ul> | ||
</ul> | {{#arraymap:{{{Application|}}}|;|x|[[HasApplication::x]]}} | ||
</td></tr> | </ul> | ||
</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{ExternalModel|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>External models</b></td></tr> | {{#ifeq:{{{ExternalModel|}}}||| | ||
<tr><td> | <tr>{{InfoBoxCellStyleTemplate}}<b>External models</b></td></tr> | ||
<ul> | <tr><td> | ||
{{#arraymap:{{{ExternalModel|}}}|;|y|[[HasExternalModel::y]]}} | <ul> | ||
</ul> | {{#arraymap:{{{ExternalModel|}}}|;|y|[[HasExternalModel::y]]}} | ||
</td></tr> | </ul> | ||
</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{KeyReference|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>Key references</b></td></tr> | {{#ifeq:{{{KeyReference|}}}||| | ||
<tr><td> | <tr>{{InfoBoxCellStyleTemplate}}<b>Key references</b></td></tr> | ||
<ul> | <tr><td> | ||
{{#arraymap:{{{KeyReference|}}}|;|x|[[HasKeyReference::x]]}} | <ul> | ||
</ul> | {{#arraymap:{{{KeyReference|}}}|;|x|[[HasKeyReference::x]]}} | ||
</td></tr> | </ul> | ||
</td></tr> | |||
}} | }} | ||
{{#ifeq:{{{Reference|}}}|||<tr>{{InfoBoxCellStyleTemplate}}<b>References</b></td></tr> | {{#ifeq:{{{Reference|}}}||| | ||
<tr><td> | <tr>{{InfoBoxCellStyleTemplate}}<b>References</b></td></tr> | ||
<ul> | <tr><td> | ||
{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]}} | <ul> | ||
</ul> | {{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]}} | ||
</td></tr> | </ul> | ||
</td></tr> | |||
}} | }} | ||
</table> | </table> | ||
</div> | </div> | ||
|}} | |}} | ||
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2> | {{#ifeq:{{{Description|}}}|||<h2>Introduction</h2> | ||
{{#ask:[[Category:Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]] | {{#ask:[[Category:Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]] |
Revision as of 11:06, 1 August 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.