Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Creating optional parameters in templates?

creating parameters Templates
0
Posted

Creating optional parameters in templates?

0

• 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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123