Jump to content

Help:DiscussionTools/Magic words and markup

From mediawiki.org
PD Note: When you edit this page, you agree to release your contribution under the CC0. See Public Domain Help Pages for more info. PD

DiscussionTools lets editors use several magic words and other markup to control how it behaves on specific discussion pages and sections.

Markup Description
__NEWSECTIONLINK__ In addition to its built-in behavior, this magic word causes a page outside of the usual discussion namespaces (talk namespaces and $wgExtraSignatureNamespaces) to be treated as a discussion page.

This enables all DiscussionTools features on the page. (Appearance changes are currently only enabled on some wikis, depending on config settings: T331635.)

__NONEWSECTIONLINK__ does not disable DiscussionTools features in usual discussion namespaces.

Using both __NEWSECTIONLINK__ and __NONEWSECTIONLINK__ therefore enables DiscussionTools features without adding a new section link.

__ARCHIVEDTALK__ MW 1.41+ This magic word causes the discussion page to be treated as an archive.

Currently this only hides the reply links/buttons. Other discussion features, such as topic subscriptions and permalinks, are still available. Other changes to the usual behavior may be added depending on community feedback (T249293).

Use case: Templates such as Automatic archive navigator to avoid users replying to archived threads.

<div class="mw-archivedtalk">…</div> MW 1.41+ This markup causes the content wrapped in it to be treated as an archived discussion, with the same treatment as __ARCHIVEDTALK__.

Use case: Templates such as Discussion top to improve their behavior (see Why can't I reply to this comment?#Wrapper templates).

__NOTALK__ MW 1.41+ This magic word causes the page to not be treated as a discussion page.

This disables all discussion features. Even if the page contains signed comments, they will be ignored. Reply buttons and subscribe/unsubscribe buttons will not be shown, notifications about new replies in subscribed topics will not be sent, and permalinks will not work. The API will report that the page contains no comments.

Use case: Non-discussion pages in discussion namespaces. For example: WikiProject member lists, meeting signup sheets.

<div class="mw-notalk">…</div>

<blockquote>…</blockquote>
<cite>…</cite>
<q>…</q>

MW 1.41+ This markup causes the content wrapped in it to not be treated as a discussion, with the same treatment as __NOTALK__.

Use case: Content in discussion namespaces that has the signature of the author, but isn't a normal comment. For example:

  • some votes (when there is a separate section or page for discussion)
  • the opening proposal/nomination in some discussion workflows
  • some maintenance templates
  • quoting another user's comments