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

Difference between revisions of "Template:InfoBox"

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

Revision as of 20:51, 9 April 2022

InfoBox