الگو:BDDecadesInCentury (میلادی)

[[:رده:{{{3}}} سده {{{2}}} (میلادی)|{{{3}}} سده {{{2}}} (میلادی)]]: [[:رده:{{{3}}} دهه −۱۹۰ (میلادی)|−۱۹۰]]–[[:رده:{{{3}}} دهه {{{1}}}۰۰ (میلادی)|{{{1}}}۰۰]]–[[:رده:{{{3}}} دهه {{{1}}}۱۰ (میلادی)|{{{1}}}۱۰]]–[[:رده:{{{3}}} دهه {{{1}}}۲۰ (میلادی)|{{{1}}}۲۰]]–[[:رده:{{{3}}} دهه {{{1}}}۳۰ (میلادی)|{{{1}}}۳۰]]–[[:رده:{{{3}}} دهه {{{1}}}۴۰ (میلادی)|{{{1}}}۴۰]]–[[:رده:{{{3}}} دهه {{{1}}}۵۰ (میلادی)|{{{1}}}۵۰]]–[[:رده:{{{3}}} دهه {{{1}}}۶۰ (میلادی)|{{{1}}}۶۰]]–[[:رده:{{{3}}} دهه {{{1}}}۷۰ (میلادی)|{{{1}}}۷۰]]–[[:رده:{{{3}}} دهه {{{1}}}۸۰ (میلادی)|{{{1}}}۸۰]]–[[:رده:{{{3}}} دهه {{{1}}}۹۰ (میلادی)|{{{1}}}۹۰]]–[[:رده:{{{3}}} دهه ۱۰۰ (میلادی)|۱۰۰]]

Usage: {{BDDecadesInCentury|centuryyear | centuryname | type }} where

centuryyear is the two-digit century, like 18 for 1800 to 1899, 19 for 1900-1999, 20 for 2000-2099 etc.
centuryname is the equivalent name of that century, such as 19th for the period 1801-1900 (or 1800-1899 depending on your opinion as to whether year '0' is part of that century), 20th for 1900-1999 or 1901-2000, 21st for 2000-2099 or 2001-2100 etc.

–––:type is the type of item including this macro, such as works, books, movies, plays, etc. So if one were to code {{BDDecadesInCentury|17|16th|computer programs}} it would generate a reference box referring to [[category:16th century computer programs]] and would generate links for 1700s computer programs, 1710s etc. through 1790s computer programs.