Difference between revisions of "Template:Infobox"

From MathEd.net Wiki
Jump to navigation Jump to search
(Remove spaces in if statements to see if it tightens up infoboxes; change header)
(Try different formatting to add an empty "if not")
 
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|}}}| <tr><th>Born</th><td>{{{born-date}}}</td></tr>}}
   {{#if:{{{born-date|}}}|
   {{#if:{{{died-date|}}}| <tr><th>Died</th><td>{{{died-date}}}</td></tr>}}
    <tr><th>Born</th><td>{{{born-date}}}</td></tr>|
   {{#if:{{{institutions|}}}| <tr><th>Institutions</th><td>{{{institutions}}}</td></tr>}}
    }}
   {{#if:{{{alma-mater|}}}{{{thesis|}}}{{{advisor|}}}| <tr><th colspan="2" style="text-align: center">Academic Background</th></td></tr>}}
   {{#if:{{{died-date|}}}|
    <tr><th>Died</th><td>{{{died-date}}}</td></tr>|
    }}
   {{#if:{{{institutions|}}}|
    <tr><th>Institutions</th><td>{{{institutions}}}</td></tr>|
    }}
   {{#if:{{{alma-mater|}}}{{{thesis|}}}{{{advisor|}}}|
    <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|}}}| <tr><th>Alma Mater</th><td>{{{alma-mater}}}</td></tr>}}
   {{#if:{{{thesis|}}}| <tr><th>Thesis</th><td>{{{thesis}}}</td></tr>}}
   {{#if:{{{thesis|}}}| <tr><th>Thesis</th><td>{{{thesis}}}</td></tr>}}

Latest revision as of 05:48, 3 June 2021

Infobox