Module talk:Infobox road/color
Please place new discussions at the bottom of the talk page. |
This is the talk page for discussing improvements to the Infobox road/color module. |
|
Archives: 1Auto-archiving period: 10 days ![]() |
Template-protected edit request on 26 July 2019
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Update the section for Spain to include more road types. The colours are not defined by law; however, the official legal text includes images from which the hexadecimal codes have been extracted (https://www.boe.es/buscar/doc.php?id=BOE-A-2003-23514, search for "señales de identificación de carreteras).
The new section should look like this:
do -- Spain local ESP = Country:new{default = "background:#E8E8E8;"} ESP:addTypesAsColor({"E"}, "background:#37F623; color:#fff;") ESP:addTypesAsColor({"A", "AP", "R", "Autovia", "Autovía", "Autopista", "autovia", "autovía", "autopista"}, "background:#134BED; color:#fff;") ESP:addTypesAsColor({"N", "national", "nacional"}, "background:#F21F1E; color:#fff;") ESP:addTypesAsColor({"autonomica1", "autonómica1"}, "background:#F58E27; color:#000;") ESP:addTypesAsColor({"autonomica2", "autonómica2"}, "background:#5D3F0F; color:#fff;") ESP:addTypesAsColor({"autonomica3", "autonómica3"}, "background:#F5EA1A; color:#000;") colors.ESP = ESP end -- Spain
Vishal dh (talk) 08:50, 26 July 2019 (UTC)
- I found a document a while back and I extracted these hex codes from it (I put the color codes you got after them for comparison):
- Green #13926C – #37F623
- Red #BF0411 – #F21F1E
- Yellow #F4B70D – #F5EA1A
- Orange #E96310 – #F58E27
- Blue #19408B – #134BED
- In my experience, color codes for road signs are much darker than what they appear, so I'm inclined to think the ones I found are closer. Long story short, the code you wrote out is in place, but I used the color codes I had found previously. –Fredddie™ 13:53, 26 July 2019 (UTC)
Costa Rica color codes request
Hi, I'm working to add Costa Rica's roads information to Wikipedia, I would like to add the proper color for the template, which are the same as the USA (and several other countries it seems...), but right now I would only need the main green color. We do have tourist roads with the brown color, but I will need to research a bit more about that, its been years since I saw one of those signs in the streets. Probably deprecated by the government. I think the single color country code would like this:
do -- Single-color countries ... colors.CRI = Country:new{default = "background:#006A4D; color:white;"} end -- Single-color countries
Thanks! Roqz (talk) 23:40, 23 September 2019 (UTC)