Chapter 6 Communication
MediaWiki provide a variety of ways for users to communicate with one another. These include talk pages for potentially large-scale discussions, personal communication via user talk pages (and potentially via more social networking-like interfaces in the future), threaded discussions at the bottoms of pages via some extensions, real-time chat, and finally users emailing each other via the wiki. We'll cover all of these in this chapter.
Talk pages
As we saw in the last chapter, every regular namespace for content in MediaWiki has an associated talk namespace, meant to hold pages used to discuss the contents of pages in that regular namespace. In the interface, one of the elements that usually shows up automatically for each page is a link to that page's corresponding talk page; in most skins this is the second tab within the top row of tabs. A page and its corresponding talk page will have the same name, but in different namespaces; for instance, the talk page for “University of Chicago” would be “Talk:University of Chicago”, while the talk page for “Category:Universities” would be “Category talk:Universities”.
Talk pages in MediaWiki, in general, are intended only for discussion of the corresponding page and how to improve it, and not for discussion of the page's underlying topic – that holds true for both Wikipedia and internal organizational wikis. There are two major exceptions to that, though. Talk pages for users, i.e. pages in the “User talk:” namespace (in English), are usually used for communication with that user, and only rarely to discuss the contents of the user page itself. And on wiki pages meant for documenting some technical topic, like a piece of software, the talk page can often turn into an informal venue for questions and answers about the page's topic.
Let's take a look at a typical usage of a talk page. On a page on an internal wiki, you see the information that the South American division of your company was founded in 1983. This is a surprise to you, since you had always thought that the division was founded in the 1990s. Your first instinct is to simply edit the page and change the information, but then you reconsider, thinking that you've just been misinformed. (The real lesson of this example may be the importance of trying to reference every piece of information; see here for more on that.)
You decide, then, to bring it to the talk page. You click on the page's “Discussion” tab, and then among the tabs will appear one called either “Add topic” or just “+”, depending on which skin you're using. You should click that tab. Then you'll see a standard edit interface, but with the addition of a “Subject/headline” field at the top. In that field, you could write something like “Founded in 1983?”, and in the body, the following:
I had always thought the South American division was started in the 1990s - I think I heard that during the employee orientation. Was it really in 1983? If so, is there a source for that? ~~~~
Then you hit “Save”, and the new section is created. The “~~~~” at the end is important – when you save the page, that set of four tildes gets changed into a “signature”, containing your username, a link to your talk page, and the date and time the message was posted. You could also put “~~~” instead – three tildes instead of four. This will display everything but the date and time. In practice, there's no good reason to do this; four tildes is always better.
If you're not logged in, your IP address will be displayed instead of a username – which is not very helpful, so you might as well manually type in your name and the data, instead of using the tildes, in that case.
Now it's time to wait – a response could come in the next hour, or in the next month, or of course not at all. You can keep checking the talk page, or monitor it via one of the many ways of monitoring MediaWiki pages – recent changes, watchlist, RSS/Atom, email, etc.
If no response appears within a certain period of time (entirely up to you), you can feel free to make the change you were thinking of making – you can even make the change at the same time as you post the talk page question, so that you don't have to deal with it again until a response comes.
Now, what happens if a discussion does ensue on the talk page? There's a standard syntax that's used. As we saw in the MediaWiki syntax chapter, colons are used for indenting paragraphs, and in the case of talk pages each message is usually intended one further than the previous message. After five or six colons, though, the discussion usually goes back to no colons, for the sake of both sanity and readability, and then the pattern begins again. And if a person's statement is more than one paragraph, each paragraph should begin with the same number of colons.
As before, every statement should end with the user's signature, set by typing "~~~~".
Archiving
If a talk page starts to get very long, the solution is to archive old comments. Unfortunately, there's no way to do that automatically – it has to be done by hand. You do that by copying some or all of the current talk page into a separate page that's a subpage of the main page, i.e. a page with the name "Talk:name of page/something else". Then the relevant content is removed from the current talk page, and a link is placed in the talk page to that archive page.
Templates help a lot when archiving talk pages. Usually two templates are used: one to be placed at the top of the talk page, which holds links to all the archive pages for that talk page, and another to be put at the top of archive pages, explaining that this is an archive page and linking back to the talk page.
There's no need to create these two templates from scratch: you can copy them from any wiki that does talk page archiving. On the English-language Wikipedia, for instance, they can be found at the pages “Template:Archives” and “Template:Talk archive”, respectively. You could consider going with the two templates at mediawiki.org as well, which have a simpler layout and use a nice file-cabinet image (which itself also would have to be copied over – File:Replacement_filing_cabinet.svg – or you can use the InstantCommons feature to use the image directly; see here). You can find these two templates at "Template:Archive box" and "Template:Archive" on the mediawiki.org wiki.
On Wikipedia, archiving is usually done when the talk page reaches over 35 KB or so, and the archive pages are usually given sequential numbers: the first archive page is called “Talk:page name/1”, the second one is called “Talk:page name/2”, etc. This works fine, although I recommend an alternate approach for naming: using the date within the name, so that the subpage is called “/2019” or “/May 2019 to January 2020” or “/May 2019”, etc., depending on the span of time contained within the archive. This makes it easier for users to find a particular old discussion, if they can remember approximately when it happened. There's no reason, however, to set the frequency of archiving based on this: just because you have archive pages named “2019” and “2020” doesn't mean that you need a page named “2021”, if there's not enough content for that one year.
Threaded discussions
On the face of it, using a flat wiki page for a discussion is absurd: it requires people to remember a syntax for indentations and another syntax for signatures, it lets people edit each others' comments, it lets you put in bad formatting and mess up the whole rest of the page, etc. The much more logical approach is to have a system that supports standard threaded comments, where you either hit “New post” or find a comment you want to reply to and hit “Reply”, then type and save your comment and you're done. (And you can then edit your own comments, but not others'.)
Various attempts have been made to introduce threaded comments to MediaWiki. From around 2008 to 2015, the most popular was a WMF-developed extension called LiquidThreads
. Starting around 2015, the
StructuredDiscussions extension (originally called Flow
), another WMF-developed extension, came to replace it as the threaded-comments solution of choice.
Ironically, 2015 was also the last year that real development was done on StructuredDiscussions; since then the only development on it has been maintenance, to fix bugs and ensure that it works with newer versions of MediaWiki. Why did real development stop? It was never fully explained, but surely the main reason is that the extension never caught on, on Wikipedia and the other Wikimedia sites – editors preferred the talk page interface that they were used to. (Although SD remains in heavy use on mediawiki.org, at least.)
Of course, the views of Wikipedia editors do not need to affect your choices on your own wiki. But StructuredDiscussions has never been that popular among “regular” wikis, either. Perhaps that is due to some of the awkward aspects of its user interface – like its use of the so-called “infinite scrolling technique”, where you have to keep scrolling down to see additional discussions (there's also a “Browse topics” link at the top, but it is easy to miss). A more standard paginated display (breaking up topics into pages, reverse-chronologically) might have made it easier to see the overall structure of the discussions: when the talk page was most active, what the topics of discussion were at different times in the past, what the current set of recent discussions looks like, and so on.
StructuredDiscussions will most likely keep being supported for a long time; but there is also the chance that it will become unmaintained – next year, or five years from now, or ten years from now. That risk, in addition to the problems with the user interface, make it seem like a bad idea to install the extension on a new wiki.
If you're still interested in StructuredDiscussions, though, its page is here:
A newer tool, which seems like the way forward, is the DiscussionTools extension – an extension that is already in heavy use on Wikipedia talk pages. It presents a much more lightweight approach to enabling threaded discussions: instead of imposing its own structure on talk pages, involving a custom interface, custom storage of threads, and the like, it keeps talk pages as they are – but provides “reply” links after each comment, which bring up a VisualEditor
popup interface when clicked, making it easy to do even complex threaded questions without the need to know any wikitext. Figure 6 shows a section from the page “Talk:Almoravid dynasty” on the English-language Wikipedia, after a “reply” link is clicked: note the “subscribe” link at the top, allowing the user to be notified of future posts to this section, as well as the “reply” links on both current posts, allowing the user to reply to either one.
Unfortunately, DiscussionTools, being a relatively new extension, does not work yet outside of Wikimedia wikis – there are bugs in its implementation if you try to just install it locally. WMF developers are planning to make it usable, though, and even to add it in as one of MediaWiki's bundled extensions, perhaps in the next few years. You can read more about DiscussionTools' current status here:
Thankfully, there is a “Plan B” for those who want a lightweight interface like DiscussionTools on their own wiki: the JavaScript-based tool
Convenient Discussions, which was actually one of the inspirations for DiscussionTools. Convenient Discussions offers essentially the same functionality as DiscussionTools, including the ability to “subscribe” to different threads, and is surprisingly robust for a pure JavaScript-based solution. For the moment, it may be the best solution for handling MediaWiki talk pages. You can read more about it, including instructions for either installing it directly within the wiki or making it an optional “gadget” for users, here:
Handling reader comments
It should be noted again that, regardless of how the talk page is implemented, it is meant, for the most part, to be a place to discuss the contents of the relevant wiki page and not that page's actual subject matter. But what if you want a place for readers (not necessarily even the wiki's own users) to comment on the page's subject matter, or more generally, to place any sort of free-form comments? One solution is to simply use the talk page for that, and avoid wiki-style editing-based discussions altogether. This approach can make sense when the wiki is what's known as a "bliki", or a wiki where pages are generally blog-style, dated posts. Blikis
are usually edited by one person, but even if they're not, generally no collaboration happens on the content, so there's no need to use talk pages to aid in collaboration. That frees up the talk pages for use in storing reader comments.
For cases when actual collaboration happens, though, and you want both collaboration-related discussions and blog-style comments, it is better to reserve talk pages only for the former. In this case, one solution that works well is to use a third-party commenting tool, and place it at the bottom of pages that require it. At the moment, what seem to be everybody's favorite such tools are Facebook comments and Disqus
. The easiest way to add such comments to MediaWiki is to use the "Widgets" extension, and add in the appropriate widget – see here.
Another option is the CommentStreams extension, which provides an interface for blog-style comments, which get displayed at the bottom of regular pages. These comments do not get stored in an outside service like Disqus, but rather in the wiki's own database:
Finally, you can set up an actual forum/discussion board, outside of the context of any content pages, at Special:WikiForum, using the WikiForum extension
:
Chat
There are several extensions that display a window, within MediaWiki web pages, that provides a chat room for all the users currently logged in to talk with one another in real time. These extensions are only rarely used, perhaps because there's generally nothing substantive to be said between two people who both happen to be reading, or even editing, a wiki at the same time. Two such extension that are currently active are MediaWikiChat (part of the SocialProfile family of extensions – see here) and WebChat:
These two extensions provide a chat room interface at Special:Chat and Special:WebChat, respectively.
Emailing users
The page Special:EmailUser lets any user with a confirmed email address email any other user on the wiki with a confirmed email address. The user can set anything for the email's subject and body. The email that is sent will have the sender's username and email address appear as the “From” in the email, so you shouldn't use this page if you want to hide your email address from the recipient.
MediaWiki does not offer a way for administrators to email all of the wiki's users at once, unfortunately.
The
ContactPage extension allows the wiki to have a contact form, where users can enter comments that will then be emailed to one or more people (administrators or otherwise):
