الگو:گوتنبرگ نویسنده
ظاهر
| این الگو از لوآ استفاده میکند: |
| این الگو در تعداد زیادی صفحه بهکار رفته است و تغییر دادن آن میتواند تأثیرات گستردهای داشته باشد. لطفاً تغییرات را در زیرصفحههای /تمرین یا /آزمایشی الگو، یا در زیرصفحهٔ کاربری خودتان بیازمایید. توصیه میشود که ابتدا در خصوص تغییرات مورد نظر در صفحهٔ بحث گفتگو کرده و سپس آنها را پیادهسازی کنید. |
این الگو از یک ویژگی ویکیداده استفاده میکند:
Project Gutenberg author ID (P1938) (کاربردها را ببینید)
This is a template to generate links to پروژه گوتنبرگ 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, use الگو:گوتنبرگ.
The template can be used three ways, with |id= to name, number or empty for Wikidata
- id = name
- {{گوتنبرگ نویسنده| id=James,+Henry+(1843-1916) |name=Henry James}}
- produces this URL
- displayed like this
- id = number
- {{گوتنبرگ نویسنده| id=113 |name=Henry James}}
- produces this URL
- displayed like this
- id = <none> for Wikidata
- {{گوتنبرگ نویسنده|name=Henry James}}
- this works on pages that have Wikidata items and have Project Gutenberg author ID (P1938) defined, but otherwise works using id = 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
[ویرایش | اشتراکگذاری]- Go to the Project Gutenberg web site.
- Using the online catalog, search for the author you want to link via the template.
- Find the author listing, such as: Harrison, James A. (James Albert) (1848-1911)
- Edit the Wikipedia page and add in the Gutenberg author template.
- 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).
- 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.
- 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 like http://www.gutenberg.org/ebooks/author/113
- 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 or James Albert Harrison. The 'name' is for Wikipedia display purposes only.
- 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
[ویرایش | اشتراکگذاری]- On جاناتان سوییفت:
- {{گوتنبرگ نویسنده| id=Swift,+Jonathan}}
- produces:
- On هنری جیمز:
- {{گوتنبرگ نویسنده| id=James,+Henry+(1843-1916)}}
- produces:
- This shows how dates are used to narrow results of a common name.
- {{گوتنبرگ نویسنده| id=Adams,+Ephraim+Douglass}}
- produces:
- This demonstrates a 3-word name.
- {{گوتنبرگ نویسنده| id=Woodhead,+G.+Sims,+(German+Sims),+Sir
- produces:
- 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.
- {{گوتنبرگ نویسنده| id=Thomas,+Edward}}
- produces:
- This demonstrates how a common name can match multiple people. To narrow the results add the dates:
- {{گوتنبرگ نویسنده| id=Thomas,+Edward+(1878-1917)}}
- produces
- Unfortunately sometimes the birth-death dates on Wikipedia don't exactly match those on Gutenberg.
Note: A partial name, such as {{گوتنبرگ نویسنده| id=Jon | name=Jon}} will generate a list of all authors with "Jon" anywhere in the name.
Template data
[ویرایش | اشتراکگذاری]این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده میشود. گزارش خطای ماهیانه برای این الگو را ببینید.
الگوداده گوتنبرگ نویسنده
This is a template to generate links to authors on Project Gutenberg.
| پارامتر | توضیحات | نوع | وضعیت | |
|---|---|---|---|---|
| id | id | Author ID (preferably number) on Project Gutenberg
| ناشناخته | ضروری |
| name | name | Author name to be displayed on the page
| رشته | اختیاری |
See also
[ویرایش | اشتراکگذاری]- {{PGDA}} for Projekt Gutenberg-DE (German)
- {{Gutenberg Australia}} for Gutenberg Australia
- "Works By" Project to include the template for the entire Gutenberg database.
- PG2WP, code to map Project Gutenberg IDs to Wikipedia article names.
- {{Internet Archive author}} for بایگانی اینترنت
- {{Librivox author}} for لیبریواکس