Module:Road data/strings/AFG

From Pantonian Republic Wiki
< Module:Road data
Revision as of 17:55, 22 December 2021 by wikipedia>Fredddie (ope)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Road data/strings/AFG/doc

--[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
and enter the following input text:
  {{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}}

To inspect the content of this data module when editing, enter the following
into the Debug console:
  local util = require("Module:Road data/util")
  print(util.arrayToString(p))
To inspect a particular route type, change `p` above to include the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]

-- Afghanistan
local AFG = {}

local frame = mw.getCurrentFrame()
local util = require("Module:Road data/util")

AFG.National = {
    shield = "",
    name = {
    	["1"] = "Afghanistan Ring Road",
    	["8"] = "Kabul–Jalalabad Road",
    	["13"] = "Kabul–Behsud Highway",
    },
    link = {
    	["1"] = "Afghanistan Ring Road",
    	["8"] = "Kabul–Jalalabad Road",
    	["13"] = "Kabul–Behsud Highway",
    },
    abbr = {
		hook = "padroute",
		paddedLength = 2,
		default = "NH%paddedRoute%"
	},
    translation = {
    	arg = "route",
    	["1"] = frame:expandTemplate{ title = 'lang-prs', args = { "شاهراه حلقوی افغانستان"}} .. "<br>" .. frame:expandTemplate{ title = 'lang-ps', args = { "د افغانستان حلقوي سړک"}}
    },
}
AFG.NH = AFG.National

AFG.Route = {
	shield = "",
	name = "Route %route%",
	link = "Route %route% (Afghanistan)",
	abbr = "Route %route%"
}

for k, v in pairs(AFG) do if k:find ("^%a") then
	v.browse = "[[:Category:Roads in Afghanistan|Highways in Afghanistan]]"
	end
end

return AFG