wiki:plugin:repository:manual
Различия
Показаны различия между двумя версиями страницы.
| — | wiki:plugin:repository:manual [2025/02/08 17:11] (текущий) – создано - внешнее изменение 127.0.0.1 | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| + | <= [[wiki: | ||
| + | ====== Руководство по плагину репозитория ====== | ||
| + | |||
| + | [[wiki: | ||
| + | |||
| + | ===== Источник ===== | ||
| + | |||
| + | Исходный код доступен по адресу [[github> | ||
| + | |||
| + | Разработка DokuWiki движется в сторону одинакового отношения к плагинам и шаблонам. В репозитории плагинов шаблоны — это просто плагин типа == 32. Это облегчает совместное использование тегов (пользователи, | ||
| + | |||
| + | :!: шаблоны идентифицируются по используемому пространству имен. | ||
| + | |||
| + | |||
| + | ===== Функциональность ===== | ||
| + | |||
| + | Плагин имеет несколько компонентов синтаксиса (см. раздел [[#Syntax]] ниже): | ||
| + | * Записи для ввода свойств | ||
| + | * плагин '' | ||
| + | * или шаблон '' | ||
| + | * Таблица репозитория '' | ||
| + | * Информационное поле с некоторыми (случайными) моментами '' | ||
| + | * Список результатов заданного запроса, | ||
| + | |||
| + | Для использования информации о расширениях во внешних инструментах доступны некоторые API: | ||
| + | * API позволяет запрашивать список доступных расширений DokuWiki. Доступно по адресу \\ Available at ''/ | ||
| + | |||
| + | * Старая конечная точка ''/ | ||
| + | |||
| + | * Creates output in different formats of the usage statistics of DokuWiki \\ Available at ''/ | ||
| + | |||
| + | And maintenance tasks are performed by: | ||
| + | * ''/ | ||
| + | * Calculate popularity | ||
| + | * Check for version and base discrepancies and update the [[devel: | ||
| + | |||
| + | |||
| + | ===== Синтаксис ===== | ||
| + | |||
| + | ==== Entry Component ==== | ||
| + | |||
| + | Besides the [[plugin: | ||
| + | * **informationleak** -- 'This plugin expose information that might be valuable to a hacker. It is not recommended in a public installation.' | ||
| + | * **allowsscript** -- 'This plugin will allow execution of scripts. It should only be used when you trust ALL editors, best suited in private personal wikis.' | ||
| + | * **requirespatch** -- 'The plugin requires patching the DokuWiki core. Manual patches may break compatibility with other plugins and make it harder to secure your installation by upgrading to latest version.' | ||
| + | * **partlyhidden** -- ' | ||
| + | |||
| + | Of course free text could be used as well. | ||
| + | |||
| + | ==== Pluginrepo (Table) Component ==== | ||
| + | |||
| + | The " | ||
| + | |||
| + | The pluginrepo syntax component accepts parameters if supplied, which overrides parameters in HTTP request. | ||
| + | |||
| + | Available: | ||
| + | * **plugintype** -- [integer] 1, 2, 4, 8, 16, 32=templates, | ||
| + | * **plugintag** -- [string] filter by this tag | ||
| + | * **pluginsort** -- [string] sort by author(a), lastupdate(d), | ||
| + | * **showall** -- [yes] returns plugins regardless of security or obsolete status, normally skipped. | ||
| + | * **includetemplates** -- [yes] returns templates AND plugins, normally only plugins returned. Combine with '' | ||
| + | * **showscreenshot** -- [yes] shows screenshot thumbnail column | ||
| + | * **showcompatible** -- [yes] shows latest compatible DokuWiki version column | ||
| + | * **cloudmin** -- [integer] needed number of occurrences for a tag to be included in navigation cloud | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | ---- pluginrepo ---- | ||
| + | cloudmin: 2 | ||
| + | ---- | ||
| + | </ | ||
| + | |||
| + | ==== News Component ==== | ||
| + | |||
| + | ---- pluginnews ----- | ||
| + | headline: | ||
| + | link: | ||
| + | linktext: | ||
| + | ----- | ||
| + | |||
| + | Creates a right float box with one or more featured plugin/ | ||
| + | |||
| + | Syntax definition: | ||
| + | < | ||
| + | ---- pluginnews ----- | ||
| + | headline: | ||
| + | style: | ||
| + | showscreenshot: | ||
| + | random: | ||
| + | entries: | ||
| + | link: < | ||
| + | linktext: | ||
| + | ----- | ||
| + | </ | ||
| + | |||
| + | Parameters | ||
| + | * **style** -- '' | ||
| + | * **headline** -- [string] headline of the news block | ||
| + | * **link** -- [string] add link at bottom of the news block | ||
| + | * **linktext** -- [string] if combined with '' | ||
| + | * **entries** -- [int] number of plugins displayed | ||
| + | * **random** -- [yes], set to '' | ||
| + | * **showscreenshot** -- [no], set to '' | ||
| + | * **onlyrecent** -- [yes], set to '' | ||
| + | |||
| + | ==== Query Component ==== | ||
| + | A tool tailored for [[teams: | ||
| + | The query results are displayed as a configurable table looking something like this: | ||
| + | |||
| + | ---- pluginquery ----- | ||
| + | SELECT : plugin, downloadurl | ||
| + | WHERE : author = ? | ||
| + | VALUES : Håkan Sandell | ||
| + | ----- | ||
| + | |||
| + | |||
| + | Syntax definition: | ||
| + | < | ||
| + | ---- pluginquery ----- | ||
| + | SELECT | ||
| + | WHERE : <sql where clause> | ||
| + | VALUES | ||
| + | HEADLINE : <heading used instead of raw query (optional)> | ||
| + | ----- | ||
| + | </ | ||
| + | |||
| + | **Allowed fields:** plugin, name, description, | ||
| + | |||
| + | All fields are allowed in WHERE clause together with AND, OR, NOT, NULL, LIKE, '' | ||
| + | |||
| + | For values of '' | ||
| + | |||
| + | Syntax examples: | ||
| + | |||
| + | < | ||
| + | ---- pluginquery ----- | ||
| + | WHERE : downloadurl IS null AND popularity > ? | ||
| + | VALUES : 400 | ||
| + | ----- | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ---- pluginquery ----- | ||
| + | SELECT : author type | ||
| + | WHERE : (type & ?) AND (author LIKE ?) | ||
| + | VALUES : 3, %Andreas Gohr% | ||
| + | ----- | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ---- pluginquery ----- | ||
| + | SELECT | ||
| + | WHERE : ? | ||
| + | VALUES | ||
| + | HEADLINE : All plugins and templates | ||
| + | ----- | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Configuration ===== | ||
| + | |||
| + | There are some config settings for the dokuwiki.org admin | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Repository plugin honors [[config: | ||
| + | |||
| + | =====Дополнения и Файлы===== | ||
| + | [[https:// | ||
wiki/plugin/repository/manual.1738914093.txt.gz · Последнее изменение: (внешнее изменение)
