Инструменты пользователя

Инструменты сайта


wiki:syntax

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
Следующая версия Следующая версия справа и слева
wiki:syntax [2020/12/12 16:44]
62.210.188.222 старая версия восстановлена (2014/12/02 20:14)
wiki:syntax [2021/02/24 01:02]
62.210.188.222 старая версия восстановлена (2021/01/29 04:44)
Строка 78: Строка 78:
 Примечания: Примечания:
  
-  * Ссылки на [[wiki:syntax|существующие статьи]] отображаются иначе, чем ссылки на [[nonexisting|несуществующие]].+  * Ссылки на [[doku>ru:wiki:syntax|существующие статьи]] отображаются иначе, чем ссылки на [[nonexisting|несуществующие]].
   * «Докувики» по умолчанию не использует [[wp>ru:CamelCase|CamelCase]] (ВерблюжийРегистр) для автоматического создания ссылок, но эту возможность можно включить в файле [[config]]. Проверка: если DokuWiki --- ссылка, значит эта возможность включена.   * «Докувики» по умолчанию не использует [[wp>ru:CamelCase|CamelCase]] (ВерблюжийРегистр) для автоматического создания ссылок, но эту возможность можно включить в файле [[config]]. Проверка: если DokuWiki --- ссылка, значит эта возможность включена.
   * Если меняется название раздела, ссылки на него не меняются автоматически. Так что не очень полагайтесь на ссылки на разделы.   * Если меняется название раздела, ссылки на него не меняются автоматически. Так что не очень полагайтесь на ссылки на разделы.
