I've just added Template:USERNAME to a page in my wiki
But it doesnt work... what the problem?
You have to import the InputUsername script into the MediaWiki:ImportJS page for it to work.
The instructions are actually in the template page you linked: https://templates.fandom.com/wiki/Template:USERNAME#depend
What do you think?