Infobox/Mod – Template talk
Jump to navigation
Jump to search
m (Conditions in templates) |
No edit summary |
||
Line 3: | Line 3: | ||
I've tried to use #if , but without result: | I've tried to use #if , but without result: | ||
<pre> | <pre> | ||
{{#if:{{{coder|}}}|<tr><th style="background-color: #ccccff;"> | {{#if:{{{coder|}}}|<tr><th style="background-color: #ccccff;">Coder(s)</th><td>{{{coder|}}}</td></tr>}} | ||
</pre> | </pre> | ||
It's better to have only one template then create another ones with different parameters. | 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. | If you find the way, feel free to edit this one. |
Revision as of 08:24, 21 July 2006
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;">Coder(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.