Sjabloon:Infobox station/doc

Uit informatiestandaarden
< Sjabloon:Infobox station
Versie door Ahenket (overleg | bijdragen) op 19 jul 2013 om 12:45 (Nieuwe pagina aangemaakt met '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> ==Usage== Copy and paste the template below: <pre> {{Infobox sta...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen

Usage

Copy and paste the template below:

{{Infobox station
| name                = 
| type                = 
| style               = 
| image               = 
| image_size          = 
| image_caption       = 
| hangul              = 
| hanja               = 
| rr                  = 
| mr                  = 
| address             = 
| country             = 
| iso_region          = 
| coordinates_display = 
| coordinates_format  = 
| latitude            = 
| longitude           = 
| latd                = 
| latm                = 
| lats                = 
| latNS               = 
| longd               = 
| longm               = 
| longs               = 
| longEW              = 
| coordinates         = 
| elevation           = 
| line                = 
| other               = 
| structure           = 
| platform            = 
| depth               = 
| levels              = 
| tracks              = 
| parking             = 
| bicycle             = 
| baggage_check       = 
| opened              = 
| closed              = 
| rebuilt             = 
| electrified         = 
| ADA                 = 
| code                = 
| owned               = 
| operator            = 
| zone                = 
| smartcardname       = 
| smartcardstatus     = 
| former              = 
| passengers          = 
| pass_year           = 
| pass_percent        = 
| pass_system         = 
| mpassengers         = 
| services            = 
| map_locator         = 
| route_map           = 
| map_state           = 
}}

Parameter descriptions

Korean name

Station Statistics

  • name – Station name
  • type – Transit system name and type of rail station (rapid transit, light rail, tram, commuter rail and/or regional rail)
  • style – Refers to an external 'style' template. Leave blank if you do not have this.
  • image – Image of the station
  • image_size – Size in pixels of the image of the station
  • image_caption – Caption to be placed under the image of the station
  • address – Street address of the station
  • latd, latm, lats, latNS, longd, longm, longEW – Geographic coordinates of station (see map and coordinates for details)
  • coordinates – Geographical coordinates of the station using {{coord}} directly
  • elevation – MSL elevation
  • line – List of services that serve the station
  • other – Connecting services that serve the station such as bus, etc
  • structure – Type of station structure (underground, at-grade, or elevated)
  • platform – Information on the type of platform(s) at the station
  • depth – The depth of the primary platform below ground level
  • levels – Number of levels of platforms at the station (use only if more than one exists; mezzanine/entrance levels are not included)
  • tracks – number of tracks at the station
  • parking – Information on station's parking facilities
  • bicycle – Information on station's bicycle facilities
  • baggage_check – Whether bags can be checked.

Other Information

  • opened – Date station originally opened
  • closed – Date station closed, either temporarily or permanently, along with reason for closing (for presently closed stations only)
  • rebuilt – Date station last received a rebuild
  • electrified – Date station was electrified, if not previously at date of opening
  • ADA – If any text is placed here a universal symbol for accessible will appear
  • code – Agency station code (used on tickets/reservations, etc.)
  • owned – Station owner name
  • operator – Station operator name
  • zone – Fare zone station is located in
  • smartcardname – name of any smartcard(s) that are or will be available at the station
  • smartcardstatus – "Yes" if smart card is available, or a date (or other information) if available in the future (see Union (TTC) for an example)
  • former – Previous station name(s)

Traffic

  • passengers – Number of passengers using the station. In the reference, please make it clear if this figure is per day, per year, etc.
  • pass_year – Year passenger information was gathered
  • pass_percent – Percentage increase or decrease in usage
  • pass_system – System the passengers are using
  • mpassengers – Allows display of multiple passenger totals using {{rail pass box}}

Services

Location

  • map_type, map_alt, map_caption - Allows inclusion of an image of the station location on a map (see map and coordinates for details)
  • map_locator – Allows inclusion of an image of the station location on a map, using {{Location map}} or another method directly
  • route_map – Allows inclusion of route map diagram
  • map_state – Determines route map state

Map and coordinates

It is usually not necessary to use the coordinates= parameter, or the optional map_locator= parameter.

  • The latitude and longitude of the station may be specified:
    • in decimal degrees, using latitude= and longitude= OR
    • in degrees/minutes/seconds, using latd=, latm=, lats=, latNS=, longd=, longm=, longs=, and longEW=.
  • To display coordinates at the top of the page, use coordinates_display=yes. Otherwise coordinates will appear in the infobox only.
  • The ISO 3166-1 alpha-2 or ISO 3166-2 region code can often be determined automatically, based on the country= parameter.
    • To override the automatic value, use the iso_region= parameter.

One advantage of omitting the coordinates= and the map_locator= parameters is that you can display a {{Location map}} without duplicating coordinates.

{{Infobox station
...
| coordinates_display = <!-- non-blank to display coordinates at the top of the page. -->
| iso_region          = <!-- To override any automatically determined region code. -->
| map_type            = <!-- Location from Location map. -->
| map_alt             = <!-- Alternative map file name (changes background map, border coordinates are determined based on the map name); this is only recommended for use in templates. -->
| map_caption         = <!-- ''map caption''; for no caption enter "caption="; if the parameter is omitted then the caption will be "Marker text (location map name)" -->
...
}}
Parameters to specify coordinates in degrees, minutes, and seconds of arc:
{{Infobox station
...
| latd   = <!-- ''latitude'' degrees -->
| latm   = <!-- ''latitude'' minutes -->
| lats   = <!-- ''latitude'' seconds -->
| latNS  = <!-- latitude: S=south, N=north (default) -->
| longd  = <!-- ''longitude'' degrees -->
| longm  = <!-- ''longitude'' minutes -->
| longs  = <!-- ''longitude'' seconds -->
| longEW = <!-- longitude: W=west, E=east (default) -->
...
}}
Parameters to specify coordinates in decimal degrees:
{{Infobox station
...
| latitude  = <!-- ''latitude'' (decimal format; enter negative numbers for southern latitude) -->
| longitude = <!-- ''longitude'' (decimal format; enter negative numbers for western longitude) --> 
...
}}

Note: coordinates in decimal degrees are sensitive to extra whitespace in the parameters:

  • Incorrect: | longitude = - 123.45
  • Correct: | longitude = -123.45

External style template

An external style template may be used to allow the modification of display parameters. This can be the same template that is used in conjunction with Template:S-line, but may be a different template. The |style= parameter is used to specify the name of the template where the styling is defined; the template's name must end with the word "style", but this word must be omitted from the |style= parameter. For example, |style=Amtrak will use the {{Amtrak style}} template.

Parameter Description
name_format Formatting the station name in Infobox Station
thcolor Font color for table headings in Infobox Station
thbgcolor Background color for table headings in Infobox Station

Embedding other infoboxes

The embedded= parameter can be used to embed another infobox with such capability like {{designation list}} and {{infobox NRHP}}.

Examples

This first example shows the infobox of Sinanju Station with the Korean names: {{#invoke:Infobox|infobox}}Sjabloon:Infobox Korean name/categories

{{Infobox station 
| name          = Sinanju Ch'ŏngnyŏn Station
| hangul        = 신안주청년역
| hanja         = {{linktext|新|安|州|青|年|驛}}
| mr            = Sinanju-ch'ŏngnyŏnyŏk
| rr            = Sinanju-cheongnyeonyeok
| image         = DPRK_rail_station.jpg
| image_size    = 
| image_caption = 
| address       = [[Anju, South Pyongan|Anju]], [[South Pyongan Province]]
| country       = North Korea
| coordinates   = 
| line          = [[P'yŏngŭi Line]]<br/>[[Kaech'ŏn Line]]
}}

This second example from the Paso Robles (Amtrak station) article uses S-line in the |services= parameter, and the external style template: {{#invoke:Infobox|infobox}}Sjabloon:Infobox Korean name/categories

{{Infobox station
| style        = Amtrak
| name         = Paso Robles
| image        = Paso Robles Train Station.jpg
| address      = 800 Pine Street<br />[[Paso Robles, California|Paso Robles]], [[California]] 93446
| line         = [[Coast Starlight]]
| platform     = 1 side platform
| tracks       = 1
| owned        = City of Paso Robles
| services     =
{{s-rail|title=Amtrak}}
{{s-line|system=Amtrak|line=Coast Starlight|previous=Salinas|next=San Luis Obispo|type=R|type2=R}}
}}

Microformat

Sjabloon:UF-hcard-geo