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

Difference between revisions of "Template:InfoBox"

Template page
m (Fix owner not working)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
{{#if:{{{colorline1|}}}|<div style="margin-top:5px;height: 6px;width:100%;background-color:{{{colorline1}}}"></div>|}} {{#if:{{{colorline2|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline2}}}"></div>|}} {{#if:{{{colorline3|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline3}}}"></div>|}} {{#if:{{{colorline4|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline4}}}"></div>|}} {{#if:{{{colorline5|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline5}}}"></div>|}} {{#if:{{{colorline6|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline6}}}"></div>|}} {{#if:{{{colorline7|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline7}}}"></div>|}} {{#if:{{{colorline8|}}}|<div style="height: 6px;width:100%;background-color:{{{colorline8}}}"></div>|}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
{{#if:{{{rtimage|}}}|<div class="infobox-image">[[File:{{{rtimage}}}|250px]]</div>}}
{{#if:{{{imgdesc|}}}|<div class="infobox-imgdesc">{{{imgdesc}}}</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:{{{category3|}}}|<div class="infobox-category">{{{category3}}}</div>}}
{{#if:{{{category4|}}}|<div class="infobox-category">{{{category4}}}</div>}}
<table>
<table>
{{#if:{{{status|}}}|<tr>
    <th>Status</th>
    <td>{{{status}}}</td>
</tr>}}
{{#if:{{{locale|}}}|<tr>
{{#if:{{{locale|}}}|<tr>
     <th>Locale</th>
     <th>Locale</th>
     <td>{{{locale}}}</td>
     <td>{{{locale}}}</td>
</tr>}}
</tr>}}
{{#if:{{{transit_type|}}}|<tr>
{{#if:{{{transit_type|}}}|<tr>
     <th>Transit Type</th>
     <th>Transit Type</th>
     <td>{{{transit_type}}}</td>
     <td>{{{transit_type}}}</td>
</tr>}}
</tr>}}
 
{{#if:{{{owner|}}}|<tr>
{{#if:{{{operators|}}}|<tr>
     <th>Owner</th>
     <th>Operator(s)</th>
     <td>{{{owner}}}</td>
     <td>{{{operators}}}</td>
</tr>}}
</tr>}}
{{#if:{{{track_gauge|}}}|<tr>
    <th>Track gauge</th>
    <td>{{{track_gauge}}}</td>
</tr>}}
{{#if:{{{rolling_stock|}}}|<tr>
    <th>Rolling stock</th>
    <td>{{{rolling_stock}}}</td>
</tr>}}
{{#if:{{{depots|}}}|<tr>
    <th>Depot(s)</th>
    <td>{{{depots}}}</td>
</tr>}}
{{#if:{{{ridership|}}}|<tr>
{{#if:{{{ridership|}}}|<tr>
     <th>Ridership</th>
     <th>Ridership</th>
     <td>{{{ridership}}}</td>
     <td>{{{ridership}}}</td>
</tr>}}
</tr>}}
{{#if:{{{linetype|}}}|<tr>
    <th>Type</th>
    <td>{{{linetype}}}</td>
</tr>}}
{{#if:{{{terminus|}}}|<tr>
{{#if:{{{terminus|}}}|<tr>
     <th>Termini</th>
     <th>Termini</th>
     <td>{{{terminus}}}</td>
     <td>{{{terminus}}}</td>
</tr>}}
</tr>}}
{{#if:{{{lines|}}}|<tr>
{{#if:{{{lines|}}}|<tr>
     <th>Number of lines</th>
     <th>Number of lines</th>
     <td>{{{lines}}}</td>
     <td>{{{lines}}}</td>
</tr>}}
</tr>}}
{{#if:{{{stations|}}}|<tr>
{{#if:{{{stations|}}}|<tr>
     <th>Number of stations</th>
     <th>Number of stations</th>
     <td>{{{stations}}}</td>
     <td>{{{stations}}}</td>
</tr>}}
</tr>}}
{{#if:{{{began_operation|}}}|<tr>
{{#if:{{{began_operation|}}}|<tr>
     <th>Began Operation</th>
     <th>Began Operation</th>
     <td>{{{began_operation}}}</td>
     <td>{{{began_operation}}}</td>
</tr>}}
</tr>}}
{{#if:{{{ended_operation|}}}|<tr>
{{#if:{{{ended_operation|}}}|<tr>
     <th>Ended Operation</th>
     <th>Ended Operation</th>
     <td>{{{ended_operation}}}</td>
     <td>{{{ended_operation}}}</td>
</tr>}}
</tr>}}
 
{{#if:{{{system_length|}}}|<tr>
    <th>System Length</th>
    <td>{{{system_length}}}</td>
</tr>}}
</table>
{{#if:{{{serviceCategory|}}}|<div class="infobox-category">{{{serviceCategory}}}</div>}}
<table>
{{#if:{{{line_type|}}}|<tr>
    <th>Type</th>
    <td>{{{line_type}}}</td>
</tr>}}
{{#if:{{{operators|}}}|<tr>
    <th>Operator(s)</th>
    <td>{{{operators}}}</td>
</tr>}}
{{#if:{{{rolling_stock|}}}|<tr>
    <th>Rolling stock</th>
    <td>{{{rolling_stock}}}</td>
</tr>}}
{{#if:{{{former_rolling_stock|}}}|<tr>
    <th>former rolling stock</th>
    <td>{{{former_rolling_stock}}}</td>
</tr>}}
{{#if:{{{depots|}}}|<tr>
    <th>Depot(s)</th>
    <td>{{{depots}}}</td>
</tr>}}
</table>
{{#if:{{{histCategory|}}}|<div class="infobox-category">{{{histCategory}}}</div>}}
<table>
{{#if:{{{lineopened|}}}|<tr>
{{#if:{{{lineopened|}}}|<tr>
     <th>Opened</th>
     <th>Opened</th>
Line 82: Line 86:
     <td>{{{lineclosed}}}</td>
     <td>{{{lineclosed}}}</td>
</tr>}}
</tr>}}
</table>


<table>
{{#if:{{{line_length|}}}|<tr>
    <th>Line Length</th>
    <td>{{{line_length}}}</td>
</tr>}}
{{#if:{{{track_gauge|}}}|<tr>
    <th>Track gauge</th>
    <td>{{{track_gauge}}}</td>
</tr>}}
{{#if:{{{electrification|}}}|<tr>
{{#if:{{{electrification|}}}|<tr>
     <th>Electrification</th>
     <th>Electrification</th>
     <td>{{{electrification}}}</td>
     <td>{{{electrification}}}</td>
</tr>}}
</tr>}}
 
{{#if:{{{operate_speed|}}}|<tr>
{{#if:{{{system_length|}}}|<tr>
     <th>Operating speed</th>
     <th>System Length</th>
     <td>{{{operate_speed}}}</td>
     <td>{{{system_length}}}</td>
</tr>}}
</tr>}}
</table>
{{#if:{{{rtmapCategory|}}}|<div class="infobox-category">{{{rtmapCategory}}}</div>}}
<table>
{{#if:{{{rtimage|}}}|<div class="infobox-image">[[File:{{{rtimage}}}|250px]]</div>}}
</table>
</table>
</div>
</div>

Latest revision as of 01:21, 27 August 2024

InfoBox