![]() Release status: beta |
|
---|---|
Implementation | Tag |
Description | Introduces <disqus> tags that insert an inline link that pop up a Disqus discussion. |
Author(s) | Sophivorustalk |
Latest version | 0.3 (2018-02-10) |
MediaWiki | 1.29+ |
PHP | 5.3+ |
Database changes | No |
License | GNU General Public License 3.0 only |
Download | Download extension Git [?]: |
Parameters
|
|
Tags
<disqus> |
|
Hooks used
|
|
Quarterly downloads | 1 (Ranked 169th) |
Translate the DisqusTag extension if it is available at translatewiki.net | |
The DisqusTag extension introduces <disqus>
tags that serve to insert inline links that, when clicked, open a dialog box with Disqus comments.
Installation
- Download and place the file(s) in a directory called
DisqusTag
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php
wfLoadExtension( 'DisqusTag' ); $egDisqusShortname = 'your-disqus-shortname';
file: Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
The minimal usage is simply <disqus />
, which inserts an inline link that opens a dialog box with Disqus comments.
By using a pair of tags, <disqus>Discussion title</disqus>
, it's possible to change the title of the discussion together with the text displayed in the inline link. This can also be achieved via the "title" parameter, like so: <disqus title="Discussion title" />
The "id" parameter, <disqus id="my-discussion" />
, allows to insert several different discussions in the same page. Without it, every Disqus tag links to the same discussion (one per page, as the url is used as the id).
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.