Template:InfoboxTestTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifexpr:{{#if:{{{IMAGEComponent|0}}}|1|0}} or {{#if:{{{Application|0}}}|1|0}} or {{#if:{{{ExternalModel|0}}}|1|0}} or {{#if:{{{KeyReference|0}}}|1|0}} or {{#if:{{{Reference|0}}}|1|0}}|1010|0101}}
{{#ifexpr:{{#if:{{{IMAGEComponent|0}}}|1|0}} or {{#if:{{{Application|0}}}|1|0}} or {{#if:{{{ExternalModel|0}}}|1|0}} or {{#if:{{{KeyReference|0}}}|1|0}} or {{#if:{{{Reference|0}}}|1|0}}|1010|0101}}
{{#ifexpr:{{#expr:{{#if:{{{IMAGEComponent|0}}}|1|0}} }}|yes|no}}
Wat komt hier uit?
<!--{{#ifexpr:{{PropertyTestTemplate|prop=HasApplication|page={{{basepage|}}}}} or
{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{{basepage|}}}}} or
{{PropertyTestTemplate|prop=HasExternalModel|page={{{basepage|}}}}} or
{{PropertyTestTemplate|prop=HasKeyReference|page={{{basepage|}}}}} or
{{#ifeq:{{{subpage|}}}||{{PropertyTestTemplate|prop=HasReference|page={{{basepage|}}} }}|{{PropertyTestTemplate|prop=HasReference|page={{{basepage|}}}/{{{subpage|}}}}} }}
|1|0}}-->
</includeonly>
</includeonly>

Revision as of 10:53, 1 August 2013

This is the "InfoboxTestTemplate" template. it returns 1 (true) if an infobox should be displayed, 0 (false) otherwise It should be called in the following format; subpage is optional

{{InfoboxTestTemplate
|basepage=
|subpage=
}}

Edit the page to see the template text.