Difference between revisions of "Template:Infobox"

From MathEd.net Wiki
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>
    <th>Born</th>
  {{#if:{{{born-date|}}}|
    <td>{{{born-date}}}</td>
    <tr><th>Born</th><td>{{{born-date}}}</td></tr>|
</tr>}}{{#if:{{{died-date|}}}|<tr>
    }}
    <th>Died</th>
  {{#if:{{{died-date|}}}|
    <td>{{{died-date}}}</td>
    <tr><th>Died</th><td>{{{died-date}}}</td></tr>|
</tr>}}{{#if:{{{institutions|}}}|<tr>
    }}
    <th>Institutions</th>
  {{#if:{{{institutions|}}}|
    <td>{{{institutions}}}</td>
    <tr><th>Institutions</th><td>{{{institutions}}}</td></tr>|
</tr>}}{{#if:{{{alma-mater}}}{{{thesis}}}{{{advisor}}}|<tr><th colspan="2" style="text-align: center">Header</th></td>
    }}
 
  {{#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>}}
    <th>Alma Mater</th>
  {{#if:{{{thesis|}}}| <tr><th>Thesis</th><td>{{{thesis}}}</td></tr>}}
    <td>{{{alma-mater}}}</td>
  {{#if:{{{advisor|}}}| <tr><th>Doctoral Advisor</th><td>{{{advisor}}}</td></tr>}}
</tr>}}{{#if:{{{thesis|}}}|<tr>
</table>
    <th>Thesis</th>
    <td>{{{thesis}}}</td>
</tr>}}{{#if:{{{advisor|}}}|<tr>
    <th>Doctoral Advisor</th>
    <td>{{{advisor}}}</td>
</tr>}}</table>
</div>
</div>

Latest revision as of 05:48, 3 June 2021

Infobox