When I create a character's infobox in the wiki i've linked. There is always "#vardefine:lcrace|dwarf" in the race bar.
This happens with every character I put in. This comes from this https://stelladnd.fandom.com/wiki/Template%3AInfobox_Character/RaceCategorization - Which is a thing that cattergorizes the characters by races. For some reason it writes "#vardefine:lcrace|dwarf" which I don't understand.
What it should be doing is what the other cattergorizers do. For example the class categorizer. I write in my characters class and then it automatically adds it to the cattegory "Barbarian" for example. This doesn't happen with the race cattegorizer though which is the problem. It just writes the #vardefine:lcrace|dwarf and doesnt add it to the cattegory as planned.
Vardefine is an extension that's not enabled on default. I take it you copied it from another wiki? It worked there because they had the extension. Send a request to have it enabled to Special:Contact, or look for ways to write your template without it.