Widget:Bookshop: Difference between revisions
Created page with "<div class="bookshop-widget"> <script src="https://bookshop.org/widgets.js" data-type="book" data-affiliate-id="111716" data-sku="9780691162553"></script> </div> <includeonly> <div class="bookshop-widget-container" id="bookshop-widget-{{{id|default}}}"> <script src="https://bookshop.org/widgets.js" data-type="{{{type|book}}}" data-affiliate-id="{{{affiliate|111716}}}" data-sku="{{{sku|9780691162553}}}"> </script> </div> </includeonly> <noinclude> ==..." |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="bookshop-widget-container" id="bookshop-widget-{{{id|default}}}"> | <div class="bookshop-widget-container" id="bookshop-widget-{{{id|default}}}"> |
Revision as of 16:15, 10 March 2025
Bookshop.org Widget
This widget embeds a Bookshop.org book widget on a wiki page.
Usage
{{widget:bookshop |id=unique-id |type=book |affiliate=111716 |sku=9780691162553 }}
Parameters
- id (optional): A unique identifier for this widget instance
- type (optional): The widget type (default: "book")
- affiliate (optional): Your Bookshop.org affiliate ID (default: 111716)
- sku (optional): The book's SKU number (default: 9780691162553)