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

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Aftabuzzaman ব্যবহারকারী টেমপ্লেট:Start date and age/নথি পাতাটিকে টেমপ্লেট:শুরুর তারিখ ও বয়স/নথি শিরোনামে স্থ...
+
১ নং লাইন:
{{নথির উপপাতা}}
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
'''{{tl|শুরুর তারিখ ও বয়স}}''' টেমপ্লেট একটি ঘটনা বা সত্তা যে তারিখে শুরু বা তৈরি করা হয়েছে তা প্রদর্শন করে।
 
== ব্যবহার ==
;সাধারণ ব্যবহার
===Syntax===
: <code><nowiki>{{শুরুর তারিখ ও বয়স|yyyy|mm|dd}}</nowiki></code> to display formatted as:
;Full syntax
: {{xt|{{শুরুর তারিখ ও বয়স|2010|03|25}}}}
:<code><nowiki>{{Start date and age|yyyy|mm|dd|df=yes|br=yes}}</nowiki></code>
: <code><nowiki>{{শুরুর তারিখ ও বয়স|yyyy|mm|dd|df=yes}}</nowiki></code> to display formatted as:
: {{xt|{{শুরুর তারিখ ও বয়স|2010|03|25|df=yes}}}}
 
;সম্পূর্ণ গঠন
;প্রচলিত ব্যবহার
: <code><nowiki>{{Startশুরুর dateতারিখ and ageবয়স|yyyy|mm|dd|df=yes|p=yes|br=yes}}</nowiki></code> to display result in {{xt|March 4, 2010; 4 months ago}}formatted formatas:
: {{xt|{{শুরুর তারিখ ও বয়স|2010|03|25|df=yes|p=yes|br=yes}}}}
:<code><nowiki>{{Start date and age|yyyy|mm|dd|df=yes}}</nowiki></code> to display result in {{xt|4 March 2010; 4 months ago}} format
 
== প্যারামিটার ==
;পরামিতি বর্ণনা
:{| class="wikitable"
! প্যারামিটার
! অবস্থা
! বর্ননা
|-
| 1
! স্থিতিমাপ
| required
! বর্ণনা
| A four-digit number indicating the year.
|-
| 2
|''yyyy''
| optional
|Four digits indicating the year. The year must always appear in a 4-digits form.
| A number between 1 and 12 indicating the month (leading zeros in the number are ignored). The month may also be specified as a name or abbreviation (e.g. "August" or "Aug").
|-
| 3
|''mm''
| optional
|A number between 1 to 12, indicating the month. Leading zeros in the number are ignored.
| A number between 1 and 31 indicating the day of the month (leading zeros in the number are ignored).
|-
| df=
|''dd''
| optional
|A number between 1 to 31, indicating the day of the month. Leading zeros in the number are ignored.
| If the parameter '''df''' equals '''yes''', '''y''', or '''1''', the date will be displayed in DMY format: {{xt|4 March 2010}}. When this parameter is not included or set to some other value, the date will be displayed in MDY format: {{xt|March 4, 2010}}.
|-
| p=<br/>paren=
|''df=''
| optional
|The optional parameter '''df''' can either be set to '''yes''' or anything other than '''yes'''. When set to '''yes''', date will be displayed in DMY format: {{xt|4 March 2010}}. When set something other than '''yes''' or when this parameter is not included, date will be displayed in MD,Y format: {{xt|March 4, 2010}}.
| If the parameter '''p''' or '''paren''' equals '''yes''', '''y''', or '''1''', the age will be displayed within parentheses. When this parameter is not included or set to some other value, the date and age are separated by a semicolon and a breaking space.
|-
| br=
| optional
| If the parameter '''br''' equals '''yes''', '''y''', or '''1''', a line break will be inserted between the date and the age. When this parameter is not included or set to some other value, a breaking space will be inserted between the date and the age. This does not change the separating characters between the date and age which are either a semicolon (default setting) or parentheses (if '''p=yes''').
|}
 
