Jump to content

Template:Basic Infobox: Difference between revisions

From The Final Nights
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><table class="infobox">
<includeonly><table class="infobox"><tr><th colspan="2" class="infobox-header" style="font-size: 125%; padding: 0.6em; text-align: center;">{{{name|{{PAGENAME}}}}}</th></tr>{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center; padding: 0.8em 0;">[[File:{{{image}}}|250px]]{{#if:{{{caption|}}}|<br/><small>{{{caption}}}</small>}}</td></tr><tr><td colspan="2" class="infobox-separator"></td></tr>}}{{#if:{{{occupation|}}}|<tr><th scope="row" style="text-align: left; padding: 8px 12px; width: 40%; font-size: 90%;">Occupation</th><td style="padding: 8px 12px; font-size: 90%;">{{{occupation}}}</td></tr>}}{{#if:{{{location|}}}|<tr><th scope="row" style="text-align: left; padding: 8px 12px; font-size: 90%;">Location</th><td style="padding: 8px 12px; font-size: 90%;">{{{location}}}</td></tr>}}{{#if:{{{footnotes|}}}|<tr><td colspan="2" class="infobox-separator"></td></tr><tr><td colspan="2" style="font-size: 85%; text-align: center; padding: 10px;">{{{footnotes}}}</td></tr>}}</table></includeonly>
  <tr>
    <th colspan="2" class="infobox-header" style="font-size: 125%; font-weight: bold; padding: 0.6em; text-align: center;">
      {{{name|{{PAGENAME}}}}}
    </th>
  </tr>
  {{#if:{{{image|}}}|
  <tr>
    <td colspan="2" style="text-align:center; padding: 0.8em 0;">
      [[File:{{{image}}}|250px]]
      {{#if:{{{caption|}}}| <br/><small>{{{caption}}}</small> }}
    </td>
  </tr>
  <tr><td colspan="2" class="infobox-separator" style="height: 0; padding: 0;"></td></tr>
  }}
  {{#if:{{{occupation|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 8px 12px; width: 40%; font-size: 90%;">Occupation</th>
    <td style="padding: 8px 12px; font-size: 90%;">{{{occupation}}}</td>
  </tr>
  }}
  {{#if:{{{location|}}}|
  <tr>
    <th scope="row" style="text-align: left; padding: 8px 12px; font-size: 90%;">Location</th>
    <td style="padding: 8px 12px; font-size: 90%;">{{{location}}}</td>
  </tr>
  }}
  {{#if:{{{footnotes|}}}|
  <tr><td colspan="2" class="infobox-separator" style="height: 0; padding: 0;"></td></tr>
  <tr>
    <td colspan="2" style="font-size: 85%; text-align: center; padding: 10px; color: #555;">
      {{{footnotes}}}
    </td>
  </tr>
  }}
</table>
</includeonly>

Revision as of 17:49, 13 May 2026