Extension:WikiCategoryTagCloud/ru
![]() Статус релиза: стабильно |
|
---|---|
Реализация | Тег , Тема оформления |
Описание | Allows to add tag clouds based on categories to a page via the <tagcloud> tag |
Автор(ы) | |
Последняя версия | 1.3.3 (2017-09-19) |
Политика совместимости | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.39+ |
PHP | 5.5+ |
Изменения в БД | Нет |
Лицензия | GNU General Public License 2.0 или позднее |
Скачать | |
<tagcloud> |
|
Quarterly downloads | 36 (Ranked 133rd) |
Public wikis using | 1,274 (Ranked 216th) |
Переведите расширение WikiCategoryTagCloud, если оно доступно на translatewiki.net | |
Проблемы | Открытые задачи · Сообщить об ошибке |
The WikiCategoryTagCloud extension allows to add tag clouds based on categories to a page.
Использование
These in text parameters from the original extension still work the same:
- min_count
- Only display a tag for a category, if the category contains at least min_count articles. Default value : 0.
- min_size
- Defines the minimum text size. (Default: 77).
- increase_factor
- Defines the factor to increase the text size by the number of articles. Default value : 100.
- exclude
- Defined the categories you do not want to be displayed. Use underscore instead of spaces in category names, use comma to separate the categories, like this:
<tagcloud>exclude=television,television_series,celebrities,food,yoga</tagcloud>
makes "television", "television series", "celebrities", "food" and "yoga" categories not to show up in the categories cloud.
The coloring in text parameters do not work anymore, instead we have XML parameters:
- class
- Adds CSS classes to the tag cloud itself (The tagcloud class is always included).
- style
- Adds CSS styles to the style parameter of the tag cloud.
- linkclass
- Adds CSS classes to the links.
- linkstyle
- Adds CSS styles to the links' style parameters.
in text parameters are place in between the two tags, and XML parameters are done inside the opening tag. Here's an example use showing where things are placed.
<tagcloud style="background: black;">
min_size=55
exclude=browse
</tagcloud>
Установка
- Скачайте и распакуйте файл(ы) в папку с названием
WikiCategoryTagCloud
в вашей папкеextensions/
. - Добавьте следующий код внизу вашего
LocalSettings.php
:wfLoadExtension( 'WikiCategoryTagCloud' );
- Optional: Add the pages to invalidate the cache for to
MediaWiki:Tagcloudpages
(one title per line). - Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Для использующих MediaWiki 1.26 или более ранние версии:
В приведенных выше инструкциях описывается новый способ установки этого расширения с использованием wfLoadExtension()
.
Если вам нужно установить это расширение на более ранние версии (MediaWiki 1.26 и более ранние), вместо wfLoadExtension( 'WikiCategoryTagCloud' );
, вам необходимо использовать:
require_once "$IP/extensions/WikiCategoryTagCloud/WikiCategoryTagCloud.php";
This extension was migrated from Daniel Friesen's Wiki-Tools.com and checked into Wikimedia's software repository. |
Это расширение включено в следующие пакеты и/или вики-фермы: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |