Шаблон:Тема по годам
(перенаправлено с «Шаблон:Decade years navbox»)
Шаблон для навигации внутри серии категорий, сформированных по принципу «тема по годам». Пример использования — Категория:Программное обеспечение, разработанное в 1998 году.
Использование
{{Тема по годам|header= |cat_prefix= |cat_suffix= }}
Параметры шаблона
Параметр | Описание | По умолчанию | Статус |
---|---|---|---|
Тема | empty | обязательный | |
Префикс | Text in category name before the year | empty | необязательный |
Суффикс | Text in category name after the year | empty | необязательный |
displayredlinks | Red links are displayed by default. Set displayredlinks=no to hide them. Or displayredlinks=maybe to hide non-existent or empty categories.
Using displayredlinks=maybe should better not be used at all: it is costly, slow, unstable, causing existing categories to be hidden when they can have new members at any time (interacts badly with page caches, which can also be extremely long to reflect changes in counters of category members in order to refresh the page; additionally these counters are just estimations that may be corrected after many months, by admins performing special SQL requests to maintain the internal database). You should better usedisplayredlinks=no instead to avoid this problem. |
yes | необязательный |
Стиль | additional CSS | empty | необязательный |
padding | character(s) used to wrap the year in the category links. It is a regular space () by default. May be set to an empty string, if the affixes are to wrap the years closely in brackets or other punctuation, like a '/' for subpages (you can still append ' ' to cat_prefix or prepend ' ' to cat_suffix, if you need an explicit space in only one of them, because the named parameters for affixes have their unencoded whitespaces implicitly trimmed). | ' ' | необязательный |