-- This module implements [[Template:Pp-move-indef]].localp={}functionp.main(title)iftype(title)=='string'thentitle=mw.title.new(title)elseiftype(title)~='table'ornottitle.textornottitle.getContentthen-- The title parameter is absent or not a title object. It could be a-- frame object if we are being called from #invoke.title=mw.title.getCurrentTitle()endlocallevel=titleandtitle.protectionLevelsandtitle.protectionLevels.moveandtitle.protectionLevels.move[1]localnamespace=titleandtitle.namespacelocalcategoryiflevel=='sysop'orlevel=='templateeditor'thenifnamespace==2ornamespace==3thencategory='صفحههای کاربری و بحث کاربری محافظتشده در برابر انتقال ویکیپدیا'elseifnamespace==4ornamepace==12thencategory='صفحههای پروژه محافظتشده در برابر انتقال ویکیپدیا'elseifnamespace==100thencategory='درگاههای محافظتشده در برابر انتقال ویکیپدیا'elseiftitle.isTalkPagethencategory='صفحههای بحث محافظتشده در برابر انتقال ویکیپدیا'elsecategory='صفحههای بیپایان محافظتشده در برابر انتقال ویکیپدیا'endelsecategory='صفحههای ویکیپدیا با الگوهای محافظت نادرست'endreturnstring.format('[[%s:%s|%s]]',mw.site.namespaces[14].name,-- "Category"category,title.text-- equivalent of {{PAGENAME}})endreturnp