GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Extension:DiscussionTools - MediaWiki

MediaWiki extensions manual
DiscussionTools
Release status: stable
Implementation User interface
Description Tools to enhance discussion pages
Author(s) Wikimedia Editing team
Latest version Continuous updates
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
Database changes Yes
Tables
  • discussiontools_items
  • discussiontools_item_ids
  • discussiontools_item_pages
  • discussiontools_item_revisions
  • discussiontools_subscription
Parameters
  • $wgDiscussionToolsReplyIndentation
  • $wgDiscussionToolsBeta
  • $wgDiscussionToolsTimestampFormatSwitchTime
  • $wgDiscussionToolsConflictingGadgetName
  • $wgDiscussionToolsShowFeedbackLinks
  • $wgDiscussionToolsTalkPageParserCacheExpiry
  • $wgDiscussionTools_visualenhancements_reply_icon_languages
Hooks used
  • APIAfterExecute
  • APIGetAllowedParams
  • ApiMain::moduleManager
  • ArticleParserOptions
  • BeforeCreateEchoEvent
  • BeforeDisplayNoArticleText
  • BeforePageDisplay
  • ChangeTagsListActive
  • DiscussionToolsAddOverflowMenuItems
  • EchoGetBundleRules
  • EchoGetEventsForRevision
  • GetActionName
  • GetBetaFeaturePreferences
  • GetDoubleUnderscoreIDs
  • GetPreferences
  • ListDefinedTags
  • LoadExtensionSchemaUpdates
  • OutputPageBeforeHTML
  • OutputPageParserOutput
  • ParserAfterTidy
  • ParserOutputPostCacheTransform
  • RecentChange_save
  • ResourceLoaderGetConfigVars
  • RevisionDataUpdates
  • SkinTemplateNavigation::Universal
Hooks provided
  • DiscussionToolsAddOverflowMenuItems
  • DiscussionToolsTermsOfUseMessages
Licence MIT License
Download
Download extension
Git [?]:
  • Browse repository (Phabricator · GitHub)
  • Gerrit code review
  • Git commit log
  • Download source tarball
Help Help:DiscussionTools
Translate the DiscussionTools extension
Issues Open tasks · Report a bug

The DiscussionTools extension is a set of tools to enhance discussion pages. As of 2024, it is being built by the Editing team as part of the talk pages project .

User documentation is at Help:DiscussionTools .

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

Features

Main pages: Talk pages project/Feature summary and Extension:DiscussionTools/Comparison

Dependencies

  • Extension:VisualEditor
  • Extension:Linter

Optional dependencies

  • Extension:Echo – Enables topic subscriptions and user pinging.
  • Extension:Thanks – Enables comment thanking.
  • Extension:MobileFrontend – Enables mobile support.

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.
  • Download and move the extracted DiscussionTools folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'DiscussionTools' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Also in LocalSettings.php, ensure that you have a timezone set and $wgFragmentMode set to [ 'html5' ] or [ 'html5', 'legacy' ].
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

Setting name

$wgDiscussionTools +

Default value Description
Beta false Make any configurable sub-features marked as 'default' part of a beta feature . See HookUtils::CONFIGS.
_visualenhancements 'default' Override availability of DiscussionTools visual enhancements.
Possible values:
'default', 'available', 'unavailable'
_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 to false. (T352289) Normalized language codes are lower case.
TalkPageParserCacheExpiry 0 Override $wgParserCacheExpireTime for discussion pages, regardless of DiscussionTools enablement.
ReplyIndentation '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).
ShowFeedbackLinks false MW 1.40+ Show "Share feedback about this feature" links in the footer of reply tool and new topic tool.
TimestampFormatSwitchTime '2022-07-12' Date on which the internal timestamp format has changed (T304595), in ISO 8601 format.
ConflictingGadgetName '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 Description Internal?
discussiontoolscompare Get information about comment changes between two page revisions. Yes
discussiontoolsedit Post a message on a discussion page. N
discussiontoolsfindcomment Find a comment by its ID or name. N
discussiontoolspageinfo Returns metadata required to initialize the discussion tools. N
discussiontoolspreview Preview a message on a discussion page. Yes

Subscriptions

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

Special pages

  • Special:DiscussionToolsDebug
  • Special:FindComment
  • Special:GoToComment
  • Special:TopicSubscriptions

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

  • Extension:DiscussionTools/How it works – technical information
  • Convenient Discussions – another tool for discussions, incompatible with DiscussionTools
This extension is being used on one or more Wikimedia 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's CommonSettings.php and InitialiseSettings.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's Special:Version page.
This extension is included in the following wiki farms/hosts and/or packages:
  • Canasta
  • Debian
  • Miraheze
  • MyWikis
  • Telepedia
  • Weird Gloop
  • wiki.gg
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:DiscussionTools&oldid=8509616"
Categories:
  • Stable extensions
  • User interface extensions
  • APIAfterExecute extensions
  • APIGetAllowedParams extensions
  • ApiMain::moduleManager extensions
  • ArticleParserOptions extensions
  • BeforeCreateEchoEvent extensions
  • BeforeDisplayNoArticleText extensions
  • BeforePageDisplay extensions
  • ChangeTagsListActive extensions
  • DiscussionToolsAddOverflowMenuItems extensions
  • EchoGetBundleRules extensions
  • EchoGetEventsForRevision extensions
  • GetActionName extensions
  • GetBetaFeaturePreferences extensions
  • GetDoubleUnderscoreIDs extensions
  • GetPreferences extensions
  • ListDefinedTags extensions
  • LoadExtensionSchemaUpdates extensions
  • OutputPageBeforeHTML extensions
  • OutputPageParserOutput extensions
  • ParserAfterTidy extensions
  • ParserOutputPostCacheTransform extensions
  • RecentChange save extensions
  • ResourceLoaderGetConfigVars extensions
  • RevisionDataUpdates extensions
  • SkinTemplateNavigation::Universal extensions
  • MIT licensed extensions
  • Extensions in Wikimedia version control
  • All extensions
  • Extensions bundled with MediaWiki 1.40
  • Extensions used on Wikimedia
  • Extensions included in Canasta
  • Extensions available as Debian packages
  • Extensions included in Miraheze
  • Extensions included in MyWikis
  • Extensions included in Telepedia
  • Extensions included in Weird Gloop
  • Extensions included in wiki.gg
  • Discussion and forum extensions
  • Extensions with VisualEditor support
  • Talk pages project
Hidden categories:
  • Extensions with release branches compatibility policy
  • Pages containing potentially dated statements
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.