Difference between revisions of "Template:InfoBox"
Template page
Views
Actions
Namespaces
Variants
Tools
m (Fix owner not working) |
|||
(8 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:{{{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:{{{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|}}}| | |||
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}} | {{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}} | ||
Line 14: | Line 7: | ||
{{#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 24: | Line 21: | ||
{{#if:{{{owner|}}}|<tr> | {{#if:{{{owner|}}}|<tr> | ||
<th>Owner</th> | <th>Owner</th> | ||
<td>{{{ | <td>{{{owner}}}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{ridership|}}}|<tr> | {{#if:{{{ridership|}}}|<tr> | ||
Line 68: | Line 65: | ||
<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 86: | Line 87: | ||
</tr>}} | </tr>}} | ||
</table> | </table> | ||
<table> | <table> | ||
{{#if:{{{line_length|}}}|<tr> | {{#if:{{{line_length|}}}|<tr> |
Latest revision as of 01:21, 27 August 2024
InfoBox