Jump to content

Module talk:Infobox road/color

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Happy5214 (talk | contribs) at 05:18, 21 May 2020 (Merge under Module:Road data/strings submodules?: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template-protected edit request on 15 May 2020

Need to add Nepal's color set. It's an addition request. Should I submit color set or add by myself? Lemofadka (talk) 11:29, 15 May 2020 (UTC)[reply]

 Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. – Jonesey95 (talk) 13:07, 15 May 2020 (UTC)[reply]

Template-protected edit request on 15 May 2020

I've figured out color schemes required for various types of the road system of Nepal. National Highway- Red background White text Feeder Road- Black background White text District Road- Blue background White text

I've prepared code that can be inserted just below multiple color countries option. So this is an edit & add request.

		do -- Nepal
			local NPL = Country:new{default = "background:#1D02E7;"}
			NPL:addTypesAsColor({"H"}, "background:#bd0e02; color:#fff;")
			NPL:addTypesAsColor({"F"}, "background:#000000; color:#fff;")
			NPL:addTypesAsColor({"D"}, "background:#1D02E7; color:white;")
			colors.NPL = NPL
		end -- Nepal

Lemofadka (talk) 13:55, 15 May 2020 (UTC)[reply]

 Done Primefac (talk) 14:11, 15 May 2020 (UTC)[reply]

Template-protected edit request on 15 May 2020

I appreciate the color set addition but there's a slight wrong interpretation of color codes. My bad that I mistyped color code. Here's an corrected code.

	do -- Nepal
		local NPL = Country:new{default = "background:#bd0e02;"}
		NPL:addTypesAsColor({"H"}, "background:#006B54; color:#fff;")
                NPL:addTypesAsColor({"E"}, "background:red; color:#fff;")
		NPL:addTypesAsColor({"F"}, "background:#000000; color:#fff;")
		NPL:addTypesAsColor({"D"}, "background:#1D02E7; color:white;")
		colors.NPL = NPL
	end -- Nepal

Lemofadka (talk) 15:29, 15 May 2020 (UTC)[reply]

This is  Done. –Fredddie 02:05, 16 May 2020 (UTC)[reply]

Merge under Module:Road data/strings submodules?

There is no particular reason that these color specifications can't be more elegantly listed in the per-country road data string modules. We should make an effort to merge this data into those string modules and convert this to a thin wrapper using Module:Road data/parser. -happy5214 05:18, 21 May 2020 (UTC)[reply]