Template:Infobox: Difference between revisions

From MathEd.net Wiki
Jump to navigation Jump to search
Added death date
Try different formatting to add an empty "if not"
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{born-date|}}}|<tr>
<table>
    <th>Born</th>
  {{#if:{{{born-date|}}}|
    <td>{{{born-date}}}</td>
    <tr><th>Born</th><td>{{{born-date}}}</td></tr>|
</tr>}}{{#if:{{{died-date|}}}|<tr>
    }}
    <th>Died</th>
  {{#if:{{{died-date|}}}|
    <td>{{{died-date}}}</td>
    <tr><th>Died</th><td>{{{died-date}}}</td></tr>|
</tr>}}{{#if:{{{institution|}}}|<tr>
    }}
    <th>Institution</th>
  {{#if:{{{institutions|}}}|
    <td>{{{institution}}}</td>
    <tr><th>Institutions</th><td>{{{institutions}}}</td></tr>|
</tr>}}{{#if:{{{alma-mater|}}}|<tr>
    }}
    <th>Alma Mater</th>
  {{#if:{{{alma-mater|}}}{{{thesis|}}}{{{advisor|}}}|
    <td>{{{alma-mater}}}</td>
    <tr><th colspan="2" style="text-align: center">Academic Background</th></td></tr>}}
</tr>}}{{#if:{{{thesis|}}}|<tr>
  {{#if:{{{alma-mater|}}}| <tr><th>Alma Mater</th><td>{{{alma-mater}}}</td></tr>}}
    <th>Thesis</th>
  {{#if:{{{thesis|}}}| <tr><th>Thesis</th><td>{{{thesis}}}</td></tr>}}
    <td>{{{thesis}}}</td>
  {{#if:{{{advisor|}}}| <tr><th>Doctoral Advisor</th><td>{{{advisor}}}</td></tr>}}
</tr>}}{{#if:{{{advisor|}}}|<tr>
</table>
    <th>Doctoral Advisor</th>
    <td>{{{advisor}}}</td>
</tr>}}</table>
</div>
</div>

Latest revision as of 05:48, 3 June 2021

Infobox