Now in ruwiki there are 3 copies of the same template, which differ in the format of the output record.
first does not automatically recalculate or validate dates ( tests ok )
second differs in that it puts square brackets from the first ( tests show slight differences )
third takes the date in a different format and does the calculations automatically ( tests ok )
There was a fourth, but I replaced it with a module-based template I develop.
Since this module Calendar was the first I wrote, I would like to rewrite it again, taking out a separate part that allows you to conveniently combine text in lua, I will describe this task as a parent for this.
The task of the template is to translate dates from the Julian to the Gregorian calendar and vice versa. I want to add additional functionality for other calendars (since the translation is done through Julian days, this can be done relatively easily). What turned out to be difficult was the display of the work results - which part is indicated in brackets, in square or not. I would also like to make the module easily translatable.
Automatic recalculation or verification of manually entered parameters of en:Template talk:OldStyleDate is needed too.