Difference between revisions of "Template:Infobox"

From Stellar Empire
Jump to navigation Jump to search
(Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} <table>{{#if:{...")
 
(Switch format to a tabled)
Line 1: Line 1:
<div class="infobox">
<table class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<caption class="infobox-title">{{{title|{{PAGENAME}}}}}</caption>
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<tbody>
<table>{{#if:{{{param1|}}}|<tr>
{{#if:{{{image|}}}|<tr class="infobox-image"><td colspan="2">[[File:{{{image}}}|300px]]</td></tr>}}
    <th>Parameter 1</th>
{{#if:{{{param1|}}}|<tr><th>Parameter 1</th><td>{{{param1}}}</td></tr>}}
    <td>{{{param1}}}</td>
</tbody>
</tr>}}{{#if:{{{param2|}}}|<tr>
</table>
    <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>

Revision as of 18:21, 30 November 2021

<tbody> </tbody>
Infobox