Difference between revisions of "Template:Budapest Metro color/doc"

From blackwiki
Jump to navigation Jump to search
imported>Useddenim
m (typo)
imported>Useddenim
m ({{Color template doc}})
Line 4: Line 4:
 
This is primarily part of a system of {{tl|S-line}} codependent succession templates.
 
This is primarily part of a system of {{tl|S-line}} codependent succession templates.
  
This template can also be used to call the color of Budapest Metro lines. The following are included in this template.
+
This template can also be used to call the color of [[Budapest Metro]] lines.
  
In order to call a line's color, the code <code>#&#123;&#123;Budapest Metro color|#}}</code> is used (where # is replaced by the actual route number).  
+
In order to call a line's color, the code <code>#&#123;&#123;Budapest Metro color|''number''}}</code> is used (where ''number'' is replaced by the actual route number). Note that this template is not case sensitive: i.e. <code><nowiki>{{Budapest Metro color|Red}}</nowiki></code> produces the same result as <code><nowiki>{{Budapest Metro color|red}}</nowiki></code>.
  
 
{|class=wikitable
 
{|class=wikitable
|-
+
{{Color template doc|1|M1}}
| {{tlc|{{BASEPAGENAME}}|1}} ''or'' <code><nowiki>|M1}}</nowiki></code>
+
{{Color template doc|2|M2}}
| Sample:
+
{{Color template doc|3|M3}}
| style="background:#{{ {{BASEPAGENAME}} | 1}}; border-top:solid 1px gray; " | {{pad|2em}}
+
{{Color template doc|4|M4}}
| #feda04
+
{{Color template doc|5}}
|-
+
{{Color template doc|6}}
| {{tlc|{{BASEPAGENAME}}|2}} ''or'' <code><nowiki>|M2}}</nowiki></code>
+
{{Color template doc|7}}
| Sample:
+
{{Color template doc|8}}
| style="background:#{{ {{BASEPAGENAME}} | 2}}; border-top:solid 1px gray; " |
+
{{Color template doc|9}}
| #ca161c
+
{{Color template doc|default}}
|-
 
| {{tlc|{{BASEPAGENAME}}|3}} ''or'' <code><nowiki>|M3}}</nowiki></code>
 
| Sample:
 
| style="background:#{{ {{BASEPAGENAME}} | 3}}; border-top:solid 1px gray; " |
 
| #025694
 
|-
 
| {{tlc|{{BASEPAGENAME}}|4}} ''or'' <code><nowiki>|M4}}</nowiki></code>
 
| Sample:
 
| style="background:#{{ {{BASEPAGENAME}} | 4}}; border-top:solid 1px gray; " |
 
| #44aa44
 
|-
 
| {{tlc|{{BASEPAGENAME}}|5}}
 
| Sample:
 
| style="background:#{{ {{BASEPAGENAME}} | 5}}; border-top:solid 1px gray; " |
 
| #8a226c
 
|-
 
| {{tlc|{{BASEPAGENAME}}|6}}
 
| Sample:
 
| style="background:#{{ {{BASEPAGENAME}} | 6}}; border-top:solid 1px gray; " |
 
| #815319
 
|-
 
| {{tlc|{{BASEPAGENAME}}|7}}
 
| Sample:
 
| style="background:#{{ {{BASEPAGENAME}} | 7}}; border-top:solid 1px gray; " |
 
| #f29315
 
|-
 
| {{tlc|{{BASEPAGENAME}}|8}} ''or'' <code><nowiki>|9}}</nowiki></code>
 
| Sample:
 
| style="background:#{{ {{BASEPAGENAME}} | 8}}; border-top:solid 1px gray; " |
 
| #ec766f
 
|-
 
| {{tlc|{{BASEPAGENAME}}|default}}
 
| Sample:
 
| style="background:#{{ {{BASEPAGENAME}} | #default}}; border-top:solid 1px gray; " |
 
| #008888
 
|-
 
 
|}
 
|}
  
<includeonly>
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Budapest Metro templates]]
 
[[Category:Budapest Metro templates]]
</includeonly>
+
[[Category:Hungary rail transport color templates]]
 +
}}</includeonly>

Revision as of 19:17, 22 December 2013

This is primarily part of a system of {{S-line}} codependent succession templates.

This template can also be used to call the color of Budapest Metro lines.

In order to call a line's color, the code #{{Budapest Metro color|number}} is used (where number is replaced by the actual route number). Note that this template is not case sensitive: i.e. {{Budapest Metro color|Red}} produces the same result as {{Budapest Metro color|red}}.

{{Budapest Metro color|1}} or …|M1}} Sample:   feda04
{{Budapest Metro color|2}} or …|M2}} Sample:   ca161c
{{Budapest Metro color|3}} or …|M3}} Sample:   025694
{{Budapest Metro color|4}} or …|M4}} Sample:   44aa44
{{Budapest Metro color|5}} Sample:   8a226c
{{Budapest Metro color|6}} Sample:   815319
{{Budapest Metro color|7}} Sample:   f29315
{{Budapest Metro color|8}} Sample:   ec766f
{{Budapest Metro color|9}} Sample:   ec766f
{{Budapest Metro color|default}} Sample:   008888