Added two more options to usertemplate and mastertemplate apply form
                $pluginonly = $sqlparam;
Cleaned up the code for the two added options in templates apply form
changed the name of the externalname variable to template