টেমপ্লেট:বছর, মাস ও দিনে বয়স: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Jayantanth (আলোচনা | অবদান)
fix
নতুন টেমপ্লেট
১ নং লাইন:
{{For year month day/display
<noinclude>{{pp-template}}</noinclude>{{For year month day/Exp|{{ #ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 > {{{month|12}}}
|years={{#expr:{{CURRENTYEAR}}-{{{year|{{CURRENTYEAR}}}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month|{{CURRENTMONTH}}}}}
| {{ #expr: {{ #expr: ((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0}} - {{{year|2005}}} }}
|0
| {{ #ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 < {{{month|12}}}
|{{#ifexpr:{{CURRENTMONTH}}<{{{month|{{CURRENTMONTH}}}}}
| {{ #expr: {{ #expr: ((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0}} - {{{year|2005}}} - 1 }}
}}|1
| {{ #ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0))) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0)*100 >= {{{day|31}}}
|{{#ifexpr:{{CURRENTDAY}}>={{{day|{{CURRENTDAY}}}}}
| {{ #expr: {{ #expr: ((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0}} - {{{year|2005}}} }}
|0
| {{ #expr: {{ #expr: ((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0}} - {{{year|2005}}} - 1 }}
}}|1
}}
}}
}}|{{#ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0))) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0)*100 >= {{{day|31}}}
}}}}
| {{#ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 - {{{month|31}}} >= 0
|months={{#expr:{{CURRENTMONTH}}-{{{month|{{CURRENTMONTH}}}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day|{{CURRENTDAY}}}}}
| {{#expr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 - {{{month|12}}} }}
|{{#ifexpr:{{CURRENTMONTH}}>={{{month|{{CURRENTMONTH}}}}}
| {{ #expr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 - {{{month|12}}} + 12 }}
|0
|12
}}
|{{#ifexpr:{{CURRENTMONTH}}>{{{month|{{CURRENTMONTH}}}}}
|-1
|11
}}
}}}}
|days={{#expr:{{CURRENTDAY}}-{{{day|{{CURRENTDAY}}}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day|{{CURRENTDAY}}}}}
|0
|{{#switch:{{CURRENTMONTH}}
|5|7|10|12=30
|1|2|4|6|8|9|11=31
|3={{#ifexpr:{{CURRENTYEAR}}mod400=0 or ({{CURRENTYEAR}}mod4=0 and {{CURRENTYEAR}}mod100>0)
|29
|28
}}
}}
| {{#ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 - {{{month|31}}} > 0
}}}}
| {{ #expr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 - {{{month|12}}} - 1 }}
}}<noinclude>{{documentation}}</noinclude>
| {{ #expr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 - {{{month|12}}} + 11 }}
}}
}}|{{#ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0))) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0)*100 >= {{{day|31}}} | {{ #expr: {{ #expr: (((({{#time:xNYmdHis}} / 1000000) round 0))) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|31}}} }} | {{#ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 5 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 7 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 10 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 12 | {{ #expr: {{ #expr: (((({{#time:xNYmdHis}} / 1000000) round 0))) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|31}}} + 30 }} | {{#ifexpr: (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 1 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 2 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 4 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 6 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 8 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 9 or (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0)*100 = 11 | {{ #expr: {{ #expr: (((({{#time:xNYmdHis}} / 1000000) round 0))) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|31}}} + 31 }} | {{#ifexpr: ((({{#time:xNYmdHis}} / 1000000) round 0)) /10000 round 0 mod 4 = 0 | {{ #expr: {{ #expr: (((({{#time:xNYmdHis}} / 1000000) round 0))) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|31}}} + 29 }} | {{ #expr: {{ #expr: (((({{#time:xNYmdHis}} / 1000000) round 0))) - (((({{#time:xNYmdHis}} / 1000000) round 0)) /100 round 0)*100 }} - {{{day|31}}} + 28 }} }} }} }} }}}}<noinclude>
{{Documentation}}
</noinclude>