Difference between revisions of "Template:Infobox"
Jump to navigation
Jump to search
(forgot the else part, but doubting this will work) |
(Try different formatting to add an empty "if not") |
||
(5 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> | ||
{{#if:{{{born-date|}}}| | |||
<tr><th>Born</th><td>{{{born-date}}}</td></tr>| | |||
</tr>}}{{#if:{{{died-date|}}}|<tr> | }} | ||
{{#if:{{{died-date|}}}| | |||
<tr><th>Died</th><td>{{{died-date}}}</td></tr>| | |||
</tr>}}{{#if:{{{institutions|}}}|<tr> | }} | ||
{{#if:{{{institutions|}}}| | |||
<tr><th>Institutions</th><td>{{{institutions}}}</td></tr>| | |||
</tr>}}{{#if:{{{alma-mater}}}{{{thesis}}}{{{advisor}}}|<tr><th colspan="2" style="text-align: center"> | }} | ||
{{#if:{{{alma-mater|}}}{{{thesis|}}}{{{advisor|}}}| | |||
</tr> | <tr><th colspan="2" style="text-align: center">Academic Background</th></td></tr>}} | ||
}}{{#if:{{{alma-mater|}}}|<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:{{{advisor|}}}| <tr><th>Doctoral Advisor</th><td>{{{advisor}}}</td></tr>}} | |||
</tr>}}{{#if:{{{thesis|}}}|<tr> | </table> | ||
</tr>}}{{#if:{{{advisor|}}}|<tr> | |||
</tr>}}</table> | |||
</div> | </div> |
Latest revision as of 05:48, 3 June 2021
Infobox