Widget:Google Books: Difference between revisions
Created page with "<noinclude>__NOTOC__ This widget allows you to embed '''[https://developers.google.com/books Google Books]''' on your wiki page. Originally created by [https://www.mediawikiwidgets.org/User:Arv Arv] and adapted by [https://www.mediawikiwidgets.org/User:FrancisFranck FrancisFranck]. Further updated to meet current MediaWiki security requirements. == Using this widget == To use this widget, add the following code to your wiki page: <pre> {{#widget:Google_Books |id=BOOK_..." |
No edit summary |
||
Line 2: | Line 2: | ||
This widget allows you to embed '''[https://developers.google.com/books Google Books]''' on your wiki page. | This widget allows you to embed '''[https://developers.google.com/books Google Books]''' on your wiki page. | ||
Originally created by [https://www.mediawikiwidgets.org/User:Arv Arv] and adapted by [https://www.mediawikiwidgets.org/User:FrancisFranck FrancisFranck]. | Originally created by [https://www.mediawikiwidgets.org/User:Arv Arv] and adapted by [https://www.mediawikiwidgets.org/User:FrancisFranck FrancisFranck]. | ||
== Using this widget == | == Using this widget == | ||
For information on how to use this widget, see [https://www.mediawikiwidgets.org/Google_Books widget description page on MediaWikiWidgets.org]. | |||
== Copy to your site == | == Copy to your site == | ||
Line 24: | Line 10: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<div id=" | <div id="googlebooks-<!--{$id|escape:'html'}-->"></div> | ||
<script type="text/javascript" src="https://books.google.com/books/previewlib.js"></script> | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
/* <![CDATA[ */ | |||
var width = <!--{$width|escape:'html'|default:'600'}-->; | |||
var height = <!--{$height|escape:'html'|default:'500'}-->; | |||
var bookId = "<!--{$id|escape:'html'}-->"; | |||
if (typeof GBS_insertEmbeddedViewer === 'function') { | |||
GBS_insertEmbeddedViewer(bookId, width, height); | |||
} | |||
/* ]]> */ | |||
</script> | </script> | ||
</includeonly> | </includeonly> |
Revision as of 15:11, 10 March 2025
This widget allows you to embed Google Books on your wiki page. Originally created by Arv and adapted by FrancisFranck.
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, install MediaWiki Widgets extension and copy the complete source code of this page to your wiki as page Widget:Google Books.