In the Portuguese Wiktionary, the template [[Predefinição:conj.ru.1.imperf]] is being parsed has having duplicated parameter 24, for instance (among others). Nevertheless, it is only given once. I believe the transitions of numbered vs unnumbered parmeteres is confusing the validation mechanism. It only complains about duplication of numbered parameters.
Description
Event Timeline
It's the template that's broken, not the duplication detection code. Passing a parameter with a number for a name doesn't cause that number to be skipped. Look at https://en.wikipedia.org/wiki/User:Jackmcbarn/positional and https://en.wikipedia.org/wiki/User:Jackmcbarn/positional_template for an example.
Even if that is the case, there is something off. I gave the example of parameter 24 on purpose. If you count unnumbered parameters, you will see there is less than 24, so it could never be duplicated. Nevertheless, the validation complains about duplication of parameter 24. How come?
Even if your examples seem to support you, I can't verify your statement in that template.
In:
14 = {{{1}}}{{{2 | а}}}{{#if:{{{ox | }}} | ́ | }}ли |
<!-- futuro -->
[[буду]] {{{1}}}{{{2 | а}}}{{#if:{{{ox | }}} | ́ | }}ть |
and acording to your rule, that [[буду]] text should appear not in parameter 15 but in parameter 12 (if you count previous unnumbered parameters, there are 11). But in fact, it does appear in position of parameter 15.
Could it be a wiki-dependent behavior?
I will adjust the template soon, but I will leave it for now so you can verify what I'm writing about.
Got it. There were some extra pipes at the end of some parameters therefore increasing the number of unnumbered parameters. Thank you for your patience.