The District of Joban Difference between revisions of "Template:InfoBox"

Difference between revisions of "Template:InfoBox"

Template page
Line 2: Line 2:
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
{{#if:{{{category|}}}|<div class="infobox-category">{{{category}}}</div>}}
{{#if:{{{category1|}}}|<div class="infobox-category">{{{category1}}}</div>}}
<table>{{#if:{{{param1|}}}|<tr>
{{#if:{{{category2|}}}|<div class="infobox-category">{{{category2}}}</div>}}
     <th>Parameter 1</th>
{{#if:{{{category3|}}}|<div class="infobox-category">{{{category3}}}</div>}}
     <td>{{{param1}}}</td>
{{#if:{{{category4|}}}|<div class="infobox-category">{{{category4}}}</div>}}
</tr>}}{{#if:{{{param2|}}}|<tr>
<table>{{#if:{{{locale|}}}|<tr>
     <th>Parameter 2</th>
    <th>Locale</th>
     <td>{{{param2}}}</td>
    <td>{{{locale}}}</td>
</tr>}}{{#if:{{{param3|}}}|<tr>
</tr>}}{{#if:{{{transit_type|}}}|<tr>
     <th>Parameter 3</th>
    <th>Transit Type</th>
     <td>{{{param3}}}</td>
    <td>{{{transit_type}}}</td>
</tr>}}{{#if:{{{param4|}}}|<tr>
</tr>}}{{#if:{{{lines|}}}|<tr>
     <th>Parameter 4</th>
     <th>Number of lines</th>
     <td>{{{param4}}}</td>
     <td>{{{lines}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
</tr>}}{{#if:{{{stations|}}}|<tr>
     <th>Parameter 5</th>
     <th>Number of stations</th>
     <td>{{{param5}}}</td>
     <td>{{{stations}}}</td>
</tr>}}{{#if:{{{began_operation|}}}|<tr>
     <th>Began Operation</th>
     <td>{{{began_operation}}}</td>
</tr>}}{{#if:{{{ended_operation|}}}|<tr>
     <th>Ended Operation</th>
     <td>{{{ended_operation}}}</td>
</tr>}}{{#if:{{{system_length|}}}|<tr>
     <th>System Length</th>
     <td>{{{system_length}}}</td>
</tr>}}</table>
</tr>}}</table>
</div>
</div>

Revision as of 15:40, 9 April 2022

InfoBox