Thread:Project:Support desk/Question on parentlink

please see this link https://www.mediawiki.org/wiki/Manual:Pywikibot/Scripts i want to have parentlink like that website. Could you help me step by step? because i searched alot, i could not find proper solution.