Template:Infobox: Difference between revisions

From MathEd.net Wiki
Jump to navigation Jump to search
reformatted to single-line if statements
Remove spaces in if statements to see if it tightens up infoboxes; change header
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|}}}| <tr><th>Born</th><td>{{{born-date}}}</td></tr>}}
   {{#if:{{{died-date|}}} | <tr><th>Died</th><td>{{{died-date}}}</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:{{{institutions|}}}| <tr><th>Institutions</th><td>{{{institutions}}}</td></tr>}}
   {{#if:{{{alma-mater|}}}{{{thesis|}}}{{{advisor|}}} | <tr><th colspan="2" style="text-align: center">Header</th></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>}}
   {{#if:{{{advisor|}}} | <tr><th>Doctoral Advisor</th><td>{{{advisor}}}</td></tr>}}
   {{#if:{{{advisor|}}}| <tr><th>Doctoral Advisor</th><td>{{{advisor}}}</td></tr>}}
</table>
</table>
</div>
</div>

Revision as of 05:41, 3 June 2021

Infobox