Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:DiscussionTools

From mediawiki.org
Translate this page
Languages:
MediaWiki extensions manual
DiscussionTools
Release status: stable
ImplementationUser interface
DescriptionTools to enhance discussion pages
Author(s)WikimediaEditing team
Latest versionContinuous updates
Compatibility policySnapshots releases along with MediaWiki. Master is not backward compatible.
Database changesYes
Tablesdiscussiontools_items
discussiontools_item_ids
discussiontools_item_pages
discussiontools_item_revisions
discussiontools_subscription
LicenseMIT License
Download
HelpHelp:DiscussionTools
  • $wgDiscussionToolsReplyIndentation
  • $wgDiscussionToolsBeta
  • $wgDiscussionTools_visualenhancements
  • $wgDiscussionToolsEnablePermalinksBackend
  • $wgDiscussionToolsEnableThanks
  • $wgDiscussionToolsTimestampFormatSwitchTime
  • $wgDiscussionToolsShowFeedbackLinks
  • $wgDiscussionToolsTalkPageParserCacheExpiry
  • $wgDiscussionTools_visualenhancements_pageframe
  • $wgDiscussionToolsAutoTopicSubEditor
  • $wgDiscussionToolsConflictingGadgetName
  • $wgDiscussionTools_visualenhancements_reply
  • $wgDiscussionToolsEnablePermalinksFrontend
  • $wgDiscussionTools_visualenhancements_reply_icon_languages
Translate the DiscussionTools extension
IssuesOpen tasks ·Report a bug

TheDiscussion Tools extension is a set of tools to enhance discussion pages.As of 2024, it is being built by theEditing team as part of thetalk pages project.

User documentation is atHelp:DiscussionTools.

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

Features

[edit]
Main pages:Talk pages project/Feature summary andExtension:DiscussionTools/Comparison

Dependencies

[edit]

Optional dependencies

[edit]

Installation

[edit]
This extensioncomes 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.
  • Download and move the extractedDiscussionTools folder to yourextensions/ directory.
    Developers and code contributors should install the extensionfrom Git instead, using:
    cdextensions/gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
  • Add the following code at the bottom of yourLocalSettings.php file:
    wfLoadExtension('DiscussionTools');
  • Run theupdate script which will automatically create the necessary database tables that this extension needs.
  • Also in LocalSettings.php, ensure that you have atimezone set and$wgFragmentMode set tohtml5.
  • Configure as required.
  • YesDone – Navigate toSpecial:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit]
Setting nameDefault valueDescription
$wgDiscussionToolsBetafalseMake DiscussionTools abeta feature.
$wgDiscussionTools_visualenhancements'default'Override availability of DiscussionTools visual enhancements.
Possible values:
'default','available','unavailable'
$wgDiscussionTools_visualenhancements_reply_icon_languages
['ar'=>true,'zh'=>true,'yue'=>true,'ja'=>true,'nod'=>true,]
A dictionary of language codes which will receive an icon in their enhanced reply-button treatment, due to translation being very short. (T323537) Language fallbacks will be checked unless a language is explicitly set tofalse. (T352289) Normalized language codes are lower case.
$wgDiscussionToolsAutoTopicSubEditor'any'Editor which triggers automatic topic subscriptions. Either'discussiontoolsapi' for edits made using DiscussionTools’ API (e.g. reply and new topic tools), or'any' for any editor.
$wgDiscussionToolsTalkPageParserCacheExpiry0Override$wgParserCacheExpireTime for discussion pages, regardless of DiscussionTools enablement.
$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).
$wgDiscussionToolsShowFeedbackLinksfalseMW 1.40+ Show "Share feedback about this feature" links in the footer of reply tool and new topic tool.
$wgDiscussionToolsTimestampFormatSwitchTime'2022-07-12'Date on which the internal timestamp format has changed (T304595), inISO 8601 format.
$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

[edit]

Editing

[edit]
ActionDescriptionInternal?
discussiontoolscompareGet information about comment changes between two page revisions.Yes
discussiontoolseditPost a message on a discussion page.N
discussiontoolsfindcommentFind a comment by its ID or name.N
discussiontoolspageinfoReturns metadata required to initialize the discussion tools.Yes
discussiontoolspreviewPreview a message on a discussion page.Yes


Subscriptions

[edit]
ActionDescriptionInternal?
discussiontoolsgetsubscriptionsGet the subscription statuses of given topics.N
discussiontoolssubscribeSubscribe (or unsubscribe) to receive notifications about a topic.N

Special pages

[edit]

Integration with other extensions

[edit]

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

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

See also

[edit]
This extension is being used on one or moreWikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia'sCommonSettings.php andInitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki'sSpecial:Version page.
This extension is included in the following wiki farms/hosts and/or packages:
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:DiscussionTools&oldid=8056347"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp