If you include a template with the NUMBEROFPAGEVIEWS magic word, it shows the pageviews of the template page. This is nonsensical and in contrast to magic words like PAGENAME. NUMBEROFPAGEVIEWS should contain the views of the page that calls the template.
Example: https://sandbox.semantic-mediawiki.org/wiki/Utilisateur:Bescheid/numberofpages