Content deleted Content added
BrandonXLF (talk | contribs) Add documentation |
BrandonXLF (talk | contribs) Show error for unknown type |
||
Line 93:
end
-- Display
--
-- Current frame arguments:
-- 1 - The type to return the title for
-- Parent frame arguments: None
function p.type(frame)
local data = mw.loadData('Module:Sandbox/BrandonXLF/Module:Interprovincial highway/data')
return data.types[frame.args[1]] or require('Module:Error').error{'Unknown |type='}
end
|