Строка 179: Строка 179:
 Узнать, как вставить картинку со ссылкой можно в [[#картинки-ссылки|разделе выше]]. Узнать, как вставить картинку со ссылкой можно в [[#картинки-ссылки|разделе выше]].
  
-===== Галерея: синтаксис =====+==== Галерея картинок ====
  
 A basic gallery can be added by selecting a [[:namespaces|namespace]] like this: A basic gallery can be added by selecting a [[:namespaces|namespace]] like this:
Строка 206: Строка 206:
  
 Additionally, to have thumbnail creation correctly working you need to set [[config:fetchsize]] big enough to get the remote images downloaded. Additionally, to have thumbnail creation correctly working you need to set [[config:fetchsize]] big enough to get the remote images downloaded.
- 
-==== Parameters ==== 
- 
-A number of parameters can be set by appending them with ''?'' character to the namespace or image. Each parameter needs to be separated with a ''&'' character. Defaults for all parameters can be set in the config manager. If a parameter is enabled by default it can be disabled in the syntax by prefixing it with the syllable ''no''. E.g. the parameter ''cache'' is usually enabled and can be disabled using the keyword ''nocache''. Below is a list of all recognized parameters 
- 
-^ Parameter                      ^ Default         ^ Description    ^ 
-| ''//<number>//x//<number>//''  | ''%%120x120%%'' | Sets the size for thumbnails. Unless the crop option is set, this is a boundary box into which the thumbnail will be fitted, maintaining the correct aspect ratio. | 
-| ''//<number>//X//<number>//''  | ''%%800X600%%'' | Sets the size for the linked images in ''direct'' mode. This is a boundary box into which the image will be fitted, maintaining the correct aspect ratio. Note the uppercase ''X''.| 
-| ''//<number>//''               | ''5''           | The number images per row in the gallery table. If you specify a 0 no table is used instead all thumbnails are added in a sequence. | 
-| ''=//<number>//''              | ''=0''          | Limits the output to the given number of images. ''0'' means all. | 
-| ''+//<number>//''              | ''+0''          | Skip the first number of images. Useful with the option above. | 
-| ''~//<number>//''              | ''~0''          | Add a pagination for the thumbnails displaying the number of given thumbnails per page. ''0'' disables pagination. Pagination is added through JavaScript - when no JavaScript is available all thumbnails are displayed | 
-| ''cache''                      | enabled         | Usually the output of the created gallery is cached. When the images in your selected namespace change, you have to manually force an update of the gallery page's [[:caching|cache]]. To disable the cache for the page showing the gallery, set ''nocache'' as option. | 
-| ''crop''                       | disabled        | Make thumbnails the exact given thumbnail size big, cropping when needed. | 
-| ''direct''                     | disabled        | Link thumbnails with the bigger sized images not with their detail page | 
-| ''lightbox''                   | disabled        | Show images in a fancy JavaScript modal browsing window, see below for details. Setting this option automatically implies the ''direct'' mode | 
-| ''reverse''                    | disabled        | Reverse the order of the displayed images | 
-| ''recursive''                  | enabled         | Find images in the given namespace and all sub namespaces | 
-| ''random''                     | disabled        | Sort images randomly. You might want to use ''nocache'' as well | 
-| ''modsort''                    | disabled        | Sort images by file modification date | 
-| ''datesort''                   | disabled        | Sort images by EXIF date | 
-| ''titlesort''                  | disabled        | Sort images by EXIF title | 
-| ''showname''                   | disabled        | Show filename below thumbnails | 
-| ''showtitle''                  | disabled        | Show the EXIF tag ''Headline'' as title below thumbnails | 
-| anything containing a ''*''    | jpg,gif,png images | This can be used to filter the list of files found in the given namespace. ''*'' work as simple wildcard symbol. | 
- 
-__Example__: 
- 
-  {{gallery>images:vacation?image_*.jpg&80x80&crop&lightbox}} 
- 
-This displays all images beginning with ''image_'' and ending in ''.jpg'' from the namespace ''images:vacation''. Thumbnails are cropped to 80x80 pixels and images will be opened in lightbox mode. 
- 
-__Example__: 
- 
-  {{gallery>?crop&lightbox}} 
- 
-This displays all images in the current namespace using 2 parameters. Parameterlist begins with ''?'' additional ones are concatenated with ''&''. 
  
 ===== Списки ===== ===== Списки =====
Строка 436: Строка 399:
 | %%~~NOTOC~~%%   | Если этот макрос присутствует в статье, оглавление не будет создано.  | | %%~~NOTOC~~%%   | Если этот макрос присутствует в статье, оглавление не будет создано.  |
 | %%~~NOCACHE~~%% | «Докувики» помещает всё выводимое в кэш по умолчанию. Иногда это нежелательно (например, когда выше был использован синтаксис %%<php>%%), добавление этого макроса заставит «Докувики» обрабатывать статью при каждом вызове.  | | %%~~NOCACHE~~%% | «Докувики» помещает всё выводимое в кэш по умолчанию. Иногда это нежелательно (например, когда выше был использован синтаксис %%<php>%%), добавление этого макроса заставит «Докувики» обрабатывать статью при каждом вызове.  |
- 
-===== Комментирование страниц ===== 
- 
- 
-По умолчанию включено комментирование всех вики-страниц. Если это не так, можно включить комментирование добавив на страницу инструкцию ''%%~~DISCUSSION~~%%''. Для выключения возможности комментирования используйте ''%%~~DISCUSSION:off~~%%''. Если вы не хотите скрывать существующие комментарии, однако хотите запретить добавление новых, используйте ''%%~~DISCUSSION:closed~~%%''. 
- 
-  ~~DISCUSSION~~ 
-  ~~DISCUSSION:off~~ 
-  ~~DISCUSSION:closed~~ 
- 
-Собственный заголовок секции комментирования может быть указан после разделителя %%|%%. 
-  ~~DISCUSSION|Мой собственный заголовок~~ 
-  ~~DISCUSSION:closed|Мой собственный заголовок~~ 
  
 ===== Синтаксические плагины ===== ===== Синтаксические плагины =====
Строка 456: Строка 406:
 ~~INFO:syntaxplugins~~ ~~INFO:syntaxplugins~~
  
 +===== NSPages =====
 +
 +**NSPages** -- плагин для создания удобного сортированного списка страниц в [[doku>ru:namespaces|пространстве имён]]. Основное использование с помощью соответствующей кнопки редактора, подробности синтаксиса [[https://www.dokuwiki.org/plugin:nspages|здесь]].
/home/motowiki.by/www/data/pages/wiki/syntax.txt · Последнее изменение: 2021/12/20 18:25 — kot