-- This module creates a section link with multiple section names.
local p =
local function normalizePageName(page) local title = mw.title.new(page) if not title then error(string.format("'%s' is not a valid page name", page), 3) elseif title.namespace
14 then return ':' .. title.prefixedText else return title.prefixedText endend
function p._main(args) local displayParts = for i, v in ipairs(args) do displayParts[i] = v end local nParts = #displayParts if nParts < 1 then error('no page name found in parameter |1=', 2) elseif nParts
function p.main(frame) local args = require('Module:Arguments').getArgs(frame,) return p._main(args)end
return p