Template:Infobox STAline

From The Shire
Revision as of 15:01, 8 June 2025 by Taxcuts (talk | contribs) (Created page with "<includeonly> <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%; padding: 0.2em 0.4em; background-color:{{{color|#cccccc}}}; color:{{#ifexpr: (0.2126 * 0x{{#sub:{{{color|#cccccc}}}|1|2}}) + (0.7152 * 0x{{#sub:{{{color|#cccccc}}}|3|2}}) + (0.0722 * 0x{{#sub:{{{color|#cccccc}}}|5|2}}) > 149...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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.

About the `color` Parameter

The `color` parameter sets the background color for all headers. You must use a 6-digit hexadecimal code, including the `#`. The template will automatically set the text color to black or white for contrast. If you leave it blank, it will default to a light grey.

Blank Syntax

{{Infobox STA
| name            = 
| color           = 
| image           = 
| image_width     = 
| system          = 
| type            = 
| status          = 
| locale          = 
| start           = 
| end             = 
| stations        = 
| line_map        = 
| opened          = 
| operator        = 
| length          = 
| electrification = 
}}