Shisma wrote:
I think this is a missing feature. I need to set the theme based on more complex conditions.
Not really. Keeping things simple is more important than accomodating all edge cases. It is easy enough to have a helper template that will process all those complex conditions and return the needed theme.
/*ChooseTheme*/
{{{#if:{{{hidden|}}}|hidden|}}
{{myinfobox|conditionaltheme={{choosetheme}}
Allowing wikitext in attributes such as theme-source may make these infobox templates unnecessarily complex especially when they deploy the infoboxbuilder that will have to interpret these attributes. Some people might start adding dozens of lines of conditional statements, which is not desirable.