Template talk:Roadardy

From Minecart Rapid Transit Wiki
Jump to navigation Jump to search

Chimpy and Camel reserve exclusive rights to usage of Canal and Chompy, kthxbai. Camelfantasy (M e h) 14:20, 11 April 2016 (EDT)

Possible Solution

This is a possible solution I came up with for having the ward number in the roads match the color, only problem is it only works for A roads, and you will have to separate the first number from the rest.

{{#switch: {{{1|}}}
|1={{colorbox|#B71C1C|{{color|white|A{{{1}}}{{{2}}}}}}}
|2={{colorbox|#E65100|{{color|white|A{{{1}}}{{{2}}}}}}}
|3={{colorbox|#FFAB00|{{color|white|A{{{1}}}{{{2}}}}}}}
|4={{colorbox|#1B5E20|{{color|white|A{{{1}}}{{{2}}}}}}}
|5={{colorbox|#26A69A|{{color|white|A{{{1}}}{{{2}}}}}}}
|6={{colorbox|#FF3D00|{{color|white|A{{{1}}}{{{2}}}}}}}
|7={{colorbox|#00C853|{{color|white|A{{{1}}}{{{2}}}}}}}
|8={{colorbox|#C51162|{{color|white|A{{{1}}}{{{2}}}}}}}
|9={{colorbox|#FF1744|{{color|white|A{{{1}}}{{{2}}}}}}}
|{{color|red|'''ROAD CLOSED. PLEASE USE DIVERSION ON 23RD STREET.''' <3}} (this is the error handler message)
}}

Usage: {{roadardy|1|2}}
{{roadardy|1|50}}
Yields

 A150 

good idea, but I think it's a minus that that doesn't have B roads. I'm looking for a script that reads the very first character of the parameter and uses it. (if that works, we could replace this with st template too).I suggest we keep the original one intact until one of us comes with a better solution.--Ardyan - director of stupid and pointless since 2016 (talk) 14:57, 11 April 2016 (EDT)
Couldn't you just do something like {{roadardy|ward|class|number}}? Also, I don't really think this is a good idea since then we'd have to redo all of the existing road citations on the wiki along with the shields. Just my thoughts jphgolf4321 (talk) 17:46, 11 April 2016 (EDT)
Well if that's the matter, I would update all shields on my own. I'll also try updating the ward colors to make it more uniform, at least better than what we have now.--Ardyan - director of stupid and pointless since 2016 (talk) 09:23, 12 April 2016 (EDT)

Solution for your "Addition"

[[{{{3}}}|
{{#ifeq: {{{1|}}} | A 
|{{#switch: {{{2|}}}
...
|{{color|red|'''ROAD CLOSED. PLEASE USE DIVERSION ON 23RD STREET.''' <3}} (this is the error handler message)
}}}}]]

In bold are the new things. That would set whatever the number of the road is to the link. Haven't actually tested it, but it should work (I think). Bensismith (talk) 16:16, 14 April 2016 (EDT)

Shield coloring with changeable road

If you're still looking for a solution to this problem, I might have coding that can superimpose the road name/number above a blank shield of a certain color. Camelfantasy (M e h) 14:26, 4 May 2016 (EDT)