Template:Infobox officeholder: Difference between revisions

added a comment to clarify a #if; formatting is still ugly: let's try with a nested table, for semplicity's sake
m (nbsp refinements)
(added a comment to clarify a #if; formatting is still ugly: let's try with a nested table, for semplicity's sake)
Line 5:
-->
|-
{{ #if: {{{term_end|}}} |<tr><th>In office</th><td>from&nbsp;{| from||{{{term_start}}}<br>|-to&nbsp;||{{{term_end}}} |}</td></tr>|<tr><th style="text-align: center; background: #B0C4DE;" colspan="2">[[Incumbent]]</th></tr>
}}
{{#if:{{{order|}}}|<tr style="text-align: center;"><td colspan="2">{{{order|}}}</td></tr>}}<!--
-->
{{#if: {{{term_end|}}}|<!--then--> |<!--else--><tr><th>In office since</th><td>{{{term_start}}}</td></tr>}}<!--
-->{{ #if:{{{vicepresident|}}}|<tr><th>Vice President</th><td>{{{vicepresident|}}}</td></tr> }}
|-<!--