Difference between revisions of "Template:RuTableArt"
(Основной текст) |
(dplcacheperiod = 15) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
6) {{SecTitle{{!}}%PAGE%}} - вместо названия страниц подставляется вызов шаблона SecTitle | 6) {{SecTitle{{!}}%PAGE%}} - вместо названия страниц подставляется вызов шаблона SecTitle | ||
− | -->{{#dpl: debug = 0| linksto = {{FULLPAGENAME}} | titleregexp = RU/kb/[0-9]| | + | -->{{#dpl: dplcacheperiod = 15| debug = 0| linksto = {{FULLPAGENAME}} | titleregexp = RU/kb/[0-9]| addpagecounter = true| |
− | format={{{!}} align="left" class="prettytable sortable" style="width:70%"\n!Для сортировки по алфавиту нажать → ,\n{{!}}-\n{{!}}\n* {{SecTitle{{!}}%PAGE%}},,\n{{!}}} | + | format={{{!}} align="left" class="prettytable sortable" style="width:70%"\n!№ п/п\n!Для сортировки по алфавиту нажать → \n!Просмотров,\n{{!}}-\n{{!}}align=center{{!}}%NR%\n{{!}}\n* {{SecTitle{{!}}%PAGE%}}\n{{!}}align=right{{!}}%COUNT% ,,\n{{!}}} |
}} | }} | ||
+ | |||
+ | |||
+ | <!-- {{FULLPAGENAME}} --> |
Latest revision as of 16:04, 7 February 2011
Критически важный опорный шаблон — Core Critical Template.
Необдуманное вмешательство в шаблон может повлечь за собой разрушение всего проекта! | Unconsidered intervention in the template may result in the destruction of the entire project! |
№ | РУС | ENG | ||||
---|---|---|---|---|---|---|
' |
Предназначение — Mission | |||||
Для использования в зоне RU. | For using in Zone RU. | |||||
Шаблон предназначен для автоматического формирования перечня статей, входящих в тему. | Template is designed to automatically generate a list of articles included in the topic.
| |||||
' |
Параметры — Parameters | |||||
Нет. | No.
| |||||
' |
Инструкция по использованию — Operation manual | |||||
Шаблон вставляется в секцию toc на странице темы и является единственным её содержимым. | Template is inserted in the section toc on page themes and is the sole of its contents. | |||||
Шаблон использует принцип механизма wiki «ссылки сюда», автоматически собирая в тему все статьи, ссылающиеся на страницу темы. | Template uses the principle mechanism wiki "link here", automatically collecting all the articles in the topic, link to the page topic. | |||||
Внимание! Отбор статей для включения в тему происходит по URL, строго соответствующему условию фильтра RU/kb/[0-9] - фильтр по индексированным статьям RU/kb, название которых должно начинаться на любую цифру. | Warning! The selection of articles for inclusion in the topic is a URL, strictly match the filter RU/kb/[0-9] - a filter for indexed articles RU/kb, whose name should begin for any digit. | |||||
Ссылка на страницу темы вставляется посредством обязательного для каждой статьи шаблона {{BreadCrumbL10n|wiki-URL}}. | Link to the page topic is inserted through mandatory for each article the template {{BreadCrumbL10n|wiki-URL}}. | |||||
В шаблоне установлен интервал кеширования в 15 секунд. Поэтому ссылка на новую статью появится в теме спустя 15 секунд. | The template is set interval caching in 15 seconds. Therefore, a link to a new article will appear in the subject after 15 seconds.
| |||||
' |
Шаблон основан на следующих шаблонах — Parent templates | |||||
Нет. | No.
| |||||
' |
Дочерние шаблоны — Subsidiaries templates | |||||
{{BreadCrumbL10n|wiki-URL}}. | {{BreadCrumbL10n|wiki-URL}}.
| |||||
' |
Пример — Example | |||||
|
The DPL extension (version 2.3.0) produced a SQL statement which lead to a Database error.
The reason may be an internal error of DPL or an error which you made,
especially when using DPL options like titleregexp.
Query text is:
SELECT DISTINCT `page`.page_namespace AS page_namespace,`page`.page_title AS page_title,`page`.page_id AS page_id, pl.pl_title AS sel_title, pl.pl_namespace AS sel_ns, `page`.page_title as sortkey, `page`.page_counter AS page_counter FROM `pagelinks` AS pl, `page` WHERE 1=1 AND (`page`.page_title REGEXP 'RU/kb/[0-9]') AND `page`.page_is_redirect=0 AND `page`.page_id=pl.pl_from AND ( (pl.pl_namespace=10 AND pl.pl_title LIKE 'RuTableArt')) ORDER BY page_title ASC LIMIT 0, 500
Error message is:
Character set 'utf8mb3_bin' cannot be used in conjunction with 'binary' in call to regexp_like. (127.0.0.1)