Difference between revisions of "Template:BR colour/doc"

From blackwiki
Jump to navigation Jump to search
imported>Useddenim
 
imported>Vanisaac
m (→‎top: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
This template can be used to call the color of [[British Railways]] regions, in line with the templates used for other railways in the British Isles. The following are included in this template.
+
This template can be used to call the color of [[British Rail]]ways regions, in line with the templates used for other railways in the British Isles. The following are included in this template.
  
 
In order to call a region's color, the code <code> #&#123;&#123;BR Color|<i>region</i>}}</code> is used (where ''region'' is replaced by the region's abbreviation). Note that this template is not case sensitive: i.e. <code><nowiki>{{BR Color|ScR}}</nowiki></code> produces the same result as <code><nowiki>{{BR Color|scr}}</nowiki></code>.
 
In order to call a region's color, the code <code> #&#123;&#123;BR Color|<i>region</i>}}</code> is used (where ''region'' is replaced by the region's abbreviation). Note that this template is not case sensitive: i.e. <code><nowiki>{{BR Color|ScR}}</nowiki></code> produces the same result as <code><nowiki>{{BR Color|scr}}</nowiki></code>.
Line 10: Line 10:
 
| [[Eastern Region of British Railways]]
 
| [[Eastern Region of British Railways]]
 
{{Color template doc|L|LM|LMR}}
 
{{Color template doc|L|LM|LMR}}
| [[London Midland Region (British Railways)]]
+
| [[London Midland Region of British Railways]]
 
{{Color template doc|N|NE|NER}}
 
{{Color template doc|N|NE|NER}}
 
| [[North Eastern Region of British Railways]]
 
| [[North Eastern Region of British Railways]]
Line 21: Line 21:
 
|}
 
|}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Templates for UK railway line colours]]
+
[[Category:United Kingdom rail transport color templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 00:17, 24 April 2020

This template can be used to call the color of British Railways regions, in line with the templates used for other railways in the British Isles. The following are included in this template.

In order to call a region's color, the code #{{BR Color|region}} is used (where region is replaced by the region's abbreviation). Note that this template is not case sensitive: i.e. {{BR Color|ScR}} produces the same result as {{BR Color|scr}}.

{{BR colour|E}} or …|ER}} Sample:   0505c2 Eastern Region of British Railways
{{BR colour|L}} or …|LM}} or …|LMR}} Sample:   ba0003 London Midland Region of British Railways
{{BR colour|N}} or …|NE}} or …|NER}} Sample:   ff9900 North Eastern Region of British Railways
{{BR colour|Sc}} or …|ScR}} Sample:   0099ff Scottish Region of British Railways
{{BR colour|S}} or …|SR}} Sample:   10971e Southern Region of British Railways
{{BR colour|W}} or …|WR}} Sample:   783c1c Western Region of British Railways