টেমপ্লেট:সময় আগে/নথি: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Aftabuzzaman ব্যবহারকারী টেমপ্লেট:Time ago/নথি পাতাটিকে টেমপ্লেট:সময় আগে/নথি শিরোনামে স্থানান্তর করেছ...
সম্পাদনা সারাংশ নেই
১ নং লাইন:
{{Documentation subpage}}
{{high-risk|100104,000+}}
{{লুয়া|মডিউল:সময় আগে}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
The '''Time ago''' template calculates the amount of time which has passed since a provided timestamp. The result is a string similar to one of the examples below. This template ''should not'' be used with "subst" unless you don't want the stamp to change as the user refreshes the page.
 
Note that due to Wikipedia's caching mechanisms, you may need to [[WP:PURGE|purge]] a page using this template to update the dynamic value. See the section [[#Purge|Purge]] below.
 
'''সময় আগে''' একটি গণনা টেমপ্লেট যা টেমপ্লেটটিতে দেয়া সময় ও তারিখ অনুসারে গণনা করে।
The result is rounded down. "Month" is defined as 31 days.
 
=== ব্যবহার ===
* <code><nowiki>{{</nowiki>'''Timeসময় agoআগে'''|''timestamp সময় ও তারিখ''<nowiki>}}</nowiki></code>
 
The timestamp can be almost any solid, readable format but to avoid ambiguity mistakes, one of the styles below is preferred.
 
* <code>magnitude</code> parameter can be set to explicitly use certain unit. Allowedঅনুমোদিত valuesমানগুলি areহল: <code>secondsসেকেন্ড</code>, <code>minutesমিনিট</code>, <code>hoursঘণ্টা</code>, <code>daysদিন</code>, <code>weeksসপ্তাহ</code>, <code>monthsমাস</code> andএবং <code>yearsবছর</code>.
* <code>min_magnitude</code> parameter can be set to use the specified unit or bigger units. Allowedঅনুমোদিত valuesমানগুলি areহল: <code>secondsসেকেন্ড</code>, <code>minutesমিনিট</code>, <code>hoursঘণ্টা</code>, <code>daysদিন</code>, <code>monthsসপ্তাহ</code>, <code>মাস</code> andএবং <code>yearsবছর</code>.
* <code>ago</code> parameter can be set to override the default usage of the text "<code>ago</code>".
 
 
==== বিশোধন ====
=== শোধন লিংক ===
Add the parameter {{para|purge|yes}} to add a [[WP:PURGE|purge]] link.
 
=== উদাহরণ ===
* <tt><nowiki>{{Timetlc|সময় agoআগে| -83 minutes}}</nowiki></tt> → '''{{Timeসময় agoআগে|-83 minutes}}'''
* <tt><nowiki>{{Timetlc|সময় agoআগে| -334 minutes}}</nowiki></tt> → '''{{Timeসময় agoআগে|-334 minutes}}'''
* {{tlc|সময় আগে| +334 minutes}} → '''{{সময় আগে|+334 minutes}}'''
* <tt><nowiki>{{Time ago|{{REVISIONTIMESTAMP}}}}</nowiki></tt> → '''{{Time ago|{{REVISIONTIMESTAMP}}}}'''
* <tt>{{tlc|সময় আগে|<nowiki>{{Time ago| Jan 21, 2001 3:45 PMREVISIONTIMESTAMP}}</nowiki></tt>}} → '''{{Timeসময় agoআগে|Jan 21 2001 3:45 PM{{REVISIONTIMESTAMP}}}}'''
* <tt><nowiki>{{Timetlc|সময় agoআগে| NovJan 621, 20082001 3:45 PM}}</nowiki></tt> → '''{{Timeসময় agoআগে|NovJan 21 2001 63:45 2008PM}}'''
* {{tlc|সময় আগে| 3:45 pm, 21 Jan 2001}} → '''{{সময় আগে|3:45 pm, 21 Jan 2001}}'''
* <tt><nowiki>{{Time ago| Nov 6 2008|magnitude=weeks}}</nowiki></tt> → '''{{Time ago| Nov 6 2008|magnitude=weeks}}'''
* <tt><nowiki>{{Timetlc|সময় agoআগে| Nov 6 2008|min_magnitude=days}}</nowiki></tt> → '''{{Timeসময় agoআগে|Nov 6 2008|min_magnitude=days}}'''
* <tt><nowiki>{{Timetlc|সময় agoআগে| Nov 6 2008|min_magnitude3=yearsmagnitude=সপ্তাহ}}</nowiki></tt> → '''{{Timeসময় agoআগে| Nov 6 2008|min_magnitudemagnitude=yearsসপ্তাহ}}'''
* <tt><nowiki>{{Timetlc|সময় agoআগে| Nov 6 2008|ago3=in the pastmin_magnitude=দিন}}</nowiki></tt> → '''{{Timeসময় agoআগে|Nov 6 2008|agomin_magnitude=in the pastদিন}}'''
* <tt><nowiki>{{Timetlc|সময় agoআগে| Nov 6 2008|purge3=min_magnitude=yesবছর}}</nowiki></tt> → '''{{Timeসময় agoআগে|Nov 6 2008|purgemin_magnitude=yesবছর}}'''
* {{tlc|সময় আগে| Nov 6 2008|3=ago=আগে থেকে}} → '''{{সময় আগে|Nov 6 2008|ago=আগে থেকে}}'''
* {{tlc|সময় আগে| Nov 6 2008|3=purge=yes}} → '''{{সময় আগে|Nov 6 2008|purge=yes}}'''
* {{tlc|সময় আগে| 2008-11-06}} → '''{{সময় আগে|2008-11-06}}'''
* <code><nowiki>{{সময় আগে| June 1, 2009|spellout=yes}}</nowiki></code> &rarr; '''{{সময় আগে|June 1, 2009|spellout=yes}}'''
* <code><nowiki>{{সময় আগে| June 1, 1999|spellout=yes}}</nowiki></code> &rarr; '''{{সময় আগে|June 1, 1999|spellout=yes}}'''
* <code><nowiki>{{সময় আগে| June 1, 2009|spellout=auto}}</nowiki></code> &rarr; '''{{সময় আগে|June 1, 2009|spellout=auto}}'''
* <code><nowiki>{{সময় আগে| June 1, 1999|spellout=auto}}</nowiki></code> &rarr; '''{{সময় আগে|June 1, 1999|spellout=auto}}'''
* <code><nowiki>{{সময় আগে| June 1, 1989|spellout=yes|spelloutmax=15}}</nowiki></code> &rarr; '''{{সময় আগে|June 1, 1989|spellout=yes|spelloutmax=15}}'''
* <code><nowiki>{{সময় আগে| June 1, 1989|spellout=yes|spelloutmax=25}}</nowiki></code> &rarr; '''{{সময় আগে|June 1, 1989|spellout=yes|spelloutmax=25}}'''
* {{tlc|সময় আগে| নভেম্বর ৬ ২০০৮}} → '''{{সময় আগে|নভেম্বর ৬ ২০০৮}}<sup>[১]</sup>'''
 
;<sup>[১]</sup>লক্ষনীয়
===আরও দেখুন===
সময় ও তারিখ অবশ্যই ইংরেজিতে দিতে হবে। কারণ মিডিয়াউইকি সফটওয়্যার বাংলায় গণনা করতে পারে না।
* {{tl|LastEditedBy}}
== টেমপ্লেটডাটা ==
{{TemplateDataHeader}}
<templatedata>
{
"description": "এই টেমপ্লেটটি প্রদত্ত সময় ও তারিখ থেকে চলে যাওয়া সময়ের পরিমাণ হিসাব করে।",
"params": {
"1": {
"label": "Timestamp",
"description": "Base timestamp for calculation of passed time. Example format: Nov 6 2008, see template documentation for other supported formats.",
"type": "string",
"required": true
},
"magnitude": {
"label": "magnitude",
"description": "Explicitly sets a specific unit to display return value. Allowed values are: seconds, minutes, hours, days, weeks, months and years.",
"type": "string",
"required": false
},
"min_magnitude": {
"label": "min_magnitude",
"description": "Sets a minimum unit to display return value. Allowed values are: seconds, minutes, hours, days, months and years.",
"type": "string",
"required": false
},
"ago": {
"label": "ago",
"description": "Parameter can be set to override the default usage of the text 'ago'.",
"type": "string",
"required": false
},
"purge": {
"label": "Purge link",
"description": "Add the parameter purge=yes to add a WP:PURGE link.",
"type": "string",
"required": false
},
"spellout": {
"type": "string/line",
"label": "Spell out numbers",
"description": "If set to \"yes\", \"y\", \"true\" or \"1\", numbers from 1 to 100 are spelled out as English words. If set to \"auto\", numbers from 1 to 9 are spelled out."
},
"spelloutmax": {
"type": "number",
"label": "Spell out max",
"description": "সর্বোচ্চ সংখ্যা একটি বাংলা শব্দ হিসেবে বানান করা"
}
}
}
</templatedata>
 
== আরও দেখুন ==
* {{tl|Last edited by}}
* {{tl|Years or months ago}}
* {{tl|Age}}
* {{tl|Start date and age}}
* {{tl|Birth date and age}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[বিষয়শ্রেণী:গাণিতিক সময় এবং তারিখ ফাংশন টেমপ্লেট]]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
</includeonly>