API: Added filter by namespace to links & templates query - bug 10275