Your rank/title has no effect on prestige gain. It has been proven countless times that it is in fact the total lvl of all town halls you own that determines your prestige gain.