Template:InfoboxTestTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 9: Line 9:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly><!--
{{#ifexpr:
-->{{#ifexpr:
  {{#if:{{{IMAGEComponent|}}}|1|0}} or
{{PropertyTestTemplate|prop=HasReference|page={{{basepage|}}} }} or  
  {{#if:{{{Application|}}}|1|0}} or
{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{{basepage|}}} }} or
  {{#if:{{{ExternalModel|}}}|1|0}} or  
{{PropertyTestTemplate|prop=HasApplication|page={{{basepage|}}} }} or
  {{#if:{{{KeyReference|}}}|1|0}} or
{{PropertyTestTemplate|prop=HasModelDatabase|page={{{basepage|}}} }} or
  {{#if:{{{Reference|}}}|1|0}}
{{PropertyTestTemplate|prop=HasKeyReference|page={{{basepage|}}} }} or
|1|0}}
{{#ifeq:{{{subpage|}}}|
<!--{{#ifexpr:{{PropertyTestTemplate|prop=HasApplication|page={{{basepage|}}}}} or  
  |{{PropertyTestTemplate|prop=HasReference|page={{{basepage|}}} }}
{{PropertyTestTemplate|prop=HasIMAGEComponent|page={{{basepage|}}}}} or
  |{{PropertyTestTemplate|prop=HasReference|page={{{basepage|}}}/{{{subpage|}}} }}  
{{PropertyTestTemplate|prop=HasExternalModel|page={{{basepage|}}}}} or
}}
{{PropertyTestTemplate|prop=HasKeyReference|page={{{basepage|}}}}} or
|1|0}}<!--
{{#ifeq:{{{subpage|}}}||{{PropertyTestTemplate|prop=HasReference|page={{{basepage|}}} }}|{{PropertyTestTemplate|prop=HasReference|page={{{basepage|}}}/{{{subpage|}}}}} }}
--></includeonly>
|1|0}}-->
</includeonly>

Latest revision as of 12:00, 11 May 2016

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.