Template question

Fragment of a discussion from User talk:Rua

Does this mean that it needs to be an unnamed, ordered parameter to pass through that "wrapper" template to {{lv-decl-noun-1}}?

Neitrāls vārds (talk)12:14, 4 July 2015

I'm not sure why the wrapper template is even needed. It doesn't appear to do anything useful at all. Could you not just use {{lv-decl-noun-1}} directly?

CodeCat12:15, 4 July 2015

I guess the wrapper saves typing the declension after the template name (-1, -2, etc.) (I haven't really edited lv templates.)

It does work using the template directly except now I have a category that's not getting some unnamed, ordered parameter at tēvs#Declension.

Neitrāls vārds (talk)12:21, 4 July 2015

I've made some changes to the wrapper so that it also passes the keep-s parameter to the template. So it should work now. But I think that the Latvian templates would benefit from Lua.

CodeCat12:25, 4 July 2015

Great, thank you! Looks like it is passing it through the wrapper now.

Indeed, Lua could perhaps be used as lv inflection generally tends to be pretty straightforward (I haven't ever looked into it though as Livonian tends to be rather "messy" with many variable to specify and I haven't edited Latvian much.)

Neitrāls vārds (talk)12:35, 4 July 2015

The nice thing about Lua is that you can do string operations. That makes it possible to look at the letters in a word and automatically change endings depending on them. You could probably eliminate some parameters that way.

CodeCat12:38, 4 July 2015