DokuWiki

It's better when it's simple

Користувальницькі налаштування

Налаштування сайту


uk:plugin:tag

Плагін Тег

Compatible with DokuWiki

2008-05-05

plugin Призначає теги категорій сторінкам вікі. (попередні автори: Esther Brunner)

Last updated on
2008-08-30
Provides
Syntax, Helper, Action
Requires
pagelist

The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

This extension is not in the 'plugin' or 'template' namespace and is therefore ignored.

Similar to blogtng, geotag, subjectindex, tagging, tagsections

Tagged with folksonomy, tagging, tags

Needed for editor, feed, include, tagadd, tagalerts, tagentry, tagfilter, tagsections, tr-twitter

Скачування

Скачати plugin-tag.tgz

Опис

Плагін Тег дозволяє присвоїти теги категорій сторінкам вікі. Він буде відображати список посилань на теги сторінок в просторі імен тегу, що зазначений у конфігурації.

Компоненти

Тег

{{tag>[список тегів]}}
[список тегів] розділений проміжком список тегів, що описують зміст поточної сторінки обов'язковий

Дозволяє вам класифікувати ваші вікі-сторінки. У результаті посилання вказують на відповідну сторінку у зазначеному просторі імен тегу. Якщо ви хочете вказати посилання на сторінку в іншому просторі імен, ви повинні вказати простір імен перед ім'ям тегу.

Приклади:

  • {{tag>tag1 tag2 tag3}}
  • з просторами імен: {{tag>:ns1:tag1 ns1:tag2 ns2:subns1:tag3}}

Рубрика

{{topic>[тег]&[прапорці]}}
[тег] тег категорії, для якої ви хочете отримати список сторінок обов'язковий
[прапорці] прапорці списку сторінок, розділені символом &, дивись прапорці необов'язковий

Це показує список усіх сторінок, які містять даний тег категорії. Список відсортований у алфавітному порядку за ідентифікатором сторінок. Ви також можете додати модифікатори + і -. + створює взаємозв'язок між списком сторінок, створених вже визначеними тегами, і сторінками, що відповідні тегу після + (И), - видаляє всі сторінки з тегами, які получені зі списку тегів вже знайдених сторінок.

Приклад:

  • {{topic>tag1 -tag2}} – Заносить до списку всі сторінки з тегами tag1 але не з tag2.
  • {{topic>tag1 +tag2}} – Заносить до списку всі сторінки з тегами tag1 і tag2.
  • {{topic>tag1 tag2}} – Заносить до списку всі сторінки з будь-яким з тегів, tag1 або tag2, або з тим і іншим.

Конфігурація

Плагін може бути зконфігуровано з допомогою Менеджера конфігурації DokuWiki, що доступний в меню адміністратора.

namespace Простір імен, де плагін Таг шукає існуючі теги сторінок, та посилається на них замість стандартного огляду тегів. Ви можете використовувати компонент розділу для відображення списку тегів на подібній сторінці, наприклад. (tag за замовчуванням)
pingtechnorati Включає/відключає пінгування Technorati.
sortkey Порядок, в якому сторінки з тегами сортуються в огляді розділу, доступними опціями є дата створення, дата зміни, назва сторінки, ідентифікатор сторінки та заголовок
sortorder Впорядкувати за оглядом розділу.
pagelist_flags Розділені комами прапорці плагіну pagelist, який використовується для відображення огляду розділу

Пінг

Цей плагін автоматично пінгує Technorati при створенні нової сторінки. Така поведінка може бути відключена.

Demo

Ви можете спробувати плагін в дії тут.

Bugs

Прохання повідомити про помилки до Відстежувача помилок.

CSS fix: tag list pushing page content down

FIXME I found that the list of tags generated by {{tag>demo}} would interact badly with a page contents box when placed at the top of the page. Due to clear: both; the tag would be pushed below the contents div, leaving an ugly and (in the case of pages with many contents entries) irritating gap.

I amended the div.dokuwiki div.tags entry in the stylesheet /usr/share/dokuwiki/lib/plugins/tag/style.css to read:

div.dokuwiki div.tags {
  border-top: 2px dotted __border__;
  font-size: 95%;
  text-align: right;
  clear: none;
  overflow-x: hidden;
}

