Template: Infobox STAline: Difference between revisions
From The Shire
No edit summary |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
<table class="infobox" style="width:320px; text-align:left; font-size:90%; border:1px solid #aaa; border-collapse:collapse; float:right; margin:0 0 1em 1em; padding:2px;"> | <table class="infobox" style="width:320px; text-align:left; font-size:90%; border:1px solid #aaa; border-collapse:collapse; float:right; margin:0 0 1em 1em; padding:2px;"> | ||
<tr> | |||
<th colspan="2" style="text-align:center; font-size:150% | <th colspan="2" style="text-align:center; font-size:150%; background-color:{{{color|#cccccc}}}; color:{{{text_color|#000}}};"> | ||
{{{name|Unnamed Line}}} | {{{name|Unnamed Line}}} | ||
</th> | </th> | ||
| Line 15: | Line 15: | ||
<tr> | <tr> | ||
<th colspan="2" style="text-align:center | <th colspan="2" style="text-align:center; background-color:{{{color|#cccccc}}}; color:{{{text_color|#000}}};"> | ||
Overview | Overview | ||
</th> | </th> | ||
| Line 33: | Line 33: | ||
<td>{{{status|Operational}}}</td> | <td>{{{status|Operational}}}</td> | ||
</tr> | </tr> | ||
{{#if:{{{ | {{#if:{{{serves|}}}| | ||
<tr> | <tr> | ||
<th> | <th>Serves</th> | ||
<td>{{{ | <td>{{{serves}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<tr> | <tr> | ||
<th colspan="2" style="text-align:center | <th colspan="2" style="text-align:center; background-color:{{{color|#cccccc}}}; color:{{{text_color|#000}}};"> | ||
Route | Route | ||
</th> | </th> | ||
| Line 70: | Line 70: | ||
<tr> | <tr> | ||
<th colspan="2" style="text-align:center | <th colspan="2" style="text-align:center; background-color:{{{color|#cccccc}}}; color:{{{text_color|#000}}};"> | ||
Operations & Technical | Operations & Technical | ||
</th> | </th> | ||
| Line 99: | Line 99: | ||
}} | }} | ||
</table> | </table> | ||
</includeonly> | </includeonly> | ||
| Line 108: | Line 107: | ||
=== Color Parameters === | === Color Parameters === | ||
* '''color''': Sets the background color for all headers. Use a 6-digit hexadecimal code (e.g., `#FF55FF`). | * '''color''': Sets the background color for all headers. Use a 6-digit hexadecimal code (e.g., `#FF55FF`) based on the STA line color. | ||
* '''text_color''': Manually set the text color for the headers. Use `white` for dark backgrounds and `black` for light backgrounds. It defaults to black if left blank. | * '''text_color''': Manually set the text color for the headers. Use `white` for dark backgrounds and `black` for light backgrounds. It defaults to black if left blank. | ||
| Line 115: | Line 114: | ||
{{Infobox STAline | {{Infobox STAline | ||
| name = | | name = | ||
| color = | text_color = | image = | | color = | ||
| text_color = | |||
| image = | |||
| image_width = | | image_width = | ||
| system = | | system = | ||
| type = | | type = | ||
| status = | | status = | ||
| | | serves = | ||
| start = | | start = | ||
| end = | | end = | ||
| Line 129: | Line 130: | ||
| length = | | length = | ||
| electrification = | | electrification = | ||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 15:14, 8 June 2025
Usage
This infobox is for individual train, metro, or other transit lines. Paste the code below onto a page and fill in the desired fields.
Color Parameters
- color: Sets the background color for all headers. Use a 6-digit hexadecimal code (e.g., `#FF55FF`) based on the STA line color.
- text_color: Manually set the text color for the headers. Use `white` for dark backgrounds and `black` for light backgrounds. It defaults to black if left blank.
Blank Syntax
{{Infobox STAline
| name =
| color =
| text_color =
| image =
| image_width =
| system =
| type =
| status =
| serves =
| start =
| end =
| stations =
| line_map =
| opened =
| operator =
| length =
| electrification =
}}