Module:Road data/strings/AFG: Difference between revisions

From Pantonian Republic Wiki
Jump to navigation Jump to search
(ope)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 10:59, 18 November 2023

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