Difference between revisions of "Template:FormDateField"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | + | <!-- show era if necessary | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->{{#ifeq: {{{showera|}}}|yes|{{#ifeq: {{{showcaptions|yes}}}|yes|''Era:'' |}}{{{field|{{{property|}}} Era|input type=dropdown|values=BCE,CE{{#ifeq:{{{adddefault|}}}|yes||default=CE|}}{{#var:varMandatoryYear}}}}}|}}<!-- | -->{{#ifeq: {{{showera|}}}|yes|{{#ifeq: {{{showcaptions|yes}}}|yes|''Era:'' |}}{{{field|{{{property|}}} Era|input type=dropdown|values=BCE,CE{{#ifeq:{{{adddefault|}}}|yes||default=CE|}}{{#var:varMandatoryYear}}}}}|}}<!-- | ||
--><!-- | --><!-- | ||
Line 69: | Line 8: | ||
-->}}<!-- | -->}}<!-- | ||
--><!-- | --><!-- | ||
− | --> {{#ifeq: {{{showcaptions|yes}}}|yes|''Year:'' |}}{{{field|{{{property|}}} Year|input type=regexp|regexp={{#var:varRegexp}}|size=4|message=The year field can accept only integers and must be 4 digits in length!{{#ifeq:{{{adddefault|}}}|yes||default={{CURRENTYEAR}}|}}{{#var:varMandatoryYear}}}}} | + | --> {{#ifeq: {{{showcaptions|yes}}}|yes|''Year:'' |}}{{{field|{{{property|}}} Year|input type=regexp|regexp={{#var:varRegexp}}|size=4|message=The year field can accept only integers and must be 4 digits in length!{{#ifeq:{{{adddefault|}}}|yes||default={{CURRENTYEAR}}|}}{{#var:varMandatoryYear}}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 00:37, 1 June 2020
Year: {{{field| Year|input type=regexp|regexp=/^\d{4}$!^$/|size=4|message=The year field can accept only integers and must be 4 digits in length!}}}