Прејди на содржината

Предлошка:Инфокутија Железничка линија

Од Википедија — слободната енциклопедија
Инфокутија Железничка линија
Преглед
Опслужување
Историја
Технички
Икона за документација Документација за предлошка[преглед] [уреди] [историја] [превчитај]
Оваа предлошка содржи сложени примероци на предложна синтакса.
Ве молиме не ја менувајте синтаксата доколку не сте сосем запознаени со нејзиниот распоред и расчленувачките функции и сте подготвени да ги поправите или вратите сите пореметувања ако се појават неочекувани резултати.
Сите испробувања со измени врешете ги било во предложниот песочник или во вашиот кориснички простор пред да менувате било што тука.

Please use Template:Infobox rail line freight for freight lines (includes historic data).

Parameter list and definitions

[уреди извор]
ParameterRequiredDefinition
box_widthNoWidth of infobox, default: 25em; Note: use auto for automatic width (nb long image captions will not wrap if |box_width=auto is specified)
nameNoName of rail line; default:Article Name
colorNoColor of rail line
logoNoFilename of image for the logo
logo_widthNoSize of logo, default: 200px
logo_altNoAlt text for logo, for visually impaired readers; see WP:ALT. This should be present if "logo=" is present.
imageNoFilename of image
image_widthNoSize of image, default: 250px
image_altNoAlt text for image. This should be present if "image=" is present.
captionNoCaption of image
typeNoType of transit system. Types may include (one or more):
systemNoName of transit system the rail line is part of
statusNoStatus of rail line
localeNoCity or region transit system is located
startNoName of starting terminal station
endNoName of ending terminal station
stationsNoNumber of stations/stops
routesNoService routes of rail line
ridershipNoDaily system ridership
ridership2NoGeneric ridership field for non-daily values
openNoDate rail line opened
closeNoDate rail line closed
reopenNoDate rail line reopened after closure
ownerNoOwner of rail line
operatorNoOperator(s) of rail line
characterNo
depotNoName of traction maintenance depot(s) of rail line
stockNoTypes of rolling stock used on the rail line
linelengthNoLine length (use {{mi to km}} or {{km to mi}} to display both U.S. and metric units, alternatively 1 kм (0.6 ми) or 1 ми (1.6 kм))
tracklengthNoTrack length (use {{mi to km}} or {{km to mi}} to display both U.S. and metric units, alternatively 1 kм (0.6 ми) or 1 ми (1.6 kм))
notrackNoNumber of tracks
gaugeNoRail gauge (use template – see Category:Rail transport gauge templates)
ogaugeNoOld rail gauge (use template – see Category:Rail transport gauge templates)
minradiusNoMinimum radius of curvature (use template:convert)
racksystemNoRack system. Examples: Abt or Strub, as the case may be.
elNoElectrification system (e.g. Third rail, Overhead catenary) and/or voltage
trainnumberNoTrain number(s) running as shown in official timetables and printed on tickets.
routenumberNoRoute number(s) indicated in timetables to identify the stretch of track, in Germany usually referred as Kursbuchstrecke
linenumberNoLine number(s). Identifier(s) of set of trains with same service, usually seen in suburban trains. eg. S7, IENA, 7, Line A. Not to be confused with the technical track.
speedNoMaximum or operating speed of the rail line (use {{convert|0|mph|km/h|abbr=on}} or {{convert|0|km/h|mph|abbr=on}} to display both U.S. and metric units))
elevationNoHighest elevation of the rail line
websiteNoWebsite
mapNoMap of line
map_nameNoTitle of map; default: Route map
map_stateNoShows or hides map. Use show or collapsed

Copy and paste

[уреди извор]
{{Infobox rail line
 | box_width   =
 | name        =
 | color       =
 | logo        =
 | logo_width  =
 | logo_alt    =
 | image       =
 | image_width =
 | image_alt   =
 | caption     =
 | type        =
 | system      =
 | status      =
 | locale      =
 | start       =
 | end         =
 | stations    =
 | routes      =
 | ridership   =
 | open        =
 | close       =
 | owner       =
 | operator    =
 | character   =
 | depot       =
 | stock       =
 | linelength  = {{mi to km|0|abbr=yes|precision=2|wiki=yes}}
 | tracklength = {{mi to km|0|abbr=yes|precision=2|wiki=yes}}
 | notrack     =
 | gauge       = {{RailGauge|sg|al=on|lk=on}}
 | old gauge   =
 | minradius   =
 | racksystem  =
 | route number=
 | el          =
 | speed       = {{convert|0|mph|km/h|abbr=on}}
 | elevation   =
 | website     =
 | map         =
 | map_state   = collapsed
}}

Пример

[уреди извор]
Алфа
Глобус-сложувалка, со текст „Википедија, слободна енциклопедија“
P L A C E H O L D E R .
Опис на пополнувачот
Преглед
СостојбаУкината
МестоЊуарк
Последни станициСтаница A
Станица M
Станици15
Опслужување
ВидЛека железница
СистемАБЦ Транзит
Сообраќаат1
Превозник/циBCT Transport
Историја
Пуштена22 јуни 1904
Затворена8 март 1942
Технички
Колосек1.435 мм (4 ст 8+1⁄2 in) нормален колосек
План на трасата
P L A C E H O L D E R .
{{Инфокутија Железничка линија
 | name        = Алфа
 | color       = 003399
 | logo        = wiki.png
 | logo_width  = 100px
 | logo_alt    = Глобус-сложувалка, со текст „Википедија, слободна енциклопедија“
 | image       = placeholder.png
 | image_width =
 | image_alt   = P L A C E H O L D E R .
 | caption     = Опис на пополнувачот
 | type        = [[Лека железница]]
 | system      = АБЦ Транзит
 | status      = Укината
 | locale      = [[Њуарк (Њу Џерси)|Њуарк]]
 | start       = Станица A
 | end         = Станица M
 | stations    = 15
 | routes      = 1
 | ridership   = 239.200
 | open        = 22 јуни 1904
 | close       = 8 март 1942
 | owner       =
 | operator    = BCT Transport
 | character   =
 | depot       =
 | stock       =
 | linelength  = {{mi to km|13.8|abbr=yes|precision=2|wiki=yes}}
 | tracklength =
 | notrack     =
 | gauge       = {{RailGauge|sg|al=on|lk=on}}
 | el          =
 | speed       =
 | elevation   =
 | map         = [[Податотека:placeholder.png|200px|alt=P L A C E H O L D E R .]]
 | map_name    =
 | map_state   = collapsed
}}


Including route diagram template in map parameter

[уреди извор]

If the route map made using project:Route diagram templates included in the infobox "breaks apart" on every row in browser such as Microsoft Internet Explorer 7 like the left one, apply the template {{infobox rdt}} like this:

|map = {{Infobox rdt|ROUTE DIAGRAM TEMPLATE NAME}}

breaking rowsfixed
Инфокутија Железничка линија
Преглед
Опслужување
Историја
Технички
План на трасата
Предлошка:Needhammap
Инфокутија Железничка линија
Преглед
Опслужување
Историја
Технички
План на трасата
Предлошка:Needhammap

This issue doesn't exist under browser like IE8, Firefox or Opera by their default font and margin preferences. If only few rows break apart, possibly the infobox width is too short and forcing some of the text description within the route diagram template to soft return. Increase the box_width parameter, or putting auto will solve this problem.