Sorry if this is a stupid question, but I'm kinda new to mediawiki and couldn't find any useful info online.
I created a simple template, and wanted to make it so, when the first field is empty ({{{1|}}}), both colums are merged into one, showing "N/A".
Can't use colspan because of the #if funcion, and <span> doesn't seem to work either, acting only on the word and not on the whole field.
Here's an example on what the template looks like at the moment:
{| width="100%" class="sortable" style="text-align:center; background: #e1e1e1; border:3px solid #5b5a5a"
|- ! colspan="2" | Name |-
| style="background:#FFF" width="50%" | {{#if {{{1|}}}| {{{1|}}} | N/A}}
| style="background:#FFF" width="50%" | {{#if {{{2|}}}| {{{2|}}} | N/A}}
|}
Thank you in advance for the help.