Forum:Date formats

I would like my work on Australian and English subjects to display the dates in Australian (and English) format "dd mmm yyyy" rather than in the US format "mmm dd, yyyy". To that end, I have created a template "date-int" as an alternative to "date", and add a parameter "df" (day first) to the templates "get birth" and "get death" (modelled on that parameter which already existed for the templates "Birth date" and "Death date").

As the next step in this process, I have added the "df" parameter to the template "Showinfo person".

The logical next step would be to add the "df" parameter to the template "Showinfo children", but the complexity of the recursive templates underlying it makes my head ache.

Rather than a series of parameters which have to be passed down from template to template, a simple alternative is a "global variable" in the /info file for the subject.

So here is my proposal: add another (optional) field to the /info structure, named "Day First", and modify the templates "get birth" and "get death" so that they "get" this field as the value for the "df" parameter to pass to the templates "Birth date" and "Death date" (respectively).

The parameter that I have added to "Showinfo person" can then by removed.

Comments?

Thurstan 07:19, 17 December 2008 (UTC)