Widget:DISQUS

Материал из Поле цифровой дидактики
DISQUS widget
Description:Allows you to add DISQUS Comments.
Author:Sergey Chernyshev
Provider:DISQUS
Code:Widget:DISQUS
Status:active
Updated: If you use code on your wiki which is older than this date you may want to update since your widget may be insecure or broken.
Security:checked
Шаблон:AddThis

To copy this widget to your wiki, cut and paste the entire source of the DISQUS widget code page into a page called Widget:DISQUS on your wiki.

If you don't have the Widget extension set up on your wiki, go to its description page on MediaWiki.org and follow the installation instructions.


This widget allows you to add DISQUS Comments to your wiki page.

To insert this widget, use the following code:

{{#widget:DISQUS
|id=yourid
|uniqid={{PAGENAME}}
|url={{fullurl:{{PAGENAME}}}}
}}

You might want to create a template with this code called DISQUS and let people just use it like {{DISQUS}}.

Parameters

  • id - short site id you used when registered a site in DISQUS
  • uniqid - optional unique ID for the page - you can set it to {{PAGENAME}} for wikis (to make it work on edit pages, and other URLs for the same page.
  • url - optional URL for permalinking

Note: Currently DISQUS has issues with styles where MW CSS overrides theirs and bullets show up all over the place, the only solution at the moment is to switch to use their Narcissus theme. Шаблон:Comments