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

Difference between revisions of "Template:InfoBox"

Template page
(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:{{{param1|}}}|<tr> <th>Parameter 1</th> <td>{{{param1}}}</td> </tr>}}{{#if:{{{param2|}}}|<tr> <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>...")
 
m (Fix owner not working)
 
(36 intermediate revisions by 2 users not shown)
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}}}|300px]]</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>|}}
<table>{{#if:{{{param1|}}}|<tr>
 
     <th>Parameter 1</th>
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
     <td>{{{param1}}}</td>
{{#if:{{{imgdesc|}}}|<div class="infobox-imgdesc">{{{imgdesc}}}</div>}}
</tr>}}{{#if:{{{param2|}}}|<tr>
{{#if:{{{category1|}}}|<div class="infobox-category">{{{category1}}}</div>}}
     <th>Parameter 2</th>
<table>
     <td>{{{param2}}}</td>
{{#if:{{{status|}}}|<tr>
</tr>}}{{#if:{{{param3|}}}|<tr>
    <th>Status</th>
     <th>Parameter 3</th>
    <td>{{{status}}}</td>
     <td>{{{param3}}}</td>
</tr>}}
</tr>}}{{#if:{{{param4|}}}|<tr>
{{#if:{{{locale|}}}|<tr>
     <th>Parameter 4</th>
    <th>Locale</th>
     <td>{{{param4}}}</td>
    <td>{{{locale}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
</tr>}}
     <th>Parameter 5</th>
{{#if:{{{transit_type|}}}|<tr>
     <td>{{{param5}}}</td>
    <th>Transit Type</th>
</tr>}}</table>
    <td>{{{transit_type}}}</td>
</tr>}}
{{#if:{{{owner|}}}|<tr>
    <th>Owner</th>
    <td>{{{owner}}}</td>
</tr>}}
{{#if:{{{ridership|}}}|<tr>
    <th>Ridership</th>
    <td>{{{ridership}}}</td>
</tr>}}
{{#if:{{{terminus|}}}|<tr>
    <th>Termini</th>
    <td>{{{terminus}}}</td>
</tr>}}
{{#if:{{{lines|}}}|<tr>
    <th>Number of lines</th>
    <td>{{{lines}}}</td>
</tr>}}
{{#if:{{{stations|}}}|<tr>
    <th>Number of stations</th>
    <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>
{{#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>
    <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>}}
<table>
{{#if:{{{rtimage|}}}|<div class="infobox-image">[[File:{{{rtimage}}}|250px]]</div>}}
</table>
</div>
</div>

Latest revision as of 01:21, 27 August 2024

InfoBox