Rename given template (and its fieldgroup, and file, when possible)
Given template must have its previous 'name' still present, and new name provided in $name argument to this method.
Available since version 3.0.170.
$templates->rename(Template $template, string $name);
New name to use
Method can throw exceptions on error:
WireException- if rename cannot be completed
API reference based on ProcessWire core version 3.0.185