lucaswerkmeister / tool-lexeme-forms

Wikidata tool to create lexemes with pre-populated forms (e. g. declensions or conjugations)
https://lexeme-forms.toolforge.org/
Other
11 stars 7 forks source link

Support generating forms from lemma in edit mode #199

Closed nikkiwd closed 9 months ago

nikkiwd commented 9 months ago

It would be nice if the Wikifunctions support could also generate forms from the lemma when in edit mode.

e.g. I tried to generate the forms on https://lexeme-forms.toolforge.org/template/german-noun-neuter/edit/L920655 but nothing happened.

lucaswerkmeister commented 9 months ago

That should be supported (since 91cc7061cf) and just worked for me on the page you linked; are you sure you waited long enough? (Cf. #198.)

nikkiwd commented 9 months ago

I tried again and I don't see any network requests being made.

Looking at wikifunctions.js, I don't see any special handling of the lemma on edit pages. Did you manually copy the lemma to the first form or something?

lucaswerkmeister commented 9 months ago

I guess I did, yeah – I didn’t realize that was the part you meant was missing.

lucaswerkmeister commented 9 months ago

This should work now.