Jump to content

Template:Infobox: Difference between revisions

CombustLem (talk | contribs)
No edit summary
CombustLem (talk | contribs)
No edit summary
Line 1: Line 1:
<style>
{| style="float:right; border:1px solid black; width:270px"
.infobox {
!colspan="2" | Infobox
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|-
  font-size: 88%;
!colspan="2" | [[File:Mike_real.png|260px]]
  border: 1px solid #aaa;
|-
  background-color: #f8f9fa;
! Info
  padding: 8px;
| Stuff
  width: 300px;
|-
  border-collapse: collapse;
! More Info
  margin: 0 0 1em 1em;
| More Stuff
  float: right;
|-
}
! And Info
 
| Again Stuff
.infobox th {
|}
  background-color: #a2a9b1;
  color: white;
  font-weight: bold;
  padding: 0.3em 0.6em;
  text-align: center;
  font-size: 110%;
  border: 1px solid #888;
}
 
.infobox td {
  border: 1px solid #888;
  padding: 0.25em 0.6em;
  vertical-align: top;
}
 
.infobox caption {
  font-weight: bold;
  font-size: 110%;
  margin-bottom: 0.5em;
  caption-side: top;
}
 
.infobox-image {
  margin: 0 auto 0.5em auto;
  text-align: center;
}
 
.infobox-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
 
</style>
 
<table class="infobox" role="presentation">
  <caption>{{{title|Infobox}}}</caption>
  {{#if:{{{image|}}}
    | <tr>
        <td class="infobox-image" colspan="2">
          [[File:{{{image}}}|frameless|alt={{{title}}}]]
        </td>
      </tr>
  }}
  {{#if:{{{caption|}}}
    | <tr>
        <td colspan="2" style="text-align:center; font-style:italic; font-size: 90%; padding-bottom: 0.5em;">
          {{{caption}}}
        </td>
      </tr>
  }}
  {{#if:{{{label1|}}}
    | <tr>
        <th scope="row">{{{label1}}}</th>
        <td>{{{data1}}}</td>
      </tr>
  }}
  {{#if:{{{label2|}}}
    | <tr>
        <th scope="row">{{{label2}}}</th>
        <td>{{{data2}}}</td>
      </tr>
  }}
  {{#if:{{{label3|}}}
    | <tr>
        <th scope="row">{{{label3}}}</th>
        <td>{{{data3}}}</td>
      </tr>
  }}
  {{#if:{{{label4|}}}
    | <tr>
        <th scope="row">{{{label4}}}</th>
        <td>{{{data4}}}</td>
      </tr>
  }}
  {{#if:{{{label5|}}}
    | <tr>
        <th scope="row">{{{label5}}}</th>
        <td>{{{data5}}}</td>
      </tr>
  }}
</table>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.