Template:Infobox: Difference between revisions

From MathEd.net Wiki
Jump to navigation Jump to search
Create template
 
Try different formatting to add an empty "if not"
 
(11 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|}}}|<tr>
<table>
    <th>Born</th>
  {{#if:{{{born-date|}}}|
    <td>{{{born}}}</td>
    <tr><th>Born</th><td>{{{born-date}}}</td></tr>|
</tr>}}{{#if:{{{institution|}}}|<tr>
    }}
     <th>Institution</th>
  {{#if:{{{died-date|}}}|
    <td>{{{institution}}}</td>
    <tr><th>Died</th><td>{{{died-date}}}</td></tr>|
</tr>}}{{#if:{{{almamater|}}}|<tr>
    }}
    <th>Alma Mater</th>
  {{#if:{{{institutions|}}}|
    <td>{{{almamater}}}</td>
     <tr><th>Institutions</th><td>{{{institutions}}}</td></tr>|
</tr>}}{{#if:{{{thesis|}}}|<tr>
    }}
    <th>Thesis</th>
  {{#if:{{{alma-mater|}}}{{{thesis|}}}{{{advisor|}}}|
    <td>{{{thesis}}}</td>
    <tr><th colspan="2" style="text-align: center">Academic Background</th></td></tr>}}
</tr>}}{{#if:{{{advisor|}}}|<tr>
  {{#if:{{{alma-mater|}}}| <tr><th>Alma Mater</th><td>{{{alma-mater}}}</td></tr>}}
    <th>Doctoral Advisor</th>
  {{#if:{{{thesis|}}}| <tr><th>Thesis</th><td>{{{thesis}}}</td></tr>}}
    <td>{{{advisor}}}</td>
  {{#if:{{{advisor|}}}| <tr><th>Doctoral Advisor</th><td>{{{advisor}}}</td></tr>}}
</tr>}}</table>
</table>
</div>
</div>

Latest revision as of 05:48, 3 June 2021

Infobox