Uppercase intended template in page info

Hi,

I may be missing something here, but I am having an issue displaying the page template as uppercase in info in a page section. My section looks like this:

mainPages:
  type: pages
  label: Main pages
  image: false
  info: "{{ page.intendedTemplate }}"

Which shows the intended template like this:

services

I would like it to be either uppercased or title cased, just to look nicer. However when I try info: "{{ page.intendedTemplate.upper }}" there is nothing displayed.

$page->intendedTemplate() returns a template object (see $page->intendedTemplate() | Kirby CMS), upper is a field method which can only be called on a field object.

So the solution would be to create a custom page method that returns

Str::upper($page->intendedTemplate()->name())

Super, I will give that a try. Thanks for the clarification