Jump to content

Розширення:DiscussionTools

From mediawiki.org
This page is a translated version of the page Extension:DiscussionTools and the translation is 2% complete.
Довідка про розширення MediaWiki
DiscussionTools
Статус релізу: стабільний
Реалізація Інтерфейс користувача
Опис Tools to enhance discussion pages
Автор(и) Wikimedia Editing team
Найновіша версія continuous updates
Політика сумісності Снапшоти випускаються разом з MediaWiki. Майстер не підтримує зворотню сумісність.
Зміни в БД Так
Таблиці discussiontools_items
discussiontools_item_ids
discussiontools_item_pages
discussiontools_item_revisions
discussiontools_subscription
Ліцензія MIT License
Завантажити
Довідка Довідка:Інструменти обговорення
  • $wgDiscussionToolsReplyIndentation
  • $wgDiscussionToolsBeta
  • $wgDiscussionTools_visualenhancements
  • $wgDiscussionToolsEnablePermalinksBackend
  • $wgDiscussionToolsEnableThanks
  • $wgDiscussionToolsTimestampFormatSwitchTime
  • $wgDiscussionToolsShowFeedbackLinks
  • $wgDiscussionToolsTalkPageParserCacheExpiry
  • $wgDiscussionTools_visualenhancements_pageframe
  • $wgDiscussionToolsAutoTopicSubEditor
  • $wgDiscussionToolsConflictingGadgetName
  • $wgDiscussionTools_visualenhancements_reply
  • $wgDiscussionToolsEnablePermalinksFrontend
  • $wgDiscussionTools_visualenhancements_reply_icon_languages
Перекладіть розширення DiscussionTools
Проблеми Відкриті проблеми · Повідомити про помилку

The Discussion Tools extension is a set of tools to enhance discussion pages. Від 2024, it is being built by the Editing team as part of the talk pages project .

Some features can be disabled on individual pages and sections as described at Help:DiscussionTools/Magic words and markup .

Features

Dependencies

Installation

This extension comes with MediaWiki 1.40 and later, so you do not need to download it. The remaining configuration instructions must still be followed.
  • Install the dependencies.
  • Завантажте і розмістіть файли в каталозі з назвою DiscussionTools у вашій extensions/ папці.
    Розробники та автори коду повинні замість цього встановити розширення з Git, використовуючи:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
    
  • Додайте такий код унизу вашого файлу LocalSettings.php :
    wfLoadExtension( 'DiscussionTools' );
    
  • Запустіть скрипт оновлення, який автоматично створить необхідні таблиці бази даних, які потрібні цьому розширенню.
  • Also in LocalSettings.php, ensure that you have a timezone set and $wgFragmentMode set to html5.
  • Configure as required.
  • Yes Готово – Перейдіть до Special:Version вашої вікі, щоб переконатися, що розширення встановлено успішно.

Configuration

Setting name Default value Description
$wgDiscussionToolsEnable true Enable DiscussionTools on talk pages.
$wgDiscussionToolsBeta false Make DiscussionTools a beta feature .
$wgDiscussionToolsEnable2017Wikitext false Enable the 2017 wikitext editor for wikitext replies (not yet supported).
$wgDiscussionToolsEnablePermalinksBackend true Enable the permalinks backend (Special:GoToComment). See Extension:DiscussionTools/How it works#Permanent links.
$wgDiscussionToolsReplyIndentation 'invisible' Reply indentation syntax to use: 'invisible' (use <dl><dd> tags to output : in wikitext) or 'bullet' (use <ul><li> tags to output * in wikitext).
$wgDiscussionToolsShowFeedbackLinks false MW 1.40+ Show "Залишити відгук про цю функцію" links in the footer of reply tool and new topic tool.
$wgDiscussionToolsConflictingGadgetName 'convenientDiscussions' Internal name of the Convenient Discussions gadget, which conflicts with the reply tool. Reply tool will be unavailable when the user has this gadget enabled.

API

Editing

Action Human readable Description Internal?
discussiontoolscompare compare Get information about comment changes between two page revisions. internal
discussiontoolsedit edit Post a message on a discussion page.
discussiontoolsfindcomment find comment Find a comment by its ID or name.
discussiontoolspageinfo page info Returns metadata required to initialize the discussion tools. internal
discussiontoolspreview preview Preview a message on a discussion page. internal

Subscriptions

Action Human readable Description Internal?
discussiontoolsgetsubscriptions get subscriptions Get the subscription statuses of given topics.
discussiontoolssubscribe subscribe Subscribe (or unsubscribe) to receive notifications about a topic.

Special pages

Integration with other extensions

DiscussionTools can integrate with PlaceNewSection to put the location of where added new topics will begin to be placed.

It can also integrate with AutoModerator to enable community-configured reversion of Machine Language-scored bad edits.

See also