Template: Infobox STAline: Difference between revisions

From The Shire
Jump to: navigation, search
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..."
 
Taxcuts (talk | contribs)
No edit summary
Line 111: Line 111:
=== Blank Syntax ===
=== Blank Syntax ===
<pre>
<pre>
{{Infobox STA
{{Infobox STAline
| name            =  
| name            =  
| color          =  
| color          =  

Revision as of 15:02, 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.

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 STAline
| name            = 
| color           = 
| image           = 
| image_width     = 
| system          = 
| type            = 
| status          = 
| locale          = 
| start           = 
| end             = 
| stations        = 
| line_map        = 
| opened          = 
| operator        = 
| length          = 
| electrification = 
}}