Difference between revisions of "Widget:AdSense"

From Wiki Farming
(Created page with " <noinclude>__NOTOC__ This widget allows you to embed '''[//www.google.com/adsense/ AdSense ads]''' on your wiki page. Created by Ike Hecht for [//www.wikiworks.com WikiWorks...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
<noinclude>__NOTOC__
 
<noinclude>__NOTOC__
 
This widget allows you to embed '''[//www.google.com/adsense/ AdSense ads]''' on your wiki page.
 
This widget allows you to embed '''[//www.google.com/adsense/ AdSense ads]''' on your wiki page.
Line 12: Line 11:
 
</noinclude><includeonly><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 
</noinclude><includeonly><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 
<ins class="adsbygoogle <!--{$name|escape:html}-->"
 
<ins class="adsbygoogle <!--{$name|escape:html}-->"
     style="display:inline-block;width:<!--{$width|escape:'int'}-->;height:<!--{$height|escape:'int'}-->"
+
     style="display:block"
     data-ad-client="{$ca-pub-9894395424830386|escape:html}"
+
     data-ad-client="ca-pub-9894395424830386"
     data-ad-slot="<!--{$slot|escape:html}-->"></ins>
+
     data-ad-slot="9797567368"
 +
    data-ad-format="auto"></ins>
 
<script>
 
<script>
 
(adsbygoogle = window.adsbygoogle || []).push({});
 
(adsbygoogle = window.adsbygoogle || []).push({});
 
</script></includeonly>
 
</script></includeonly>

Latest revision as of 13:18, 22 December 2019

This widget allows you to embed AdSense ads on your wiki page.

Created by Ike Hecht for WikiWorks.

Using this widget

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

Copy to your site

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