Template:User:Sarri.greek/recognizeaffix

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Module:User:Sarri.greek/recognizeaffix {{#invoke:User:Sarri.greek/recognizeaffix|affix}}

Module error: The module returned a nil value. It is supposed to return an export table.

Why does it work at wikt:el:Template:recognizeaffix ? = wikt:el:Module:recognizeaffix


tests
write expected output
Template test
{{Template:User:Sarri.greek/recognizeaffix|-ία}} suffix suffix
{{Template:User:Sarri.greek/recognizeaffix|προ-}} prefix prefix
{{Template:User:Sarri.greek/recognizeaffix|-ό-}} infix infix
{{Template:User:Sarri.greek/recognizeaffix|λέξη}} combining form combining form
standalone test
{{#invoke:User:Sarri.greek/recognizeaffix|affix|-ία}} suffix suffix
{{#invoke:User:Sarri.greek/recognizeaffix|affix|προ-}} prefix prefix
{{#invoke:User:Sarri.greek/recognizeaffix|affix|-ο-}} infix infix
{{#invoke:User:Sarri.greek/recognizeaffix|affix|λεκτικός}} combining form combining form


test ifeq

[edit]

this works. {{#ifeq:{{#if:{{{1|}}}|{{{1|}}}|{{PAGENAME}}}}|table|yes|no}}

  • {{Template:User:Sarri.greek/recognizeaffix|table}}
    combining form
  • {{Template:User:Sarri.greek/recognizeaffix|da}}
    combining form
  • test at a pagename {{Template:User:Sarri.greek/recognizeaffix|{{PAGENAME}}}}
    combining form
  • test at table {{Template:User:Sarri.greek/recognizeaffix}}
    FAIL