টেমপ্লেট:বছর অনুযায়ী জন্ম

উইকিসংকলন থেকে
টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

Usage[সম্পাদনা]

For editors[সম্পাদনা]

Normal usage[সম্পাদনা]

All templates using the system have identical usage. The output will change depending on what information you provide it:

  • year categories: provide the century, decade, and year digits;
  • decade categories: provide the century and decade digits;
  • century categories: provide the century digit.

Examples:

1985 (year):
{{বছর অনুযায়ী মৃত্যু
|শতাব্দী = ১৯
|দশক = ৮
|বছর =৫
}}

1980s (decade):
{{বছর অনুযায়ী মৃত্যু
|শতাব্দী = ১৯
|দশক = ৮
|বছর =
}}

20th century:
{{বছর অনুযায়ী মৃত্যু
|শতাব্দী = ১৯
|দশক = 
|বছর =
}}

50:
{{বছর অনুযায়ী মৃত্যু
|শতাব্দী = 
|দশক = ৫
|বছর =০
}}

1250s BCE (decade):

{{বছর অনুযায়ী মৃত্যু
|শতাব্দী = ১৫
|দশক = ৫
|বছর =
 |era     = BCE
}}

1st century[সম্পাদনা]

Two slight changes are needed for the first century and first decade categories, because the digits normally given to the template aren't there (for example, there is no decade digit for year 5).

Decade one (years 1–9):
{{বছর অনুযায়ী মৃত্যু
|শতাব্দী = 
|দশক = ০
|বছর =
}}

First century category:
{{বছর অনুযায়ী মৃত্যু
|শতাব্দী = 
|দশক = 
|বছর =
}}

For coders[সম্পাদনা]

Note:
This template is not intended to be used directly by editors; if you are looking for documentation on a template like {{births by year}}, see For editors above. Currently, the following templates use this system:

Usage[সম্পাদনা]

This template is used as part of specific templates like {{deaths by year}} to generate lists of dated categories (century, decades, years). It deduces the depth from how much information is provided. The code below is standard (change values as appropriate):

{{categories by date
 |century = {{{century}}}
 |decade  = {{{decade}}}
 |year    = {{{year}}}
 |caption = Authors who died
 |name    = deaths
 |parentcat = Authors by date
 |era     = {{#switch:{{{era|}}}|BCE|BC=BCE}}
}}
  • century, decade, year: The date split into century, decade, and year digits.
  • caption: The text used as part of the category description (for example, "{caption} in the year 1986").
  • name: The text used in the categories (for example, [[Category:1986 {name}]]).
  • parentcat: The parent category that contains the current dated categories system.
  • era: toggles whether to add "BCE" to the category names.

Nested template[সম্পাদনা]

This template makes use of the nested template {{template:categories by date/list}} to generate lists of categories. This nested templates manipulates parameters in such a way as to minimize computation:

  • 1 (prefix digits): the digits of the year, excepting the last number.
  • 2 (suffix): text to add after the date; for example, s in 1980s works.
  • 3 (category label): the text in the category names; for example, works in 1980 works.
  • 4 (era): BCE if in that era.
Purpose Code Output
Common era
list years {{categories by date/list|১৯৮||মৃত্যু}} ১৯৮০ · ১৯৮১ · ১৯৮২ · ১৯৮৩ · ১৯৮৪ · ১৯৮৫ · ১৯৮৬ · ১৯৮৭ · ১৯৮৮ · ১৯৮৯
list decades {{categories by date/list|১৯|০-এর দশকে|মৃত্যু}} ১৯০০-এর দশকে · ১৯১০-এর দশকে · ১৯২০-এর দশকে · ১৯৩০-এর দশকে · ১৯৪০-এর দশকে · ১৯৫০-এর দশকে · ১৯৬০-এর দশকে · ১৯৭০-এর দশকে · ১৯৮০-এর দশকে · ১৯৯০-এর দশকে
Before common era
list years {{categories by date/list|৫০||মৃত্যু|খ্রিষ্টপূর্ব}} ৫০০ · ৫০১ · ৫০২ · ৫০৩ · ৫০৪ · ৫০৫ · ৫০৬ · ৫০৭ · ৫০৮ · ৫০৯
list decades {{categories by date/list|৫|০-এর দশকে|deaths|BCE}} ৫০০-এর দশকে · ৫১০-এর দশকে · ৫২০-এর দশকে · ৫৩০-এর দশকে · ৫৪০-এর দশকে · ৫৫০-এর দশকে · ৫৬০-এর দশকে · ৫৭০-এর দশকে · ৫৮০-এর দশকে · ৫৯০-এর দশকে

See also[সম্পাদনা]