Thread:User talk:CodeCat/Giving function arguments in templates/reply (4)

I would recommend looking at Module:sl-headword. Slovene has no transliterations, but many other aspects, such as the need to always provide an accented headword, are the same. I wrote the module some time ago and would probably do some things different now, but it's a start. I may actually bring it up to standard soon, and then you can take your code from it and adapt it to Serbo-Croatian.