This solves the problem in IE7 and Firefox 3 but I'm unable to test it in any other browsers.

Tags are "forgotten"

It seems that, for different possible reasons (upgrade, other plugins, change in dokuwiki config….), tags can be “forgotten” : I did try to “rebuild index” to no avail, it seems that I need to go on or edit each page again to have the pages “recorded” in index. Any better idea for a “rebuild index” feature that would not “miss” pages ?

I have the same problem ! strange … Only a part of the pages are indexed, like some page stop the process and all the next are forgotten … → I am french, could it be because of 'é' and 'è' ?

Додаткові ресурси

Зміни

ЧАВО

Як користуватися тегами, які складаються з декількох слів?

Просто використовуйте “_”, це автоматично замінюється на “ ”, тобто:

{{tag>тег_з_декількох_слів}}

Переклади

Англійський (оригінал від 2009-03-26)

lib/plugins/tag/lang/en/intro.txt

====== Tagindex Manager ======

This page allows you to rebuild the index used by the [[http://wiki.splitbrain.org/plugin:tag|Tag Plugin]].
This isn't needed generally as  the index builds and updates itself while
you tag your sites. However if you just upgraded, added or removed
a lot of files it may be a good idea to cleanup the the index.

This Manager needs a recent browser as it makes use of modern JavaScript
to carry out multiple tasks in the background (using [[wp>AJAX]]).

Rebuilding the index takes a long time. You should leave the page open
until the indexing has finished.

:!: Making a backup of ''data/index/tag.idx'' is recommended in case something goes wrong during rebuiling. :!:

lib/plugins/tag/lang/en/lang.php

<?php
/**
 * English language file
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Esther Brunner <wikidesign@gmail.com>
 */

// custom language strings for the plugin
$lang['tags']  = 'Tags';
$lang['topic'] = 'Topic';

$lang['missing_pagelistplugin'] = 'The Pagelist Plugin must be installed for topic lists.';

$lang['menu'] = 'Tagindex Manager';

//Setup VIM: ex: et ts=2 enc=utf-8 :

lib/plugins/tag/lang/en/settings.php

<?php
/**
 * English language file
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Esther Brunner <wikidesign@gmail.com>
 */
 
// for the configuration manager
$lang['namespace']      = 'Default namespace for tags';
$lang['pingtechnorati'] = 'Ping Technorati';

$lang['sortkey']                = 'sort topic lists by';
$lang['sortkey_o_cdate']        = 'creation date';
$lang['sortkey_o_mdate']        = 'modification date';
$lang['sortkey_o_pagename']     = 'page name';
$lang['sortkey_o_id']           = 'page ID';
$lang['sortkey_o_title']        = 'title';

$lang['sortorder']              = 'sort order';
$lang['sortorder_o_ascending']  = 'ascending';
$lang['sortorder_o_descending'] = 'descending';

$lang['pagelist_flags'] = 'Formatting flags for the taglist (comma-separated, for available flags see the documentation of the pagelist plugin)';

//Setup VIM: ex: et ts=2 enc=utf-8 :

Український

lib/plugins/tag/lang/uk/intro.txt



lib/plugins/tag/lang/uk/lang.php

<?php
/**
 * Ukrainian language file
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     DocuWiki's Community (http://www.dokuwiki.org/)
 */

// рядки мови користувача для плагіну

lib/plugins/tag/lang/uk/settings.php

<?php
/**
 * Ukrainian language file
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     DocuWiki's Community (http://www.dokuwiki.org/)
 */
 
// для менеджера конфігурації 

Російський

lib/plugins/tag/lang/ru/intro.txt



lib/plugins/tag/lang/ru/lang.php

<?php
/**
 * Russian language file
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     DocuWiki's Community (http://www.dokuwiki.org/)
 */

// строки языка пользователя для плагина

lib/plugins/tag/lang/ru/settings.php

<?php
/**
 * Russian language file
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     DocuWiki's Community (http://www.dokuwiki.org/)
 */
 
// для менеджера конфигурации

Обговорення

uk/plugin/tag.txt · Востаннє змінено: 2009-04-23 01:17 повз 95.132.191.184

Якщо не вказано інше, вміст цієї Вікі підпадає під дію такої ліцензії: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki