Difference between revisions of "Template:Infobox/Row"

46 bytes added ,  18:30, 6 October 2020
Add missing end tag.
(Only render row if value is present (obvious, in hindsight))
(Add missing end tag.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><tr>{{#if: {{{1|}}}  
+
<includeonly>{{#if: {{{1|}}}{{{3|}}}
  | <td class="box {{{color|gray}}} infobox__heading" colspan="2">{{{1}}}
+
  | <tr>{{#if: {{{1|}}}  
  | {{#if: {{{3|}}}
+
    | <td class="box {{{color|gray}}} infobox__heading" colspan="2">{{{1}}}</td>
    | <th scope="row">{{{2}}}</th> <td>{{{3}}}</td>
+
    | {{#if: {{{3|}}}
 +
      | <th scope="row">{{{2}}}</th> <td>{{{3}}}</td>
 +
    }}
 
   }}
 
   }}
}}</tr></includeonly><noinclude>
+
</tr>}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>