Difference between revisions of "Template:Infobox bus line/sandbox"
Jump to navigation
Jump to search
imported>Sameboat |
imported>WOSlinker (tidy style for better HTML5 compatibility) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{infobox |
| − | | | + | | above = {{br separated entries |
| − | | | + | |1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_width|}}}|sizedefault=frameless|alt={{{logo_alt|}}}}} |
| − | | | + | |2 = <div style="{{#if:{{{logo|}}}|margin-top:.2em}}">{{{number|{{PAGENAME}}}}}</div> |
| − | + | }} | |
| − | + | | abovestyle = background-color:{{{bgcolor|{{{box_color|#efefef}}}}}};color:{{{titlecolor|black}}};padding:5px;text-align:center;font-size:1.5em | |
| − | + | | bodystyle = width:{{{box_width|25em}}}; font-size: 90%; | |
| − | + | | subheader = {{{subheader|}}} | |
| − | + | | subheader2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{operatorlogo|}}}|size={{{oplogo_width|}}}|sizedefault=frameless}} | |
| − | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=frameless|alt={{{image_alt|}}}}} | |
| − | + | | caption = {{{caption|}}} | |
| − | + | | headerstyle = background-color: #efefef | |
| − | + | ||
| − | + | | header1 = {{#if:{{{system|}}}{{{operator|}}}{{{garage|}}}{{{vehicle|}}}{{{livery|}}}{{{pvr|}}}{{{status|}}}{{{open|}}}{{{close|}}}{{{predecessors|}}}{{{night|}}}|Overview}} | |
| − | + | ||
| − | + | | label2 = System | |
| − | + | | data2 = {{{system|}}} | |
| − | + | | label3 = Operator | |
| − | + | | data3 = {{{operator|}}} | |
| − | + | | label4 = {{#if:{{{depot|}}}|Depot|Garage}} | |
| − | + | | data4 = {{#if:{{{depot|}}}|{{{depot|}}}|{{{garage|}}}}} | |
| − | + | | label5 = Vehicle | |
| − | + | | data5 = {{{vehicle|}}} | |
| − | + | | label6 = Livery | |
| − | + | | data6 = {{{livery|}}} | |
| − | + | | label7 = Peak vehicle requirement | |
| − | + | | data7 = {{{pvr|}}} | |
| − | + | | label8 = Status | |
| − | + | | data8 = {{{status|}}} | |
| − | + | | label9 = Began service | |
| − | + | | data9 = {{{open|}}} | |
| − | + | | label10 = Ended service | |
| − | + | | data10 = {{{close|}}} | |
| − | + | | label11 = Predecessors | |
| − | + | | data11 = {{{predecessors|}}} | |
| − | + | | label12 = Night-time | |
| − | + | | data12 = {{{night|}}} | |
| − | + | ||
| − | + | | header19 = {{#if:{{{locale|}}}{{{communities|}}}{{{landmarks|}}}{{{start|}}}{{{via|}}}{{{end|}}}{{{length|}}}{{{otherroutes|}}}{{{compete|}}}|Route}} | |
| − | + | ||
| − | + | | label20 = Route type | |
| − | + | | data20 = {{{routetype|}}} | |
| − | + | | label21 = Locale | |
| − | + | | data21 = {{{locale|}}} | |
| − | + | | label22 = Communities served | |
| − | + | | data22 = {{{communities|}}} | |
| − | + | | label23 = Landmarks served | |
| − | + | | data23 = {{{landmarks|}}} | |
| − | + | | label24 = {{#if:{{{termini|}}}|Termini|Start}} | |
| − | + | | data24 = {{#if:{{{termini|}}}|{{{termini}}}|{{{start|}}}}} | |
| − | + | | label25 = Via | |
| − | + | | data25 = {{{via|}}} | |
| − | + | | label26 = {{#if:{{{termini|}}}||End}} | |
| − | + | | data26 = {{#if:{{{termini|}}}||{{{end|}}}}} | |
| − | + | | label27 = Length | |
| − | + | | data27 = {{{length|}}} | |
| − | <table style="width:100%; margin:0; background-color:#F9F9F9" class="collapsible {{{map_state|}}}"> | + | | label28 = Other routes |
| − | <tr><th style="background-color:#efefef; text-align: center;">{{{map_name| | + | | data28 = {{{otherroutes|}}} |
| − | <tr><td | + | | label29 = Competition |
| − | + | | data29 = {{{compete|}}} | |
| + | |||
| + | | header30 = {{#if:{{{level|}}}{{{level1|}}}{{{frequency|}}}{{{alt_frequency|}}}{{{time|}}}{{{day|}}}{{{ridership|}}}{{{fare|}}}{{{cash|}}}|{{#if:{{{ibus|}}}|<!--[[File:Ibus icon.PNG|25px|right|link=London iBus system]]-->}}Service}} | ||
| + | |||
| + | | label31 = Level | ||
| + | | data31 = {{{level|}}} | ||
| + | | label32 = Alt. level | ||
| + | | data32 = {{{level1|}}} | ||
| + | | label33 = Frequency | ||
| + | | data33 = {{{frequency|}}} | ||
| + | | label34 = Weekend frequency | ||
| + | | data34 = {{{alt_frequency|}}} | ||
| + | | label35 = Journey time | ||
| + | | data35 = {{{time|}}} | ||
| + | | label36 = Operates | ||
| + | | data36 = {{{day|}}} | ||
| + | | label37 = {{nowrap|Zone(s)}} | ||
| + | | data37 = {{{zone|}}} | ||
| + | | label38 = Daily ridership | ||
| + | | data38 = {{{ridership|}}} | ||
| + | | label39 = Annual patronage | ||
| + | | data39 = {{{annualpatronage|}}} | ||
| + | | label40 = Fare | ||
| + | | data40 = {{{fare|}}} | ||
| + | | label41 = Cash | ||
| + | | data41 = {{{cash|}}} | ||
| + | | label42 = Transfers | ||
| + | | data42 = {{{transfers|}}} | ||
| + | | label43 = Timetable | ||
| + | | data43 = {{{timetable_link|}}} | ||
| + | | label44 = Map | ||
| + | | data44 = {{{map_link|}}} | ||
| + | | belowstyle = vertical-align:middle;text-align:center;background-color:#efefef;font-size:.9em | ||
| + | | below = {{#if:{{{map|}}}{{{previous_line|}}}{{{next_line|}}}| | ||
| + | <table style="width:100%; margin:0; background-color:#F9F9F9;{{#if:{{{map|}}}||display:none;}}" class="collapsible {{{map_state|collapsed}}}"> | ||
| + | <tr><th style="background-color:#efefef; text-align:center;">{{#if:{{{map_name|}}}|{{{map_name}}}|Route map}}</th></tr> | ||
| + | <tr><td style="text-align:center;"> | ||
| + | {{{map}}} | ||
</td></tr> | </td></tr> | ||
</table> | </table> | ||
| − | + | <table style="width:100%;{{#if:{{{previous_line|}}}{{{next_line|}}}||display:none;}}"> | |
| − | {{#if:{{{ | + | <td style="text-align:left;{{#if:{{{previous_line|}}}||display:none;}}">{{{previous_line}}} ← </td> |
| − | < | + | <td style="text-align:right;{{#if:{{{next_line|}}}||display:none;}}"> → {{{next_line}}}</td> |
| − | < | + | </table>}}{{{notes|}}} |
| − | + | }}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --></noinclude> | |
| − | {{{ | ||
| − | </td | ||
| − | </table> | ||
| − | }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | < | ||
| − | |||
| − | |||
| − | {{ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 21:14, 29 June 2015
Infobox bus line/sandbox |
|---|
| This is the template sandbox page for Template:Infobox bus line (diff). |
| This template uses Lua: |
All parameters
Template:Parameter names example
{{Infobox bus line
| logo = <!-- bus logo (ex: Image_name.png) -->
| logo_width = <!-- width of bus logo -->
| logo_alt = <!-- logo image alternate text (only works if logo_width is supplied) -->
| number = <!-- bus number or name of route (defaults to article name) -->
| bgcolor = <!-- background color for infobox title (hex codes need a '#', i.e. #00ff33 not 00ff33) -->
| titlecolor = <!-- color of the title text (hex codes need a '#') -->
| box_width = <!-- width of the infobox itself -->
| subheader = <!-- motto or alternate route title, etc. -->
| operatorlogo = <!-- operator logo (ex: Image_name.png) -->
| oplogo_width = <!-- width of the operator logo image -->
| image = <!-- photo of the bus (ex: Image_name.png) -->
| image_width = <!-- width of the main image -->
| image_alt = <!-- alternate text for main image -->
| caption = <!-- caption for the main image -->
| system =
| operator =
| garage =
| vehicle =
| livery =
| pvr =
| status =
| open = <!-- {{Start date| YYYY| MM| DD| df=y}} -->
| close = <!-- {{End date| YYYY| MM| DD| df=y}} -->
| predecessors =
| former_operator =
| night =
| routetype = <!-- or | routes = -->
| locale =
| communities =
| landmarks =
| termini = <!-- used when route starts and stops at a single location, overrides the start and end parameters -->
| start =
| via =
| end =
| length =
| stations = <!-- Overrides stops if used -->
| stops = <!-- Overrides stations if used --->
| otherroutes =
| compete =
| level =
| level1 =
| frequency =
| alt_frequency =
| time =
| day =
| zone =
| ridership =
| dailyridership =
| annualpatronage =
| transfers =
| timetable_link = <!-- external link to an online timetable (ex: [http://www.example.com/timetable.html Line xx timetable]) -->
| map_link = <!-- external link to an online map (ex: [http://www.example.com/map.html Line xx map]) -->
| map = <!-- map image (ex: [[File:Image_name.png| 200px]]) or {{Infobox rdt}} -->
| map_state = <!-- controls map starting visibility (use 'collapsed' to start hidden), defaults to hidden -->
| map_name = <!-- name of the map (defaults to 'Route map') -->
| previous_line = <!-- link to article of previous route if sequential -->
| system_nav = <!-- link to article of system-->
| next_line = <!-- link to article of next route if sequential -->
| notes = <!-- anything special in small font, centered at the bottom of the infobox -->
}}
Example
| 787 | ||||||
|---|---|---|---|---|---|---|
![]() Best damn bus in town! | ||||||
| Overview | ||||||
| System | MBTA | |||||
| Operator | Jim | |||||
| Garage | Barton's | |||||
| Vehicle | 898 Fewler | |||||
| Livery | Shield and Wheat | |||||
| Peak vehicle requirement | 10 | |||||
| Status | defunct | |||||
| Began service | 1981 | |||||
| Ended service | 2010 | |||||
| Predecessors | Trolley #8 | |||||
| Night-time | 789 alt | |||||
| Route | ||||||
| Locale | Boston | |||||
| Communities served | Back Bay, South End | |||||
| Landmarks served | Memorial Hospital | |||||
| Start | Maple St. | |||||
| Via | Carnegie Rd. | |||||
| End | Elm St. | |||||
| Length | 8 mi (13 km) | |||||
| Other routes | 889, 908 | |||||
| Service | ||||||
| Level | Daily | |||||
| Frequency | Hourly | |||||
| Weekend frequency | Every two hours | |||||
| Journey time | 45 minutes | |||||
| Operates | 6:00 am – 8:00 pm | |||||
| Ridership | 1,000 | |||||
| ||||||
{{Infobox bus line
| number = 787
| logo = Bad Title Example.png
| logo_width = 100
| titlecolor = white
| bgcolor = #008000
| image = Placeholder.png
| image_width = 150
| image_alt = Alternate text
| caption = ''Best damn bus in town!''
| system = MBTA
| operator = Jim
| garage = Barton's
| vehicle = 898 Fewler
| livery = Shield and Wheat
| pvr = 10
| status = defunct
| open = 1981
| close = 2010
| predecessors = Trolley #8
| night = 789 alt
| locale = Boston
| communities = Back Bay, South End
| landmarks = Memorial Hospital
| start = Maple St.
| via = Carnegie Rd.
| end = Elm St.
| length = {{convert| 8| mi| km| abbr=on}}
| stops = 43
| otherroutes = 889, 908
| level = Daily
| frequency = Hourly
| alt_frequency = Every two hours
| time = 45 minutes
| day = 6:00 am – 8:00 pm
| ridership = 1,000
| map = [[File:Placeholder.png| 200px]]
| map_name = 787 route
| previous_line = [[786]]
| system_nav = MBTA
| next_line = [[788]]
| notes = {{portal-inline| Transportation| size=tiny}}
}}
Tracking category
Supporting template
| The above documentation is transcluded from Template:Infobox bus line/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
