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

Difference between revisions of "Template:InfoBox"

Template page
m (Fix owner not working)
 
(20 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:{{{imgdesc|}}}|<div class="infobox-imgdesc">{{{imgdesc}}}</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>}}
<table>
<table>
{{#if:{{{status|}}}|<tr>
    <th>Status</th>
    <td>{{{status}}}</td>
</tr>}}
{{#if:{{{locale|}}}|<tr>
{{#if:{{{locale|}}}|<tr>
     <th>Locale</th>
     <th>Locale</th>
Line 13: Line 19:
     <td>{{{transit_type}}}</td>
     <td>{{{transit_type}}}</td>
</tr>}}
</tr>}}
{{#if:{{{operators|}}}|<tr>
{{#if:{{{owner|}}}|<tr>
     <th>Operator(s)</th>
     <th>Owner</th>
     <td>{{{operators}}}</td>
     <td>{{{owner}}}</td>
</tr>}}
{{#if:{{{track_gauge|}}}|<tr>
    <th>Track gauge</th>
    <td>{{{track_gauge}}}</td>
</tr>}}
</tr>}}
{{#if:{{{ridership|}}}|<tr>
{{#if:{{{ridership|}}}|<tr>
Line 45: Line 47:
     <td>{{{ended_operation}}}</td>
     <td>{{{ended_operation}}}</td>
</tr>}}
</tr>}}
{{#if:{{{lineopened|}}}|<tr>
    <th>Opened</th>
    <td>{{{lineopened}}}</td>
</tr>}}
{{#if:{{{lineclosed|}}}|<tr>
    <th>Closed</th>
    <td>{{{lineclosed}}}</td>
</tr>}}
{{#if:{{{electrification|}}}|<tr>
    <th>Electrification</th>
    <td>{{{electrification}}}</td>
</tr>}}
{{#if:{{{system_length|}}}|<tr>
{{#if:{{{system_length|}}}|<tr>
     <th>System Length</th>
     <th>System Length</th>
Line 71: Line 57:
     <th>Type</th>
     <th>Type</th>
     <td>{{{line_type}}}</td>
     <td>{{{line_type}}}</td>
</tr>}}
{{#if:{{{operators|}}}|<tr>
    <th>Operator(s)</th>
    <td>{{{operators}}}</td>
</tr>}}
</tr>}}
{{#if:{{{rolling_stock|}}}|<tr>
{{#if:{{{rolling_stock|}}}|<tr>
     <th>Rolling stock</th>
     <th>Rolling stock</th>
     <td>{{{rolling_stock}}}</td>
     <td>{{{rolling_stock}}}</td>
</tr>}}
{{#if:{{{former_rolling_stock|}}}|<tr>
    <th>former rolling stock</th>
    <td>{{{former_rolling_stock}}}</td>
</tr>}}
</tr>}}
{{#if:{{{depots|}}}|<tr>
{{#if:{{{depots|}}}|<tr>
Line 81: Line 75:
</tr>}}
</tr>}}
</table>
</table>
{{#if:{{{category3|}}}|<div class="infobox-category">{{{category3}}}</div>}}
{{#if:{{{histCategory|}}}|<div class="infobox-category">{{{histCategory}}}</div>}}
<table>
{{#if:{{{lineopened|}}}|<tr>
    <th>Opened</th>
    <td>{{{lineopened}}}</td>
</tr>}}
 
{{#if:{{{lineclosed|}}}|<tr>
    <th>Closed</th>
    <td>{{{lineclosed}}}</td>
</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>
    <th>Electrification</th>
    <td>{{{electrification}}}</td>
</tr>}}
{{#if:{{{operate_speed|}}}|<tr>
    <th>Operating speed</th>
    <td>{{{operate_speed}}}</td>
</tr>}}
</table>
{{#if:{{{rtmapCategory|}}}|<div class="infobox-category">{{{rtmapCategory}}}</div>}}
{{#if:{{{rtmapCategory|}}}|<div class="infobox-category">{{{rtmapCategory}}}</div>}}
<table>
<table>

Latest revision as of 01:21, 27 August 2024

InfoBox