-- This module implements {{italic title}}.localp={}functionp.main(frame)-- Process the arguments.localargsifframe==mw.getCurrentFrame()thenargs=frame:getParent().argsfork,vinpairs(frame.args)doargs=frame.argsbreakendelseargs=frameendlocaltitle=mw.title.getCurrentTitle()-- Get the current page object.-- Find the parts before and after the disambiguation parentheses, if any.localprefix,parentheses=mw.ustring.match(title.text,'^(.+) (%([^%(%)]+%))$')-- If parentheses were found, italicise only the part before them. Otherwise-- italicise the whole title.localresultifprefixandparenthesesandargs.all~='yes'thenresult="''"..prefix.."'' "..parentheseselseresult="''"..title.text.."''"end-- Add the namespace if it exists.iftitle.nsTextandtitle.nsText~=""thenresult=title.nsText..':'..resultend-- Call displaytitle with the text we generated.returnmw.getCurrentFrame():callParserFunction('DISPLAYTITLE',result)endreturnp