Template:Infobox: Difference between revisions

From Shut Down
Jump to navigation Jump to search
(Replaced content with ".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; }")
Tags: Replaced Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
.infobox {
<div class="infobox">
    background: #eee;
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
     border: 1px solid #aaa;
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
     float: right;
<table>{{#if:{{{param1|}}}|<tr>
    margin: 0 0 1em 1em;
     <th>Parameter 1</th>
     padding: 1em;
     <td>{{{param1}}}</td>
     width: 400px;
</tr>}}{{#if:{{{param2|}}}|<tr>
}
     <th>Parameter 2</th>
.infobox-title {
     <td>{{{param2}}}</td>
     font-size: 2em;
</tr>}}{{#if:{{{param3|}}}|<tr>
     text-align: center;
     <th>Parameter 3</th>
}
     <td>{{{param3}}}</td>
.infobox-image {
</tr>}}{{#if:{{{param4|}}}|<tr>
     text-align: center;
     <th>Parameter 4</th>
}
    <td>{{{param4}}}</td>
.infobox th {
</tr>}}{{#if:{{{param5|}}}|<tr>
    text-align: right;
     <th>Parameter 5</th>
     vertical-align: top;
     <td>{{{param5}}}</td>
     width: 120px;
</tr>}}</table>
}
</div>
.infobox td {
    vertical-align: top;
}

Revision as of 10:48, 26 January 2023

Infobox