| This is a documentation subpage for Template:Gutenberg book. 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 3,100 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. |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
This is a template to generate links to books on Project Gutenberg.
To link to authors on Project Gutenberg, use {{Gutenberg author}}.
Process
- Go to the Project Gutenberg website.
- Look up the page that has the book you want to link via the template.
- Get the EText-No. and the Book name.
- Edit the Wikipedia page and add in the Gutenberg template, setting the 'no' variable equal to the EText-No. and the 'name' equal to the book name.
Basic usage
<syntaxhighlight lang="wikitext">
- [1] at Project Gutenberg</syntaxhighlight>
- Examples
- {{Gutenberg book | no=2383 | name=The Canterbury Tales and Other Poems}}
- {{Gutenberg book | no=2383 | name=The Canterbury Tales and Other Poems | author=[[Geoffrey Chaucer]]}}
- The Canterbury Tales and Other Poems at Project Gutenberg
- {{Gutenberg book | bullet=none | no=2383 | name=The Canterbury Tales and Other Poems}}
Parameters
Do not use all these parameters for any one book. The list is long to cover a wide range of books. Only use those parameters that convey essential or notable information about the subject. Any parameters left blank or omitted will not be displayed. If a data field has more than one parameter name which can be used, the preferred name is listed first in bold print.
| Parameter | Explanation |
|---|---|
| no | |
| name | Name of work; defaults to PAGENAMEBASE |
| italics | Set to no to display quotation marks around the name instead of using italics; any other value will use italics
|
| bullet | Enter 'none' if you do not want the bullet. This is advisable if you are using this as the only source in a reference. |
| ref | |
| year | |
| author | |
| first | |
| last | |
| authorlink | |
| origdate | |
| origyear | |
| chapter | |
| format | |
| others | |
| edition | |
| series | |
| language | |
| publisher | |
| pages | |
| doi | |
| id | |
| isbn | International Standard Book Number (never applicable, since all Project Gutenberg editions were published before 1970) |
| oclc | |
| access-date | |
| quote |
<syntaxhighlight lang="wikitext" style="overflow:auto">
</syntaxhighlight>
TemplateData
TemplateData for Gutenberg book
<templatedata> { "params": { "bullet": { "description": "Enter 'none' if you do not want the bullet. This is advisable if you are using this as the only source in a reference.", "suggestedvalues": [ "none" ] }, "ref": {}, "last": {}, "year": {}, "author": { "description": "Book author", "example": "Geoffrey Chaucer", "type": "string" }, "authorlink": {}, "first": {}, "coauthors": {}, "origdate": {}, "origyear": {}, "origmonth": {}, "date": {}, "month": {}, "chapter": {}, "chapter-url": {}, "editor": {}, "no": { "description": "Gutenberg book E-Text number", "type": "number", "suggested": true, "example": "2383" }, "name": { "description": "Book name; enter if the name of the book is different to the name of the page. Default value is name of page.", "type": "string", "example": "The Canterbury Tales and Other Poems" }, "italics": { "description": "Enter 'no' to display quotation marks around the name instead of using italics; any other value will use italics.", "suggestedvalues": [ "no" ] }, "title": {}, "format": {}, "others": {}, "edition": {}, "series": {}, "language": {}, "publisher": {}, "location": {}, "pages": {}, "doi": { "description": "Digital object identifier" }, "id": {}, "isbn": { "description": "International Standard Book Number", "type": "number" }, "oclc": { "description": "Online Computer Library Center Number" }, "access-date": {}, "accessdate": {}, "quote": {} }, "description": "This is a template to generate links to books on Project Gutenberg.", "paramOrder": [ "no", "name", "italics", "bullet", "year", "ref", "author", "first", "last", "authorlink", "origdate", "origyear", "origmonth", "date", "month", "chapter", "chapter-url", "coauthors", "editor", "title", "format", "others", "edition", "series", "language", "publisher", "location", "pages", "doi", "id", "isbn", "oclc", "access-date", "accessdate", "quote" ] } </templatedata>