Difference between revisions of "Template:BARTlines"

From Transit.Wiki
 
m (Text replacement - "Richmond - Millbrae - SFO" to "Richmond - Millbrae")
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{1|}}}|yellow|{{#icon: icon-bart-yellow-16.png | Pittsburg/Bay Point - SFO | | Pittsburg/Bay Point - SFO }} {{#ifeq:{{{2|}}}|y|[[Pittsburg/Bay Point - SFO]]}}}}<noinclude>
+
{{#switch:{{{1|}}}
 
+
|yellow={{Colorbox|yellow|BART Antioch - SFO}} {{#ifeq:{{{2|}}}|y|[[BART Antioch - SFO|Antioch - SFO]]}}{{#ifeq:{{{note|}}}|y|[[Served by::BART Antioch - SFO| ]]}}
</noinclude>{{#ifeq:{{{1|}}}|orange|{{#icon: icon-bart-orange-16.png | Richmond - Fremont | | Richmond - Fremont }} {{#ifeq:{{{2|}}}|y|[[Richmond - Fremont]]}}}}<noinclude>
+
|orange={{Colorbox|orange|BART Richmond - Berryessa}} {{#ifeq:{{{2|}}}|y|[[BART Richmond - Warm Springs|Richmond - Berryessa]]}}{{#ifeq:{{{note|}}}|y|[[Served by::BART Richmond - Berryessa| ]]}}
 
+
|blue={{Colorbox|#00B8FF|BART Dublin/Pleasanton - Daly City}} {{#ifeq:{{{2|}}}|y|[[BART Dublin/Pleasanton - Daly City|Dublin/Pleasanton - Daly City]]}}{{#ifeq:{{{note|}}}|y|[[Served by::BART Dublin/Pleasanton - Daly City| ]]}}
</noinclude>{{#ifeq:{{{1|}}}|blue|{{#icon: icon-bart-blue-16.png | Dublin/Pleasanton - Millbrae | | Dublin/Pleasanton - Millbrae }} {{#ifeq:{{{2|}}}|y|[[Dublin/Pleasanton - Millbrae]]}}}}<noinclude>
+
|red={{Colorbox|red|BART Richmond - Millbrae}} {{#ifeq:{{{2|}}}|y|[[BART Richmond - Millbrae|Richmond - Millbrae]]}}{{#ifeq:{{{note|}}}|y|[[Served by::BART Richmond - Millbrae| ]]}}
 
+
|green={{Colorbox|green|BART Berryessa - Daly City}} {{#ifeq:{{{2|}}}|y|[[BART Berryessa - Daly City|Berryessa - Daly City]]}}{{#ifeq:{{{note|}}}|y|[[Served by::BART Berryessa - Daly City| ]]}}
</noinclude>{{#ifeq:{{{1|}}}|red|{{#icon: icon-bart-red-16.png | Richmond - Millbrae | | Richmond - Millbrae }} {{#ifeq:{{{2|}}}|y|[[Richmond - Millbrae]]}}}}<noinclude>
+
|tan={{Colorbox|#d5cfa3|BART Coliseum - Oakland Airport}} {{#ifeq:{{{2|}}}|y|[[Coliseum - Oakland Airport]]}}{{#ifeq:{{{note|}}}|y|[[Served by::BART Coliseum - Oakland Airport| ]]}}
 
+
|purple={{Colorbox|#903f98|BART Millbrae - SFO}} {{#ifeq:{{{2|}}}|y|[[BART Millbrae - SFO|Millbrae - SFO]]}}{{#ifeq:{{{note|}}}|y|[[Served by::BART Millbrae - SFO| ]]}}
</noinclude>{{#ifeq:{{{1|}}}|green|{{#icon: icon-bart-green-16.png | Fremont - Daly City | | Fremont - Daly City }} {{#ifeq:{{{2|}}}|y|[[Fremont - Daly City]]}}}}<noinclude>
+
}}<noinclude>
 
 
 
This is designed for BART
 
This is designed for BART
  
Line 14: Line 13:
 
* Parameter2: If it is yes, the name will show after color
 
* Parameter2: If it is yes, the name will show after color
  
 +
[[Category:Rail agency line templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:00, 11 September 2023

This is designed for BART

  • Parameter1: Color of line
  • Parameter2: If it is yes, the name will show after color