Content deleted Content added
BrandonXLF (talk | contribs) Bold supported table |
BrandonXLF (talk | contribs) Add documentation |
||
Line 35:
end
-- Generate a single route link.
--
-- Current frame arguments:
-- 1 - The route number.
-- type - The route type.
-- province - The route province.
-- curr_province - The current province. Defaults to <province>.
-- Parent frame arguments: None
function p.route(frame)
return makeRoute(
Line 40 ⟶ 48:
frame.args.type,
frame.args.province,
frame.args.
)
end
-- Generate prev/next navigation links.
--
-- Current frame arguments:
-- 1 - The prefix of the parent frame parameters to process.
-- label - The label for the output. Shown as "<label> route(s)".
-- curr_province - The current province.
-- Parent frame arguments: None
-- <prefix><number?> - The route number.
-- <prefix><number?>_type - The route type.
-- <prefix><number?>_type - The route province.
function p.nav(frame)
local prefix = frame.args[1]
local label = frame.args.label
local currProvince = frame.args.
local templateArgs = frame:getParent().args
Line 75 ⟶ 93:
end
-- Display the type given.
--
-- Current frame arguments: None
-- Parent frame arguments:
-- type
function p.type(frame)
local data = mw.loadData('Module:Sandbox/BrandonXLF/Module:Interprovincial highway/data')
Line 80 ⟶ 103:
end
-- Show the supported types in a table.
--
-- Current frame arguments: None
-- Parent frame arguments: None
function p.supported(frame)
local data = mw.loadData('Module:Sandbox/BrandonXLF/Module:Interprovincial highway/data')
|