Added the TemplateType into the JSOn entry AND added the Switch-Case to the query plugin.

Signed-off-by: Condor <condor616@gmail.com>