Infobox/Mod – Template talk

From Bohemia Interactive Community
Revision as of 08:23, 21 July 2006 by Str (talk | contribs) (Conditions in templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Please can someone help me with structured infobox, when are shown only parameters which are filled out? For example - if someone skip field coder, the whole line will not be displayed. I've tried to use #if , but without result:

{{#if:{{{coder|}}}|<tr><th style="background-color: #ccccff;">Rating(s)</th><td>{{{coder|}}}</td></tr>}}

It's better to have only one template then create another ones with different parameters. If you find the way, feel free to edit this one.