How to access metadata for a term in term.html?

Hi, I’m trying to show custom metadata for a Term, as by doc here and here.

I created for the term “helsingfors” in this folder:

with the content

title: "Helsingfors"
wikipedia: ""

I have in terms.html (in /themes/hugo-xmag/layouts/_default/terms.html) added {{.Params.wikipedia}}, like so:

    {{ range $key, $value := .Data.Terms }}
      <a href="{{ (print "/" $.Data.Plural "/" $key) | relURL }}">
        {{ $key }}
      ({{ len $value }}) {{ .Params.wikipedia }}
    {{ end }}

but this leads to an error. What would be the correct way to access the metadata for term? Thank you for help!

Iterate over the page collection instead.

  {{ range .Pages }}
    <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
    ({{ .Params.wikipedia }})
  {{ end }}