Bản mẫu:TOCyears/doc
Giao diện
Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:TOCyears. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
Bản mẫu này sử dụng Lua: |
This creates a customisable table of contents for an article whose section headers consist of dates; it provides a similar layout to {{Compact ToC}}, but for numbers rather than letters.
Cách sử dụng[sửa mã nguồn]
Các tham số tùy chọn:
- startyear
- Defaults to 1900. The first year listed.
- step
- Defaults to 1. The number by which the year increments. Useful for decade-by-decade TOC.
- range
- Defaults to off. Allows the year to be listed as year-(year+range), for instance 1925-1926. Useful for sports events where seasons take place over two years.
- endyear
- Defaults to 1950. The last year to be listed.