==="df" (দিন আগে) and "mf" (মাস আগে)===
As for choosing the right format to use, consult [[Wikipedia:MOSNUM#Full date formatting|Manual of Style (dates and numbers): Full date formatting]].
The default output of this template is to display the month before the day (MDY). This default may not be appropriate for articles about events or entities in parts of the world where dates are commonly given with the day preceding the month (DMY). To display the day first, assign the '''df''' parameter a value of '''yes''', '''y''', or '''1''' (e.g. '''df=yes''').
 
If the default format is preferred, the parameter '''df''' may be used with value of '''no''', '''n''', or '''0''' (e.g. '''df=no'''). These values can assist [[WP:BOT|bots]] or other automated processing to detect the intended date format; omitting the '''df''' parameter may lead an editor or bot to change the format to an unintended value.
 
The preference to display the month first may also be indicated via the parameter '''mf''' (e.g. '''mf=yes'''). While not actually used by the template, this is another method of indicating that the default format is intended. Do not specify both "df" and "mf" parameters in the same use of the template.
 
== উদাহরণ ==
=== পূর্বনির্ধারিত বিভাজক: সেমিকোলন ===
{| class="wikitable" style="width:100%;"
! style="width:60%;" | গঠন
! style="width:40%;" | ফলাফল
|-
| colspan="2" bgcolor="#DDD" | '''সম্পূর্ণ তারিখ (বছর, মাস, দিন)'''
|''br=''
|-
|The optional parameter '''br''' can either be set to '''yes''' or anything other than '''yes'''. When set to '''yes''', a line break will be inserted between the date and the age. When set something other than '''yes''' or when this parameter is not included, a breaking space will be inserted between the date and the age. In either case, a semicolon separates the date and age, immediately before the line break or space.
| <code><nowiki>{{শুরুর তারিখ ও বয়স|২০১০|০১|০২}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|২০১০|০১|০২}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2008|Jan|09|df=no}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2008|Jan|09|df=no}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2003|January|05|mf=yes}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|January|05|mf=yes}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2010|1|2|df=yes}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2010|1|2|df=yes}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2008|Jan|9|df=y}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2008|Jan|9|df=y}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2003|January|5|df=1}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|January|5|df=1}}
|-
| ১০০ দিন আগে:<br /><code><nowiki>{{শুরুর তারিখ ও বয়স|</nowiki>{{#time:Y|now-100 days}}&#124;{{#time:n|now-100 days}}&#124;{{#time:j|now-100 days}}}}</code>
| {{শুরুর তারিখ ও বয়স|{{#time:Y|now-100 days}}|{{#time:n|now-100 days}}|{{#time:j|now-100 days}}}}
|-
| গতকাল:<br /><code><nowiki>{{শুরুর তারিখ ও বয়স|</nowiki>{{#time:Y|now-1 days}}&#124;{{#time:n|now-1 days}}&#124;{{#time:j|now-1 days}}}}</code>
| {{শুরুর তারিখ ও বয়স|{{#time:Y|now-1 days}}|{{#time:n|now-1 days}}|{{#time:j|now-1 days}}}}
|-
| আজ:<br /><code><nowiki>{{শুরুর তারিখ ও বয়স|</nowiki>{{#time:Y|now}}&#124;{{#time:n|now}}&#124;{{#time:j|now}}}}</code>
| {{শুরুর তারিখ ও বয়স|{{#time:Y|now}}|{{#time:n|now}}|{{#time:j|now}}}}
|-
| colspan="2" bgcolor="#DDD" | '''বছর ও মাস'''
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2001|9}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2001|9}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2002|09}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2002|09}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2003|Sep}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|Sep}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2004|September}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2004|September}}
|-
| colspan="2" bgcolor="#DDD" | '''শুধুমাত্র বছর'''
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2005}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2005}}
|}
 
=== ঐচ্ছিক বিভাজক: প্রথম বন্ধনী ===
===উদাহরণ===
{| class="wikitable" style="width:100%;"
! style="width:60%;" | গঠন
!Syntax
! style="width:40%;" | ফলাফল
!Result
|-
| colspan="2" bgcolor="#DDD" | '''Fullসম্পূর্ণ dateতারিখ (yearবছর, monthমাস, dayদিন)'''
|-
| <code><nowiki>{{Startশুরুর dateতারিখ and ageবয়স|2010|012003|02|15|p=yes}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|02|15|p=yes}}
| {{Start date and age|2010|01|02}}
|-
| <code><nowiki>{{Startশুরুর dateতারিখ and ageবয়স|20082003|0802|0915|df=y|p=y}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|02|15|df=y|p=yes}}
| {{Start date and age|2008|08|09}}
|-
| colspan="2" bgcolor="#DDD" | '''বছর ও মাস'''
| <code><nowiki>{{Start date and age|2003|07|05}}</nowiki></code>
| {{Start date and age|2003|07|05}}
|-
| <code><nowiki>{{Startশুরুর dateতারিখ and ageবয়স|20102003|102|2|dfp=yes1}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|02|p=1}}
| {{Start date and age|2010|1|2|df=yes}}
|-
| colspan="2" bgcolor="#DDD" | '''শুধুমাত্র বছর'''
| <code><nowiki>{{Start date and age|2008|8|9|df=yes}}</nowiki></code>
| {{Start date and age|2008|8|9|df=yes}}
|-
| <code><nowiki>{{Startশুরুর dateতারিখ and ageবয়স|2003|7|5|dfparen=yes}}</nowiki></code>
| {{Startশুরুর dateতারিখ and ageবয়স|2003|7|5|dfparen=yes}}
|}
 
=== সেমিকোলনসহ লাইনের ভঙ্গ ===
{| class="wikitable" style="width:100%;"
! style="width:60%;" | গঠন
! style="width:40%;" | ফলাফল
|-
| colspan="2" bgcolor="#DDD" | '''সম্পূর্ণ তারিখ (বছর, মাস, দিন)'''
| <code><nowiki>{{Start date and age|2009|9|9|br=yes}}</nowiki></code>
| {{Start date and age|2009|9|9|br=yes}}
|-
| Today:<br /><code><nowiki>{{Startশুরুর dateতারিখ and ageবয়স|</nowiki>{{#time:Y2003|now}}&#124;{{#time:n02|now}}&#124;{{#time:j15|now}}br=yes}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|02|15|br=yes}}
| {{Start date and age|{{#time:Y|now}}|{{#time:n|now}}|{{#time:j|now}}}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2003|02|15|df=y|br=y}}</nowiki></code>
| Yesterday:<br /><code><nowiki>{{Start date and age|</nowiki>{{#time:Y|now-1 days}}&#124;{{#time:n|now-1 days}}&#124;{{#time:j|now-1 days}}}}</code>
| {{শুরুর তারিখ ও বয়স|2003|02|15|df=y|br=y}}
| {{Start date and age|{{#time:Y|now-1 days}}|{{#time:n|now-1 days}}|{{#time:j|now-1 days}}}}
|-
| colspan="2" bgcolor="#DDD" | '''Yearবছর and monthমাস'''
|-
| <code><nowiki>{{Startশুরুর dateতারিখ and ageবয়স|20022003|0302|br=1}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|02|br=1}}
| {{Start date and age|2002|03}}
|-
| colspan="2" bgcolor="#DDD" | '''শুধুমাত্র বছর'''
| <code><nowiki>{{Start date and age|2002|04}}</nowiki></code>
| {{Start date and age|2002|04}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2003|br=yes}}</nowiki></code>
| colspan="2" bgcolor="#DDD" | '''Year only'''
| {{শুরুর তারিখ ও বয়স|2003|br=yes}}
|}
 
=== প্রথম বন্ধনীসহ লাইনের ভঙ্গ ===
{| class="wikitable" style="width:100%;"
! style="width:60%;" | গঠন
! style="width:40%;" | ফলাফল
|-
| colspan="2" bgcolor="#DDD" | '''সম্পূর্ণ তারিখ (বছর, মাস, দিন)'''
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2003|02|15|p=yes|br=yes}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|02|15|p=yes|br=yes}}
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2003|02|15|df=y|p=y|br=y}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|02|15|df=y|p=y|br=y}}
|-
| colspan="2" bgcolor="#DDD" | '''বছর ও মাস'''
|-
| <code><nowiki>{{শুরুর তারিখ ও বয়স|2003|02|p=1|br=1}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|02|p=1|br=1}}
|-
| colspan="2" bgcolor="#DDD" | '''শুধুমাত্র বছর'''
|-
| <code><nowiki>{{Startশুরুর dateতারিখ and ageবয়স|20022003|paren=yes|br=yes}}</nowiki></code>
| {{শুরুর তারিখ ও বয়স|2003|paren=yes|br=yes}}
| {{Start date and age|2002}}
|}
 
== সমর্থনকারী টেমপ্লেট ==
== মাইক্রোবিন্যাসে ব্যবহার ==
* [[Template:MONTHNAME]] – display name of month for a given number 1 (January) through 12 (December).
* [[Template:Time ago]] – display number of days, months, or years ago (for dates given as <code><nowiki>|yyyy|mm|dd</nowiki></code>).
* [[Template:Years or months ago]] – display number of months or years ago (for dates given as <code><nowiki>|yyyy|mm</nowiki></code> or <code><nowiki>|yyyy</nowiki></code>).
* [[Template:Yesno]] – allows optional formatting parameters to accept values other than "yes" (such as "y" or "1").
 
== মাইক্রোবিন্যাসের ব্যবহার ==
{{UF-hcal-part}}
 
== আরও দেখুন ==
* {{tl|সময় আগে}} এবং {{tl|Years or months ago}}
* {{tl|Start date}}
* {{tl|Start- date and years ago}} এবং {{tl|বয়স}}
* {{tl|End date}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[বিষয়শ্রেণী:তারিখ-গণনা টেমপ্লেট|{{PAGENAME}}]]
 
 
</includeonly>
{{জন্ম, মৃত্যু ও বয়স টেমপ্লেট|dates}}
 
<includeonly>
[[বিষয়শ্রেণী:তারিখ-গণনা টেমপ্লেট|{{PAGENAME}}]]</includeonly>