We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dbd323 commit 2538060Copy full SHA for 2538060
src/wikitextprocessor/luaexec.py
@@ -440,11 +440,13 @@ def make_frame(
440
if m:
441
# Have argument name
442
k, arg = m.groups()
443
- if k.isdigit():
+ if k.isdigit() and not int(k) < 1:
444
+ # Greek wiktionary uses '0', '00' and '000' as
445
+ # parameter names...
446
k = int(k)
- if k < 1 or k > 1000:
447
+ if k > 1000:
448
ctx.warning(
- f"Template argument index <1 or >1000: {k=!r}",
449
+ f"Template argument index >1000: {k=!r}",
450
sortid="luaexec/477/20230710",
451
)
452
k = 1000
0 commit comments