Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия |
wiki:template:starter [2025/02/08 14:29] – [Starter Template] vladpolskiy | wiki:template:starter [2025/02/08 14:52] (текущий) – [Backlink for Discussion Has Wrong Page ID] vladpolskiy |
---|
Общую информацию см. в [[wiki:devel:template|документации по разработке шаблонов]]. | Общую информацию см. в [[wiki:devel:template|документации по разработке шаблонов]]. |
| |
===== Download and Install ====== | ===== Загрузите и установите ====== |
| |
* For DokuWiki version 2014-05-05 (Ponder Stibbons) and later: Use the extension manager to install this template. | * Для версии DokuWiki 2014-05-05 (Ponder Stibbons) и более поздних версий: используйте менеджер расширений для установки этого шаблона. |
* For Binky or Weatherwax: You can {{:template:dokuwiki_template_starter.zip|download an older version}}. | * Для Binky или Weatherwax: Вы можете {{wiki:template:dokuwiki_template_starter.zip|загрузить более старую версию}}. |
* If you're interested in a more stripped down version of the template, you can use the [[https://github.com/selfthinker/dokuwiki_template_starter/tree/minimal|"minimal" branch]]. That version hardly uses any CSS at all and doesn't include any additional functionalities. | * Если вас интересует более урезанная версия шаблона, вы можете использовать [[https://github.com/selfthinker/dokuwiki_template_starter/tree/minimal|ветку "minimal"]]. Эта версия почти не использует CSS и не включает никаких дополнительных функций. |
| |
Refer to [[:template]] on how to install and use templates in DokuWiki. | Информацию о том, как устанавливать и использовать шаблоны в DokuWiki, см . в разделе [[wiki:template|Шаблоны]]. |
| |
===== Configuration ====== | ===== Конфигурация====== |
| |
These are in //[theme root]/starter/conf/default.php//. It can be changed from the Configuration panel. | Они находятся в //[корень темы]/starter/conf/default.php//. Их можно изменить на панели конфигурации. |
| |
^config option ^description ^default value ^ | ^опция конфигурации ^описание ^значение по умолчанию ^ |
^ ''hideTools'' | hide editing and other tools when not logged in | ''0'' | | ^ ''hideTools'' | скрыть редактирование и другие инструменты, если вы не вошли в систему | ''0'' | |
^ ''sidebarIsNav'' | use a ''nav'' element around the sidebar if it's mainly used for navigation, otherwise use an ''aside'' element (new since version 2021-01-25) | ''1'' | | ^ ''sidebarIsNav'' | используйте ''nav'' элемент вокруг боковой панели, если она в основном используется для навигации, в противном случае используйте asideэлемент (новое с версии 2021-01-25) | ''1'' | |
| |
Config options in previous versions (removed in version 2021-01-25): | Параметры конфигурации в предыдущих версиях (удалены в версии 2021-01-25): |
| |
* ''discussionPage'': Discussion page functionality was removed and can be replaced by using the [[:plugin:talkpage|Talkpage Plugin]]; just change the ''talkns'' option from 'talk' to 'discussion' to use the same namespace as before | * ''discussionPage'': Функциональность страницы обсуждения удалена и может быть заменена с помощью [[wiki:plugin:talkpage|Talkpage плагина]]; просто измените ''talkns'' параметр с «talk» на «discussion», чтобы использовать то же пространство имен, что и раньше. |
* ''userPage'': User page functionality was removed and can be replaced by using the [[:plugin:userpage|Userpage Plugin]] | * ''userPage'': Функциональность страницы пользователя удалена и может быть заменена с помощью [[wiki:plugin:userpage|плагина Userpage]] |
| |
| |
===== More Info ====== | ===== More Info ====== |
| |
==== Credits ===== | ==== Дополнительная информация ===== |
| |
* Thanks to [[user>andi|Andreas Gohr]] for general advice. | * Спасибо [[world>https://forum.dokuwiki.org/u/andi|Andreas Gohr]] за общие советы. |
* Thanks to [[clarencedglee@gmail.com|Clarence Lee]] for his design advice, especially concerning typography. | * Спасибо [[mail>clarencedglee@gmail.com|Clarence Lee]] за его советы по дизайну, особенно в отношении типографики. |
| |
==== Changes ===== | ==== Изменения ===== |
| |
If you are a template author using this template as a base for your own, you might want to check out the [[:template:starter:changes|list of detailed changes]]. | Если вы являетесь автором шаблона и используете этот шаблон в качестве основы для своего собственного, вам, возможно, будет интересно ознакомиться со [[wiki:template:starter:changes|списком подробных изменений]]. |
| |
{{rss>https://github.com/selfthinker/dokuwiki_template_starter/commits/master.atom date}} | {{rss>https://github.com/selfthinker/dokuwiki_template_starter/commits/master.atom date}} |
| |
==== Demo ==== | ==== Демо==== |
| |
* http://demo.selfthinker.org/ | * http://demo.selfthinker.org/ |
* [[template:stm|STM]] | * [[template:stm|STM]] |
| |
===== Comments ===== | ===== Комментарии===== |
| |
* clear and useful! great! | * ясно и полезно! отлично! |
* thank you, this template is very clean and useful for most cases! love this :) | * спасибо, этот шаблон очень чистый и полезен для большинства случаев! обожаю его :) |
* Very nice stuff. | * Очень классная вещь. |
| |
==== How to translate this theme? ==== | ==== How to translate this theme? ==== |
>>That sounds like a good idea! Thanks --- //Nactus 2011-11-13// | >>That sounds like a good idea! Thanks --- //Nactus 2011-11-13// |
| |
==== Backlink for Discussion Has Wrong Page ID ==== | ==== Обратная ссылка для обсуждения имеет неверный идентификатор страницы ==== |
in line 31 of tpl_functions | в строке 31 tpl_functions |
tpl_pagelink($backID, $backTitle); | tpl_pagelink($backID, $backTitle); |
returns | возвращается |
discussion:home | discussion:home |
for the page ID when the link is built. The issue is not with the _tpl_discussion function as replacing //$backID// with //'home'// produces the same problem. | для идентификатора страницы при построении ссылки. Проблема не в функции _tpl_discussion, так как замена //$backID// на //'home'// приводит к той же проблеме. |
| |
A fix is: | Исправление: |
tpl_pagelink(':'.$backID, $backTitle); | tpl_pagelink(':'.$backID, $backTitle); |
| |
> Thanks. That's fixed since today's release. --- [[user>ach|Anika Henke]] //2014-05-19 03:24// | > Спасибо. Это исправлено с сегодняшнего релиза --- [[mail>anika@selfthinker.org|Anika Henke]] //2014-05-19 03:24// |
| =====Дополнения и Файлы===== |
| * {{:wiki:template:selfthinker-dokuwiki_template_starter-v2021-02-25-3-g57b339e.zip|Шаблон Starter}} |
| * {{ :wiki:template:dokuwiki_template_starter.zip |Шаблон Starter для Binky или Weatherwax}} |
| * {{ :wiki:template:dokuwiki_template_starter-minimal.zip |Шаблон Starter minimal}} |
| [[https://www.dokuwiki.org/template:starter|Ссылка на оригинальную статью]] |