Difference between revisions of "Template:Infobox"

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

Latest revision as of 05:48, 3 June 2021

Infobox