Difference between revisions of "Template:Infobox"

From The Wiki
Jump to navigation Jump to search
 
(54 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<style>
 
.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;
 
}</style>
 
 
 
<div class="infobox">
 
<div class="infobox">
 
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
 
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{param1|}}}|<tr>
+
 
     <th>Parameter 1</th>
+
<table style="width: 100%; border-bottom: 1px solid #ddd;">
     <td>{{{param1}}}</td>
+
{{#if:{{{dob|}}}|<tr>
</tr>}}{{#if:{{{param2|}}}|<tr>
+
    <th>Birthday</th>
     <th>Parameter 2</th>
+
    <td>{{{dob}}}</td>
     <td>{{{param2}}}</td>
+
</tr>}}{{#if:{{{Location|}}}|<tr>
</tr>}}{{#if:{{{param3|}}}|<tr>
+
    <th>Location</th>
     <th>Parameter 3</th>
+
    <td>{{{Location}}}</td>
     <td>{{{param3}}}</td>
+
</tr>}}{{#if:{{{partner|}}}|<tr>
</tr>}}{{#if:{{{param4|}}}|<tr>
+
     <th>Partner(s)</th>
     <th>Parameter 4</th>
+
     <td>{{{partner}}}</td>
     <td>{{{param4}}}</td>
+
</tr>}}{{#if:{{{Aliases|}}}|<tr>
</tr>}}{{#if:{{{param5|}}}|<tr>
+
     <th> Aliases</th>
     <th>Parameter 5</th>
+
     <td>{{{Aliases}}}</td>
     <td>{{{param5}}}</td>
+
</tr>}}{{#if:{{{Favorite Games|}}}|<tr>
 +
     <th> Favorite Games</th>
 +
     <td>{{{Favorite Games}}}</td>
 +
</tr>}}{{#if:{{{Telegram|}}}|<tr>
 +
     <th>[[File:telegramicon.webp|16px]] Telegram</th>
 +
     <td>[http://t.me/{{{Telegram}}} {{{Telegram}}}]</td>
 +
</tr>}}{{#if:{{{slname |}}}|<tr>
 +
    <th>[[File:slicon.png|16px]] SL Handle</th>
 +
    <td>[http://my.secondlife.com/{{{slname}}} {{{slname}}}]</td>
 +
</tr>}}{{#if:{{{Phone|}}}|<tr>
 +
     <th>Phone</th>
 +
     <td>{{{Phone}}}</td>
 
</tr>}}</table>
 
</tr>}}</table>
 
</div>
 
</div>

Latest revision as of 02:10, 21 May 2022

Infobox