Difference between revisions of "User:Jimcrypted/Infobox"

From DefiLlama
Jump to navigation Jump to search
 
Line 1: Line 1:
{{Infobox
.infobox {
| name     = {{{name|}}}
    background: #eee;
| image   = {{{image|}}}
    border: 1px solid #aaa;
| caption1 = {{{caption|}}}
    float: right;
 
    margin: 0 0 1em 1em;
| label1  = Former names
    padding: 1em;
|  data1  = {{{former_names|}}}
    width: 400px;
 
}
| header2  = General information
.infobox-title {
 
    font-size: 2em;
| label3  = Status
    text-align: center;
|  data3  = {{{status|}}}
}
... <!-- etc. -->
.infobox-image {
}}
    text-align: center;
}
.infobox th {
    text-align: right;
    vertical-align: top;
    width: 120px;
}
.infobox td {
     vertical-align: top;
}
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{param1|}}}|<tr>
    <th>Parameter 1</th>
    <td>{{{param1}}}</td>
</tr>}}{{#if:{{{param2|}}}|<tr>
    <th>Parameter 2</th>
    <td>{{{param2}}}</td>
</tr>}}{{#if:{{{param3|}}}|<tr>
    <th>Parameter 3</th>
    <td>{{{param3}}}</td>
</tr>}}{{#if:{{{param4|}}}|<tr>
    <th>Parameter 4</th>
    <td>{{{param4}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
    <th>Parameter 5</th>
    <td>{{{param5}}}</td>
</tr>}}</table>
</div>

Latest revision as of 02:16, 26 April 2022

.infobox {

   background: #eee;
   border: 1px solid #aaa;
   float: right;
   margin: 0 0 1em 1em;
   padding: 1em;
   width: 400px;

} .infobox-title {

   font-size: 2em;
   text-align: center;

} .infobox-image {

   text-align: center;

} .infobox th {

   text-align: right;
   vertical-align: top;
   width: 120px;

} .infobox td {

   vertical-align: top;

}

Jimcrypted/Infobox
{{#if:|
[[File:{{{image}}}|300px]]
}} {{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}
Parameter 1 {{{param1}}}
Parameter 2 {{{param2}}}
Parameter 3 {{{param3}}}
Parameter 4 {{{param4}}}
Parameter 5 {{{param5}}}