भारत की संस्कृति के लिए... भाषा की उन्नति के लिए... साहित्य के प्रसार के लिए
Changes
Kavita Kosh से
{{#ifeq:{{#expr:{{#var:birthyear}}/{{#var:birthyear}}}}|1|{{#vardefine:yearIsNumeric|1}}|{{#vardefine:yearIsNumeric|0}}}}
<!--If birth year is numric -then extract rest of the characters as birth day (i.e. 14 अगस्त in the example we are taking)-->
{{#ifeq:{{#var:yearIsNumeric}}|1|{{#ifeq:{{#var:birthdatelength}}|4||{{#vardefine:birthday|{{#sub:{{#var:birthdate}}|0|{{#expr:{{#var:birthdatelength}}-4}}}}}}}}}}
<!--If birth year is not numeric -assign the entire string provided by the user as birth day. For example: 14 अगस्त-->
{{#ifeq:{{#var:yearIsNumeric}}|0|{{#vardefine:birthday|{{#var:birthdate}}}}}}
<!--Assign categories-->
{{#ifeq:{{#var:birthdatelength}}|0||{{#ifeq:{{#len:{{#var:birthday}}}}|0||[[Category:{{#var:birthday}} को जन्म]]}}{{#ifeq:{{#var:yearIsNumeric}}|1|[[Category:{{#var:birthyear}} में जन्म]]}}}}