Topic on Project:Support desk

Error in the sequence of orders: the "label" function does not exist.

5
Summary by Jomagalo

Solved thanks to @Ammarpad. The problem was a confusion of templates in the language

Jomagalo (talkcontribs)

The Label template throws me an error saying that the "label" function does not exist. How can i fix this?

MW version 1.34.0

Thank you

Malyacko (talkcontribs)

@Jomagalo Please explain what "the Label template" is and provide clear steps to reproduce that leave no room for interpretation.

Jomagalo (talkcontribs)
Ammarpad (talkcontribs)

After importing the module from English Wikipedia, you made this edit where you attempted translating it to Spanish. That's where your problem originated. You renamed (among others) the 'label' function to 'enlace' and then in the Template you invoked the now non-existent 'label' function. You have to invoke 'enlace' now, and for all other functions you changed, you've to invoke only the new name too and forget the older English ones.

Jomagalo (talkcontribs)

@Ammarpad Thank you very much, I have been able to solve it with your help.