Template:Infobox: Difference between revisions

From MathEd.net Wiki
Jump to navigation Jump to search
Trying an additional section header
Try different formatting to add an empty "if not"
 
(8 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 span="2">Header</th></td>
    }}
 
  {{#if:{{{alma-mater|}}}{{{thesis|}}}{{{advisor|}}}|
</tr>}}{{#if:{{{alma-mater|}}}|<tr>
    <tr><th colspan="2" style="text-align: center">Academic Background</th></td></tr>}}
    <th>Alma Mater</th>
  {{#if:{{{alma-mater|}}}| <tr><th>Alma Mater</th><td>{{{alma-mater}}}</td></tr>}}
    <td>{{{alma-mater}}}</td>
  {{#if:{{{thesis|}}}| <tr><th>Thesis</th><td>{{{thesis}}}</td></tr>}}
</tr>}}{{#if:{{{thesis|}}}|<tr>
  {{#if:{{{advisor|}}}| <tr><th>Doctoral Advisor</th><td>{{{advisor}}}</td></tr>}}
    <th>Thesis</th>
</table>
    <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