Content deleted Content added
BrandonXLF (talk | contribs) All 30% Tag: Reverted |
BrandonXLF (talk | contribs) No edit summary Tag: Reverted |
||
Line 14:
}
local function
local out = ''
Line 46:
end
return route(
frame.args[1],
frame.args.type,
frame.args.province,
frame.args.current_province or frame.args.province
)
end
local function nav(prefix, label, currProvince, args)
local index = 1
local out = ''
Line 59 ⟶ 68:
end
out = out ..
index = index + 1
until not args[prefix .. index]
return
end
function p.nav(frame)
return nav(
frame.args[1],
frame.args.label,
frame.args.current_province,
getArgs(frame, { parentOnly = true })
)
end
Line 75 ⟶ 93:
local routeLoc = args.curr_province
local prev, prevWord =
local next, nextWord =
return string.format(
Line 92 ⟶ 110:
prevWord,
prev,
nextWord,
next
|