Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Module:Remove parentheses: Difference between revisions

From Amaranth Legacy, available at amaranth-legacy.community
Content deleted Content added
Created page with "local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame) if not args['scope'] then error('"scope" argument is required') end local scope = args['scope'] return frame:callParserFunction('DISPLAYTITLE', 'a' .. mw.title.getCurrentTitle()) end return p"
 
No edit summary
Line 6: Line 6:
local scope = args['scope']
local scope = args['scope']


return frame:callParserFunction('DISPLAYTITLE', 'a' .. mw.title.getCurrentTitle())
return frame:callParserFunction('DISPLAYTITLE', 'a' .. mw.title.getCurrentTitle().fullText)
end
end



Revision as of 17:26, January 28, 2025

Removes parentheses in a page title; used by Template:Remove parentheses


local p = {}

function p.main(frame)
	local args = require('Module:Arguments').getArgs(frame)
	if not args['scope'] then error('"scope" argument is required') end
	local scope = args['scope']

	return frame:callParserFunction('DISPLAYTITLE', 'a' .. mw.title.getCurrentTitle().fullText)
end

return p