Difference between pages "Template:DISQUS" and "Widget:DISQUS"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(Created page with "{{#widget:DISQUS |id=funtoo |uniqid={{FULLPAGENAME}} |url={{fullurl:{{FULLPAGENAME}}}} }}")
 
(Created page with "<noinclude>__NOTOC__ This widget allows you to embed '''[http://www.disqus.com/ DISQUS Comments]''' on your wiki page. Created by [http://www.mediawikiwidgets.org/User:Sergey...")
 
Line 1: Line 1:
{{#widget:DISQUS
+
<noinclude>__NOTOC__
|id=funtoo
+
This widget allows you to embed '''[http://www.disqus.com/ DISQUS Comments]''' on your wiki page.
|uniqid={{FULLPAGENAME}}
+
 
|url={{fullurl:{{FULLPAGENAME}}}}
+
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
}}
+
 
 +
== Using this widget ==
 +
For information on how to use this widget, see [http://www.mediawikiwidgets.org/DISQUS widget description page on MediaWikiWidgets.org].
 +
 
 +
== Copy to your site ==
 +
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
 +
</noinclude><includeonly><div id="disqus_thread"></div>
 +
<script type="text/javascript">
 +
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
 +
    var disqus_shortname = '<!--{$id|escape:'urlpathinfo '}-->'; // required: replace example with your forum shortname
 +
    <!--{if (isset($uniqid))}-->var disqus_identifier = '<!--{$uniqid|escape:'quotes'}-->';<!--{/if}-->
 +
    <!--{if (isset($url))}-->var disqus_url = '<!--{$url|escape:'quotes'}-->';<!--{/if}-->
 +
 
 +
    /* * * DON'T EDIT BELOW THIS LINE * * */
 +
    (function() {
 +
        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
 +
        dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
 +
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
 +
    })();
 +
</script>
 +
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
 +
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a></includeonly>

Latest revision as of 03:02, 19 January 2013

This widget allows you to embed DISQUS Comments on your wiki page.

Created by Sergey Chernyshev

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:DISQUS article.