| This is a documentation subpage for Template:StandardEbooks. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template is used on approximately 2,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
This is a template to link to pages on Standard Ebooks. It currently is able to link to books, authors, and collections.
General usage
<syntaxhighlight lang="wikitext">[ Works by StandardEbooks/doc in eBook form] at Standard Ebooks [ Works by StandardEbooks/doc in eBook form] at Standard Ebooks</syntaxhighlight>
By default, all you need to do is put the Standard Ebooks URL into the template, and the template will detect what you're linking to and the name of the Wikipedia page you are linking from. As such, you only need to put a display name in if the name of the Wikipedia page is not the name of the book/author/collection.
The template wraps authors so they look like "The works of [Author] in eBook form" and collections so they look like "A collection of [Page] eBooks." It takes the {{PAGENAMEBASE}} , so "Pygmalion (play)" simply becomes "Pygmalion" when it goes into the template.
Examples
Books
| Markup | Renders as |
|---|---|
<syntaxhighlight lang="wikitext" style="" class="markup-markup">{{StandardEbooks|Standard Ebooks URL=https://standardebooks.org/ebooks/george-bernard-shaw/pygmalion}}</syntaxhighlight>
|
|
<syntaxhighlight lang="wikitext" style="" class="markup-markup">{{StandardEbooks|Standard Ebooks URL=https://standardebooks.org/ebooks/anonymous/beowulf/john-lesslie-hall |Display Name=''Beowulf,'' translated by John Lesslie Hall | noitalics=true}}</syntaxhighlight>
|
Authors
| Markup | Renders as |
|---|---|
<syntaxhighlight lang="wikitext" style="" class="markup-markup">{{StandardEbooks|Standard Ebooks URL=https://standardebooks.org/ebooks/george-bernard-shaw}}</syntaxhighlight>
|
Collections
| Markup | Renders as |
|---|---|
<syntaxhighlight lang="wikitext" style="" class="markup-markup">{{StandardEbooks|Standard Ebooks URL=https://standardebooks.org/collections/arsene-lupin}}</syntaxhighlight>
|
|
<syntaxhighlight lang="wikitext" style="" class="markup-markup">{{StandardEbooks|Standard Ebooks URL=https://standardebooks.org/collections/the-guardians-best-100-novels-in-english-2015|Display Name=the public domain entries on the 2015 Guardian list as}}</syntaxhighlight>
|
Template data
TemplateData for StandardEbooks
<templatedata> { "params": { "Standard Ebooks URL": { "description": "URL to Standard Ebooks page for a book, author, or collection", "example": "https://standardebooks.org/ebooks/george-bernard-shaw/pygmalion", "required": true, "aliases": [ "url" ], "type": "url" }, "Display Name": { "aliases": [ "name" ], "description": "Title of the book, name of the author, name of collection", "example": "Pygmalion", "autovalue": "", "default": "StandardEbooks/doc", "type": "string" }, "noitalics": { "description": "If true, book title is not italicised.", "default": "false", "type": "string", "suggestedvalues": [ "false", "true" ] } }, "description": "Insert external link to Standard Ebooks production of public-domain work.", "paramOrder": [ "Standard Ebooks URL", "Display Name", "noitalics" ] } </templatedata>