Diferencia entre revisiones de «Plantilla:Infobox person/doc»
(moved documentation from template to subpage & sorted usage parameters to match order displayed in infobox) |
(Add <div> wrapper around usage section, same as Infobox Biography, Actor, etc. Also updated intro.) |
||
Línea 2: | Línea 2: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
'''Infobox Person''' may be used to summarize information about a person. | '''Infobox Person''' may be used to summarize information about a person. | ||
+ | |||
+ | Also consider using one of the more specific templates such as {{tl|Infobox actor}}, {{tl|Infobox Officeholder}}, {{tl|Infobox Military Person}}, etc. A list of some of these is available at [[Wikipedia:WikiProject Biography/Infoboxes]]; others not listed there can be found in [[:Category:People infobox templates]]. | ||
== Usage == | == Usage == | ||
− | + | The infobox may be added by pasting the template as shown below into an article and then filling in the desired fields. Any parameters left blank or omitted will not be displayed. | |
− | <pre> | + | <div style="width:250px; background:#dddddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;"> |
− | {{Infobox Person | + | <pre>{{Infobox Person |
| name = | | name = | ||
| image = | | image = | ||
Línea 24: | Línea 26: | ||
| title = | | title = | ||
| salary = | | salary = | ||
+ | | networth = | ||
+ | | height = | ||
| weight = | | weight = | ||
− | |||
| term = | | term = | ||
| predecessor = | | predecessor = | ||
Línea 39: | Línea 42: | ||
| website = | | website = | ||
| footnotes = | | footnotes = | ||
− | }} | + | }}</pre> |
− | </ | + | </div> |
==Microformats== | ==Microformats== |
Revisión del 12:30 12 jun 2007
Plantilla:Template doc page viewed directly Infobox Person may be used to summarize information about a person.
Also consider using one of the more specific templates such as {{Infobox actor}}, {{Infobox Officeholder}}, {{Infobox Military Person}}, etc. A list of some of these is available at Wikipedia:WikiProject Biography/Infoboxes; others not listed there can be found in Category:People infobox templates.
Contenido
Usage
The infobox may be added by pasting the template as shown below into an article and then filling in the desired fields. Any parameters left blank or omitted will not be displayed.
{{Infobox Person | name = | image = | imagesize = | caption = | birth_name = | birth_date = | birth_place = | death_date = | death_place = | death_cause = | residence = | other_names = | known = | employer = | occupation = | title = | salary = | networth = | height = | weight = | term = | predecessor = | successor = | party = | boards = | religion = | spouse = | partner = | children = | parents = | relations = | website = | footnotes = }}
Microformats
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.