Open main menu

Changes

Mismatched bold formatting repaired
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

=== Usage ===
'''{{tlx|BDDecadesInCentury|''centuryyear'' | ''centuryname'' | ''type ''}}''' where<br />
–––:'''''centuryyear''''' is the two-digit century, like '''18''' for 1800 to 1899, '''19''' for 1900–1999, '''20''' for 2000–2099 etc.<br />
–––:'''''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.<br />
–––:'''''type''''' is the type of item including this macro, such as '''works''', '''books''', '''movies''', '''plays''', etc.

So if one were to code

:'''<nowiki>{{</nowiki>BDDecadesInCentury|17|18th|computer programs}}''' it would generate a reference box referring to '''<nowiki>[[</nowiki>category:18th century computer programs]]''' and would generate links for ''1700s computer programs'', 1710s etc. through ''1790s computer programs''.

==== Optional parameters ====
* <code>|left=yes</code> – aligns the box to the left, instead of the default right alignment
* <code>|nocent=yes</code> – omits the link to the century category, which by default is the first item in the box

=== See also ===
* {{tl|DBDecadesInCentury}} &ndash; similar template for use when the year trails type information, e.g. [[:Category:Organizations established in the 1790s]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
</includeonly>
Anonymous user