Difference between revisions of "Template:Infobox"

From Space Haven Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<div class="infobox" style= "background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px;">
 
<div class="infobox" style= "background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px;">
 
<div class="infobox-title" style= "font-size: 2em; text-align: center;">{{{title|{{PAGENAME}}}}}</div>
 
<div class="infobox-title" style= "font-size: 2em; text-align: center;">{{{title|{{PAGENAME}}}}}</div>
<div class="infobox-image" style= "text-align: center;">[[File:{{{image}}}|100px]]</div>}}
+
<div class="infobox-image" style= "text-align: center;">[[File:{{{image}}}|100px]]</div>
 
<table>
 
<table>
</tr>}}{{#if:{{{param1|}}}|<tr>  
+
</tr>{{{param1|}}}<tr>  
 
     <th>Source</th>
 
     <th>Source</th>
 
     <td>{{{param1}}}</td>
 
     <td>{{{param1}}}</td>
</tr>}}{{#if:{{{param2|}}}|<tr>
+
</tr>{{{param2|}}}<tr>
 
     <th>Parameter 2</th>
 
     <th>Parameter 2</th>
 
     <td>{{{param2}}}</td>
 
     <td>{{{param2}}}</td>
</tr>}}{{#if:{{{param3|}}}|<tr>
+
</tr>{{{param3|}}}<tr>
 
     <th>Parameter 3</th>
 
     <th>Parameter 3</th>
 
     <td>{{{param3}}}</td>
 
     <td>{{{param3}}}</td>
</tr>}}{{#if:{{{param4|}}}|<tr>
+
</tr>{{{param4|}}}<tr>
 
     <th>Parameter 4</th>
 
     <th>Parameter 4</th>
 
     <td>{{{param4}}}</td>
 
     <td>{{{param4}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
+
</tr>{{{param5|}}}<tr>
 
     <th>Parameter 5</th>
 
     <th>Parameter 5</th>
 
     <td>{{{param5}}}</td>
 
     <td>{{{param5}}}</td>
</tr>}}</table>
+
</tr></table>
 
</div>
 
</div>

Revision as of 20:28, 17 April 2020

Infobox
[[File:{{{image}}}|100px]]
Source {{{param1}}}
Parameter 2 {{{param2}}}
Parameter 3 {{{param3}}}
Parameter 4 {{{param4}}}
Parameter 5 {{{param5}}}