Difference between revisions of "Template:Gutenberg book"
Jump to navigation
Jump to search
imported>Uzume (Template:doi and Template:OCLC) |
|||
| (79 intermediate revisions by 59 users not shown) | |||
| Line 1: | Line 1: | ||
| − | [ | + | {{#ifeq: {{{bullet|}}} | none |
| − | + | | | |
| − | + | | * | |
| − | + | }}<span class="citation gutenberg" {{ | |
| − | + | #if: {{{ref|}}} | |
| − | [[ | + | |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}} |
| − | [[ | + | |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }} |
| + | }}>{{ | ||
| + | #if: {{{author|}}}{{{last|}}} | ||
| + | | {{ | ||
| + | #if: {{{authorlink|}}} | ||
| + | | [[{{{authorlink}}}|{{ | ||
| + | #if: {{{last|}}} | ||
| + | | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }} | ||
| + | | {{{author}}} | ||
| + | }}]] | ||
| + | | {{ | ||
| + | #if: {{{last|}}} | ||
| + | | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }} | ||
| + | | {{{author}}} | ||
| + | }} | ||
| + | }} | ||
| + | }}{{ | ||
| + | #if: {{{author|}}}{{{last|}}} | ||
| + | | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki> {{{coauthors}}} }} | ||
| + | }}{{ | ||
| + | #if: {{{origdate|}}} | ||
| + | |  <nowiki>[</nowiki>{{{origdate}}}] | ||
| + | | {{ | ||
| + | #if: {{{origyear|}}} | ||
| + | | {{ | ||
| + | #if: {{{origmonth|}}} | ||
| + | |  <nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}] | ||
| + | |  <nowiki>[</nowiki>{{{origyear}}}] | ||
| + | }} | ||
| + | }} | ||
| + | }}{{ | ||
| + | #if: {{{date|}}} | ||
| + | |  ({{{date}}}) | ||
| + | | {{ | ||
| + | #if: {{{year|}}} | ||
| + | | {{ | ||
| + | #if: {{{month|}}} | ||
| + | |  ({{{month}}} {{{year}}}) | ||
| + | |  ({{{year}}}) | ||
| + | }} | ||
| + | }} | ||
| + | }}{{ #if: {{{author|}}}{{{last|}}} | . | ||
| + | }}{{ | ||
| + | #if: {{{chapter|}}} | ||
| + | |  “{{ | ||
| + | #if: {{{chapterurl|}}} | ||
| + | | [{{{chapterurl}}} {{{chapter}}}] | ||
| + | | {{{chapter}}} | ||
| + | }}”,}}{{ | ||
| + | #if: {{{editor|}}} | ||
| + | |  {{{editor}}}: | ||
| + | }} ''[https://www.gutenberg.org/ebooks/{{{1|{{{no|}}}}}} {{{2|{{{name|{{{title|{{PAGENAME}}}}}}}}}}}]''{{ | ||
| + | #if: {{{format|}}} |  ({{{format}}}) | ||
| + | }}{{ | ||
| + | #if: {{{others|}}} | , {{{others}}} | ||
| + | }}{{ | ||
| + | #if: {{{edition|}}} | , {{{edition}}} | ||
| + | }}{{ | ||
| + | #if: {{{series|}}} | , {{{series}}} | ||
| + | }}{{ | ||
| + | #if: {{{language|}}} |  (in {{{language}}}) | ||
| + | }}{{ | ||
| + | #if: {{{publisher|}}} | ||
| + | | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,  | .  }}{{ | ||
| + | #if: {{{location|}}} | ||
| + | | {{{location}}}:  | ||
| + | }}{{{publisher}}} | ||
| + | }}{{ | ||
| + | #if: {{{pages|}}} | , {{{pages}}} | ||
| + | }}{{ | ||
| + | #if: {{{doi|}}} | . {{doi|{{{doi}}}}} | ||
| + | }}{{ | ||
| + | #if: {{{id|}}} | . {{{id}}} | ||
| + | }}{{ | ||
| + | #if: {{{isbn|}}} | . {{ISBN|{{{isbn}}}}} | ||
| + | }}{{ | ||
| + | #if: {{{oclc|}}} | . {{OCLC|{{{oclc}}}}} | ||
| + | }}{{ | ||
| + | #if: {{{accessdate|}}} | ||
| + | | . Retrieved on {{{accessdate}}} | ||
| + | }} at [[Project Gutenberg]]{{ #if: {{{quote|}}} | "{{{quote}}}" | ||
| + | }}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Articles with Project Gutenberg links]]|}}</span><noinclude> | ||
| + | <!-- Add cats and interwikis to the /doc subpage, please, not here! --> | ||
| + | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:43, 3 January 2021
| Notice | 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 generate links to books on Project Gutenberg.
To link to authors on Project Gutenberg, use {{Gutenberg author}}.
Process
- Go to the Project Gutenberg web site.
- 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
{{Gutenberg | no= | name= }}
- Examples
- {{Gutenberg | no=2383 | name=The Canterbury Tales and Other Poems}}
- {{Gutenberg | no=2383 | name=The Canterbury Tales and Other Poems | author=[[Geoffrey Chaucer]]}}
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 |
|---|---|
| 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 | |
| last | |
| year | |
| author | |
| first | |
| last | |
| authorlink | |
| origdate | |
| origyear | |
| chapter | |
| format | |
| others | |
| edition | |
| series | |
| language | |
| publisher | |
| pages | |
| doi | |
| id | |
| isbn | International Standard Book Number |
| oclc | |
| accessdate | |
| quote |
The following parameters are deprecated: accessdaymonth, accessmonthday, accessday, accessmonth, accessyear, access-date, dateformat, day. Use one of the parameters above instead.
| The above documentation is transcluded from Template:Gutenberg book/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |