| Следующая версия | Предыдущая версия |
| wiki:plugin:repository:manual [2025/02/07 10:41] – создано vladpolskiy | wiki:plugin:repository:manual [2025/02/08 17:11] (текущий) – [News Component] vladpolskiy |
|---|
| <= [[plugin:repository|Extension Repository]] | <= [[wiki:plugin:repository|Репозиторий расширений]] |
| |
| ====== Repository Plugin Manual ====== | ====== Руководство по плагину репозитория ====== |
| |
| The [[plugin:repository|Extension Repository]] is used by www.dokuwiki.org to organize the plugin and template info. | [[wiki:plugin:repository|Репозиторий расширений]] используется [[world>]]www.dokuwiki.org для организации информации о плагинах и шаблонах. |
| |
| ===== Source ===== | ===== Источник ===== |
| |
| Source is available at [[https://github.com/dokuwiki/dokuwiki-plugin-pluginrepo]] | Исходный код доступен по адресу [[github>]][[https://github.com/dokuwiki/dokuwiki-plugin-pluginrepo]] |
| |
| DokuWiki development is gearing towards treating plugins and templates the same. In the plugin repository the templates are a just a plugin of type == 32. This facilitates tag sharing (users looking for sidebars should see both plugins and templates) and "More contributions of same author". | Разработка DokuWiki движется в сторону одинакового отношения к плагинам и шаблонам. В репозитории плагинов шаблоны — это просто плагин типа == 32. Это облегчает совместное использование тегов (пользователи, ищущие боковые панели, должны видеть и плагины, и шаблоны) и «Больше вкладов одного автора». |
| |
| :!: templates are identified by namespace used. | :!: шаблоны идентифицируются по используемому пространству имен. |
| |
| |
| ===== Functionalities ===== | ===== Функциональность ===== |
| |
| The plugin has some syntax components (see [[#Syntax]] section below): | Плагин имеет несколько компонентов синтаксиса (см. раздел [[#Syntax]] ниже): |
| * Entries for inputting the properties of | * Записи для ввода свойств |
| * a plugin ''%%---- plugin ----%%'' | * плагин ''%%---- plugin ----%%'' |
| * or a template ''%%---- template ----%%'' . | * или шаблон ''%%---- template ----%%'' . |
| * Repository Table ''%%---- pluginrepo ----%%'' which lists the stored plugins or templates | * Таблица репозитория ''%%---- pluginrepo ----%%'' в которой перечислены сохраненные плагины или шаблоны. |
| * A info box with some (random) highlights ''%%---- pluginnews -----%%'' | * Информационное поле с некоторыми (случайными) моментами ''%%---- pluginnews -----%%'' |
| * List the results of a given query, useful for wiki administrators ''%%---- pluginquery -----%%'' | * Список результатов заданного запроса, полезный для администраторов вики ''%%---- pluginquery -----%%'' |
| |
| To use the information about extensions in external tools, some APIs are available: | Для использования информации о расширениях во внешних инструментах доступны некоторые API: |
| * An API allows to query the list of available DokuWiki extensions. \\ Available at ''/lib/plugins/pluginrepo/api.php?[parameters]'' (see also [[plugin:repository:api]]) | * API позволяет запрашивать список доступных расширений DokuWiki. Доступно по адресу \\ Available at ''/lib/plugins/pluginrepo/api.php?[parameters]'' (см . также [[wiki:plugin:repository:api]]) |
| |
| * Old API end point: ''/lib/plugins/pluginrepo/repository.php?[parameters]'' \\ (still used by e.g. [[teams:translate-tool]]) (see also [[plugin:repository:api]]) | * Старая конечная точка ''/lib/plugins/pluginrepo/repository.php?[parameters]'' \\ (все еще используется, например, [[teams:translate-tool]]) (см. также [[wiki:plugin:repository:api]]) |
| |
| * Creates output in different formats of the usage statistics of DokuWiki \\ Available at ''/lib/plugins/pluginrepo/popularity.php?[parameters]'' \\ Examples at [[:popularity]] \\ (see for parameters details: [[https://github.com/splitbrain/dokuwiki-plugin-pluginrepo/blob/master/popularity.php|source]]) | * Creates output in different formats of the usage statistics of DokuWiki \\ Available at ''/lib/plugins/pluginrepo/popularity.php?[parameters]'' \\ Examples at [[:popularity]] \\ (see for parameters details: [[https://github.com/splitbrain/dokuwiki-plugin-pluginrepo/blob/master/popularity.php|source]]) |
| |
| |
| ===== Syntax ===== | ===== Синтаксис ===== |
| |
| ==== Entry Component ==== | ==== Entry Component ==== |
| ---- pluginnews ----- | ---- pluginnews ----- |
| headline: Example News | headline: Example News |
| link: :plugins | link: wiki:plugins |
| linktext: More plugins >> | linktext: More plugins >> |
| ----- | ----- |
| Repository plugin honors [[config:allowdebug|allowdebug]] for SQL debugging. | Repository plugin honors [[config:allowdebug|allowdebug]] for SQL debugging. |
| |
| | =====Дополнения и Файлы===== |
| | [[https://www.dokuwiki.org/plugin:repository:manual|Ссылка на оригинальную статью]] |