Jump to content

Template:Basic Infobox: Difference between revisions

From The Final Nights
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width: 22em; border: 1px solid #a2a9b1; background-color: #f8f9fa; float: right; margin: 0 0 1em 1em; padding: 0.2em; border-collapse: collapse;"
<table class="infobox" style="width: 22em; border: 1px solid #a2a9b1; background-color: #f8f9fa; float: right; margin: 0 0 1em 1em; padding: 0.2em; border-collapse: collapse; color: black;">
|-
 
! colspan="2" style="font-size: 125%; font-weight: bold; padding: 0.4em; text-align: center; background-color: #cedff2;" | {{{name|{{PAGENAME}}}}}
  <tr>
|-
    <th colspan="2" style="font-size: 125%; font-weight: bold; padding: 0.4em; text-align: center; background-color: #cedff2; border-bottom: 1px solid #aaa;">
| colspan="2" style="border-top: 1px solid #aaa;" |
      {{{name|{{PAGENAME}}}}}
|-
    </th>
{{#if:{{{image|}}}|
  </tr>
{{!}} colspan="2" style="text-align:center; padding: 0.5em;" {{!}} [[File:{{{image}}}|250px]]
 
{{#if:{{{caption|}}}| <br/><small>{{{caption}}}</small> }}
  {{#if:{{{image|}}}|
{{!}}-
  <tr>
{{!}} colspan="2" style="border-top: 1px solid #aaa;" {{!}}
    <td colspan="2" style="text-align:center; padding: 0.8em 0;">
}}
      [[File:{{{image}}}|250px]]
|-
      {{#if:{{{caption|}}}| <br/><small>{{{caption}}}</small> }}
{{#if:{{{occupation|}}}|
    </td>
! scope="row" style="text-align: left; padding: 4px;" | Occupation
  </tr>
| style="padding: 4px;" | {{{occupation}}}
  <tr><td colspan="2" style="border-top: 1px solid #aaa;"></td></tr>
|-
  }}
}}
 
{{#if:{{{location|}}}|
  {{#if:{{{occupation|}}}|
! scope="row" style="text-align: left; padding: 4px;" | Location
  <tr>
| style="padding: 4px;" | {{{location}}}
    <th scope="row" style="text-align: left; padding: 4px; width: 40%;">Occupation</th>
|-
    <td style="padding: 4px;">{{{occupation}}}</td>
}}
  </tr>
| colspan="2" style="border-top: 1px solid #aaa;" |  
  }}
|-
 
| colspan="2" style="font-size: 90%; text-align: center; padding: 4px;" | {{{footnotes|}}}
  {{#if:{{{location|}}}|
|}
  <tr>
    <th scope="row" style="text-align: left; padding: 4px;">Location</th>
    <td style="padding: 4px;">{{{location}}}</td>
  </tr>
  }}
 
  <tr><td colspan="2" style="border-top: 1px solid #aaa;"></td></tr>
  {{#if:{{{footnotes|}}}|
  <tr>
    <td colspan="2" style="font-size: 90%; text-align: center; padding: 4px;">
      {{{footnotes}}}
    </td>
  </tr>
  }}
 
</table>
</includeonly>
</includeonly>

Revision as of 17:39, 13 May 2026