Create an input widget for the given date fragment
If type is "t", uses a text widget for the fragment, with the given
size.
Otherwise, determines the proper widget based on the element flags,
which may be text or a picklist
Parameters:
element_reference fragment size type value mode (defaults to "edit") tag_attributes (optional)