Կաղապար:DBDecadesInCentury/doc

Վիքիպեդիայից՝ ազատ հանրագիտարանից
Jump to navigation Jump to search

Usage[խմբագրել կոդը]

{{DBDecadesInCentury|centurynumber | centuryname | type }} where
–––:centurynumber 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 "Organizations established", "music", etc.

So if one were to code

{{DBDecadesInCentury|17|18th|Museums established}} it would generate a reference box referring to [[category:Museums established in the 18th century]] and would generate links for Museums established in the 1700s, 1710s etc. through Museums established in the 1790s.

See also[խմբագրել կոդը]

  • {{BDDecadesInCentury}} – similar template for use when the year precedes type information, such as category:18th century computer programs