قالب:Sidebar Adjacent stations

Usage عدل

This template is intended to be used within station and line infoboxes, diagrams, navboxes and tables to show a small color box and a link to the associated line or service name. Its use should be avoided within body text.

Parameter Description
system or 1 An identifier to specify which system's color and line article name convention should be used; either Module:Adjacent stations/system or Template:system color must exist, e.g. قالب:BJS color or وحدة:Adjacent stations/Taipei Metro
line or 2 The line or service to be linked
inline or 3 An optional parameter to create a colorbox and link suitable for use inline with other text
Valid arguments are yes, small, link, box, route, xroute and croute
type This adds " – type" to the end, where type is the parameter value (which may be changed by a module subpage), and also passes the value to the data template or module. Typically a service or branch of the line
note An optional note with more information, added at the end

For systems where multiple colors are used to designate different lines, the appropriate color will be selected based on the combination of the system and line parameters. The same is done for systems where types/services have their own colors.

The template can be abbreviated as {{rcb}}. All examples use this abbreviated form.

أمثلة عدل

{{rcb|system=Amtrak|line=Southwest Chief}} and {{rcb|Amtrak|Southwest Chief}} produce قالب:Rcb

{{rcb|SEPTA|Wilmington/Newark|note=(rush hour service only)}} produces قالب:Rcb

The optional parameter |inline= (or the third unnamed parameter) allows different display options for inline text.

yes قالب:Rcb قالب:Rcb inline color box with link
small قالب:Rcb قالب:Rcb smaller color box with link
dot قالب:Rcb قالب:Rcb small circle with link
square قالب:Rcb قالب:Rcb small square with link
link قالب:Rcb قالب:Rcb linked box
ldot قالب:Rcb قالب:Rcb linked circle
lsquare قالب:Rcb قالب:Rcb linked square
box قالب:Rcb قالب:Rcb box with link omitted
route قالب:Rcb قالب:Rcb box with background color
croute قالب:Rcb قالب:Rcb box with background color and border radius
xroute قالب:Rcb قالب:Rcb box with colored text and border radius

Some options, such as setting the text color, border color, and the short name for the latter three, require the use of a module subpage. Each line can have its own values, as can each type. The table keys for line and type tables are the same: "border color", "text color" and "short name". Note that the "background color" key is not used by this template.

System abbreviations عدل

Lists of available systems are at Category:Rail transport color templates and خاص:PrefixIndex/Module:Adjacent stations/.

Abbreviation System
AMT Agence métropolitaine de transport
BART Bay Area Rapid Transit
CTA Chicago Transit Authority
DART Dallas Area Rapid Transit
HBLR Hudson–Bergen Light Rail
KAT Kenosha Transit
LACMTA سكك مترو لوس أنجلوس
LIRR Long Island Rail Road
MARC MARC Train
MARTA Metropolitan Atlanta Rapid Transit Authority
MBTA MBTA Commuter Rail
METROMN Metro (Minnesota)
MNRR Metro-North Railroad
MUNI Muni Metro
NJT NJ Transit
NMRX New Mexico Rail Runner Express
NYCRR New York Central Railroad
PATCO Port Authority Transit Corporation
PATH Port Authority Trans-Hudson
PLR Pittsburgh Light Rail
RIRTR Rochester Subway
RTD Denver Regional Transportation District
SCAX Metrolink (California)
SCVTA Santa Clara Valley Transportation Authority light rail
SEPTA Southeastern Pennsylvania Transportation Authority  [لغات أخرى]
SFRTA Tri-Rail
STLLR Sound Transit Link light rail  [لغات أخرى]
SNDX Sounder commuter rail
STML St Louis MetroLink
TMTC MAX Light Rail
VMR Valley Metro Rail
VREX Virginia Railway Express
WMATA Washington Metropolitan Area Transit Authority

Variants عدل

القالب الوصف مثال
{{صندوق لون}} مربع لون صغير بحواف سوداء ولون نص   أو  برتقالي 
{{Color box striped}} نسخة مخططة     
{{RouteBox}} نسخة بلا حواف مع لون نص وروابط تشعبية  ORANGE 
{{Colorbull}} مربع صغير جداً ملون مع روابط تشعبية
{{مؤشر لوني مضمن}} نسخة أخرى بلا حواف   
{{Color sample}} مربع لون صغير مع حواف سوداء
{{Swatch inline}} orange
{{لون خلفية}} orange
{{Rail color box}} نسخة مع المزيد من خيارات العرض
(جزء من وحدة:Adjacent stations)
قالب:Rcb، قالب:Rcb، إلخ.
{{Diagonal split color box}} مربع لون صغير ينقسم قطريا
   
   
, إلخ.
{{Motor type}} صندوق لون صغير يتوافق مع نوع المحرك قالب:Motor type/mild hybrid, إلخ.

بيانات القالب عدل

هذا توثيق بيانات لهذا القالب، مستخدم بواسطة المحرر المرئي وأداة الترجمة والأدوات الأخرى.

بيانات قالب: «Rail color box»

Template which generates colored boxes to indicate rail lines, optionally with a link to the line's article.

وسائط القالب[تحرير بيانات القالب]

هذا القالب يفضل التنسيق بنفس السطر للوسائط.

وسيطوصفنوعحالة
System1 system

دون وصف

نصمطلوب
Line2 line

دون وصف

نصمقترح
Inline display type3 inline

دون وصف

نصمقترح
Type (branch/service)type

دون وصف

نصاختياري
Notenote

دون وصف

نصاختياري