Difference between revisions of "Template:DongguanRT color/doc"

From blackwiki
Jump to navigation Jump to search
imported>ASDFGH
(Created page with '{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> === Usage === This template can be used to call the...')
 
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
 
This template can be used to call the color of [[Dongguan Rail Transit]] routes. The following are included in this template.
 
This template can be used to call the color of [[Dongguan Rail Transit]] routes. The following are included in this template.
  
In order to call a line's color, the code <code> #&#123;&#123;DongguanRT color|<i>line</i>}}</code> is used (where ''line'' is replaced by the actual line abbreviation or name). Note that this template is not case sensitive: i.e. <code><nowiki>{{DongguanRT color|R3}}</nowiki></code> produces the same result as <code><nowiki>{{DLM color|r3}}</nowiki></code>.
+
In order to call a line's color, the code <code> #&#123;&#123;DongguanRT color|<i>line</i>}}</code> is used (where ''line'' is replaced by the actual line abbreviation or name). Note that this template is not case sensitive: i.e. <code><nowiki>{{DongguanRT color|R2}}</nowiki></code> produces the same result as <code><nowiki>{{DongguanRT color|r2}}</nowiki></code>.
  
  
Line 14: Line 14:
 
{{Color template doc|3|r3}}
 
{{Color template doc|3|r3}}
 
{{Color template doc|4|r4}}
 
{{Color template doc|4|r4}}
{{Color template doc|5|r5}}
 
 
{{Color template doc|#default}}
 
{{Color template doc|#default}}
 
|}
 
|}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
  

Latest revision as of 00:18, 25 April 2020

Usage

This template can be used to call the color of Dongguan Rail Transit routes. The following are included in this template.

In order to call a line's color, the code #{{DongguanRT color|line}} is used (where line is replaced by the actual line abbreviation or name). Note that this template is not case sensitive: i.e. {{DongguanRT color|R2}} produces the same result as {{DongguanRT color|r2}}.


{{DongguanRT color|1}} or …|r1}} Sample:   034ea2
{{DongguanRT color|2}} or …|r2}} Sample:   ed1c24
{{DongguanRT color|3}} or …|r3}} Sample:   faa61a
{{DongguanRT color|4}} or …|r4}} Sample:   00ab4e
{{DongguanRT color|#default}} Sample:   bbbbbb