Creating optional parameters in templates?
• MediaWiki version: 1.14alpha (r44990) • PHP version: 5.1.6 (cgi-fcgi) • MySQL version: 5.0.22-log • URL: http://www.twcenter.net/wiki/Main_Page I am trying to make an infobox template for a local wiki about PC game modifications, where people can enter several parameters such as Screenshot and Leader, but if they don’t, then those fields should not appear in the infobox at all. My code at the moment is: {| class=”infobox” cellpadding=”2″ cellspacing=”0″ style=”float:right; margin:5px 0 5px 5px; border:2px solid grey; font-size: 85%;” |- | colspan=”2″ style=”text-align:center; font-size: large;” | {{{mod}}} |- | colspan=”2″ style=”text-align:center;” | [[Image:{{{modscreenshot}}}]] {{{platform}}} |- ! Era: | {{{era}}} |- ! Mod Leader: | {{{leader}}} |} However, at present, the infobox still shows empty parameters; I want it to skip those altogether. The template is at http://www.twcenter.net/wiki/Template:Mod. Any help would be greatly appreciated.