Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Gutenberg author

Permanently protected template
From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
This template usesLua:
WarningThis template is used onapproximately 11,000 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.
This template uses theWikidata property:

This is a template to generate links toProject Gutenberg authors. This template should be used exclusively for AUTHORS, ILLUSTRATORS, TRANSLATORS, and persons with similar roles in book production. To link directly to a BOOK, useTemplate:Gutenberg book.

The template can be used three ways, with|id= toname,number or empty for Wikidata

  • id = name
{{Gutenberg author | id=James,+Henry+(1843-1916) |name=Henry James}}
produces this URL
https://www.gutenberg.org/author/James,+Henry+(1843-1916)
displayed like this
Works by Henry James atProject Gutenberg
  • id = number
{{Gutenberg author | id=113 |name=Henry James}}
produces this URL
https://www.gutenberg.org/ebooks/author/113
displayed like this
Works by Henry James atProject Gutenberg
  • id = <none> for Wikidata
{{Gutenberg author |name=Henry James}}
this works on pages that have Wikidata items and haveProject Gutenberg author ID(P1938) defined, but otherwise works usingid = number above
  • 'id = name' will go to an author search result page.
  • 'id = number' will skip the author search result page and go direct to the author page. This is preferable.

Process

  1. Go to theProject Gutenberg web site.
  2. Using the online catalog, search for the author you want to link via the template.
  3. Find the author listing, such as:Harrison, James A. (James Albert) (1848-1911)
  4. Edit the Wikipedia page and add in theGutenberg author template.
  5. You now have three choices: The 'id' can be either the author name, the author number or be defined in linked Wikidata (and which otherwise works the same as providing a number directly). By using the name it will go to a search results page. By using the number it will go direct to the author page. The later is preferred, unless the author has works spread across multiple authors (such as an illustrator or translator).
  6. If using author name, set the 'id' variable equal to the author's name in this format:Lastname,+Firstname or however the name appears in the Gutenberg website, usually lastname followed by comma and then the rest of the name. The plus "+" are required; if spaces are used, the URL won't work. Although it's possible to use a bare template with no ID parameter since it will default to the article title, this is not recommended as articles on Wikipedia are continually renamed for disambiguation purposes and it's safer to lock in the desired ID.
  7. If using the author number, set the 'id' to the number Gutenberg uses for that author. The number can be found by clicking through to the author page which will have a URL likehttp://www.gutenberg.org/ebooks/author/113
  8. You may also set the 'name' variable in the template to equal the author's name how you wish it to appear, such as:James A. Harrison orJames Albert Harrison. The 'name' is for Wikipedia display purposes only.
  9. Dates in the ID should be avoided unless needed to narrow the search results. This is because the dates in the Gutenberg database may be incorrect and will change in the future thus potentially breaking the URL. Nevertheless, it's better to add the dates if they are needed to narrow search results. Even better, find the author ID and use that instead.

Examples when id is a name

{{Gutenberg author | id=Swift,+Jonathan}}
produces:
Works by Jonathan Swift atProject Gutenberg
{{Gutenberg author | id=James,+Henry+(1843-1916)}}
produces:
Works by Henry James atProject Gutenberg
This shows how dates are used to narrow results of a common name.
{{Gutenberg author | id=Adams,+Ephraim+Douglass}}
produces:
Works by Ephraim Douglass Adams atProject Gutenberg
This demonstrates a 3-word name.
{{Gutenberg author | id=Woodhead,+G.+Sims,+(German+Sims),+Sir
produces:
Works by German Sims Woodhead atProject Gutenberg
This demonstrates a complex name (use of "Sir"). Other complex names include royalty. The only way to know how its structured is by looking at the Gutenberg database first.
{{Gutenberg author | id=Thomas,+Edward}}
produces:
Works by Edward Thomas atProject Gutenberg
This demonstrates how a common name can match multiple people. To narrow the results add the dates:
{{Gutenberg author | id=Thomas,+Edward+(1878-1917)}}
produces
Works by Edward Thomas atProject Gutenberg
Unfortunately sometimes the birth-death dates on Wikipedia don't exactly match those on Gutenberg.

Note: A partial name, such as {{gutenberg author | id=Jon | name=Jon}} will generate a list of all authors with "Jon" anywhere in the name.

Template data

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Gutenberg author in articles based on its TemplateData.

TemplateData for Gutenberg author

This is a template to generate links to authors on Project Gutenberg.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
idid

Author ID (preferably number) on Project Gutenberg

Example
113
Unknownrequired
namename

Author name to be displayed on the page

Example
Henry James
Stringoptional

See also

The abovedocumentation istranscluded fromTemplate:Gutenberg author/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Gutenberg_author&oldid=730582959"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp