This template uses Lua: |
This template can be preloaded via the Gadgets, alternatively, one can preload Template:Author/preload.
Usage
<section begin=Usage/>{{author | firstname = | lastname = | last_initial = | description = }}<section end=Usage/>
This template is meant to be used on author pages. Fill in any relevant information, and leave unknown or inapplicable parameters empty. Please don't remove or reorder parameters, as this makes reuse and automated maintenance more difficult. Any override parameters (see below) should be added at the bottom.
To also note that this template automatically applies some categorisation based on the years of life of the author (see Module:Author for more information), and a default sort based on the lastname
field of the author.
Parameters
(The usage example below may help understand these.)
- Normal parameters
|firstname=
first / given names|lastname=
: family name(s) / surnames of the author- If the name order comes from a tradition where the family name typically precedes the given name, please enter the name as follows, with
|invert_names=
:Template:Blockquote/s| firstname = Ming
Template:Blockquote/e
| lastname = Xing
| invert_names = yes
- If the name order comes from a tradition where the family name typically precedes the given name, please enter the name as follows, with
|last_initial=
: The initial two letters of the family name.|description=
: A brief description of author's works, and personal history; usable for specific notes.
- Internal links (optional - use whichever are appropriate)
|portal=
: slash-separated list of related portals. e.g., World History/Greece|related_author=
: slash-separated list of related authors. e.g. William Shakespeare/Francis Bacon
- Interwiki links (optional - use whichever are appropriate, though not usually implemented);
|wiktionary=
,|wikiversity=
,|wikispecies=
,|meta=
,|wikidata=
- Overrides (for exceptions), and generally unusual to be needed
|image=
: (link data provided from Wikidata, by default) The name of the image on Wikisource or Wikicommons, excluding the 'image:' or 'file:' prefixes (Filename.ext
)|image_caption=
: Override the default firstname lastname
|upright=
:upright = yes
to the image configuration applies a 0.6 scaling factor for long images, and default image display overpowers page|defaultsort=
: Override the category sorting, which is normally "|lastname=
,|firstname=
".|dates=
: Override the displayed birth and death dates. Don't include the parentheses.|disambiguation=
: Used only when this template is transcluded from {{disambiguation}} (when it's set to 'yes').
Notes:
- With the exception of description, none of the parameters should be wikilinked (wrapped in [[ ]]) as the requisite fields are appropriately designed to do such linking. Links can be used within the descriptive text by traditional or wikilink methodologies.
- Links are being migrated to Wikidata as they are created at that site. Parameters are retained for cases where the Wikidata data needs to be overwritten.
Usage example
{{author | firstname = Booker Taliaferro | lastname = Washington | last_initial = Wa | description = (Description here.) }}
Categories
The following categories are added automatically, based on data from Wikidata:
- Categories indicating the period of the the author, e.g. Category:Early modern authors (based on dates of birth, death and floruit)
- Categories indicating the gender of the author, based on Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P21)
- Categories indicating the nationalities of the author (i.e. from Category:Authors by nationality), based on Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P27)
- Categories indicating the occupations of the author (i.e. from Category:Authors by occupation), based on Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P106)
If there is a missing mapping from a Wikidata item to a category, you can add to Module:Author/data.
You can add your own extra categories at the end of an author page manually if this is not suitable.
Microformat
The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.
To include a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- bday
- birthplace
- category
- country-name
- deathdate
- deathplace
- extended-address
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- label
- locality
- n
- nickname
- note
- org
- role
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
See also
- Style guide
- {{author subpage}} for subpages generated for authors
- {{header}} for template header used in main namespace
- {{process header}} for template header used in Wikisource: namespace
az:Şablon:Müəllif bg:Шаблон:Автор bn:Template:Author cs:Šablona:Autorinfo da:Skabelon:Forfatter de:Vorlage:Personendaten es:Plantilla:Biocitas et:Mall:Autor fr:Modèle:Auteur he:תבנית:מחבר hy:Կաղապար:Հեղինակ id:Templat:Pengarang it:Template:Autore ja:Template:Author ko:틀:글쓴이 la:Formula:Scriptor ml:ഫലകം:Author no:Mal:Forfatter pl:Szablon:Autorinfo pt:Predefinição:Autor ru:Шаблон:Обавторе sl:Predloga:Avtor sr:Шаблон:Аутор te:మూస:రచయిత th:แม่แบบ:ผู้แต่ง tr:Şablon:Kişi vec:Modèl:Autor uk:Шаблон:Автор zh:Template:作者 zh-min-nan:Template:Author