Template:Infobox animal/doc

From ChewWiki
Revision as of 06:23, 29 January 2025 by Chew (talk | contribs) (add templatedata)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

The infobox may be added by pasting the template as shown below into an article. All fields are optional and unused parameter names can be left blank or omitted.

{{{name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright={{{image_upright}}}]]
{{{caption}}}
Other name(s){{{othername}}}
Species{{{species}}}
Breed{{{breed}}}
Sex{{{sex}}}
Born{{{birth_name}}}
{{{birth_date}}}
{{{birth_place}}}
Hatched{{{hatch_name}}}
{{{hatch_date}}}
{{{hatch_place}}}
Died{{{death_date}}}
{{{death_place}}}
Cause of death{{{death_cause}}}
Resting place{{{resting_place}}}
{{{resting_place_coordinates}}}
Nation from{{{nationality}}}
Occupation{{{occupation}}}
Employer{{{employer}}}
Notable role{{{role}}}
Years active{{{years_active}}}
Known for{{{known_for}}}
Training{{{tricks}}}
Title{{{title}}}
Term{{{term}}}
Predecessor{{{predecessor}}}
Successor{{{successor}}}
Owner{{{owner}}}
Residence{{{residence}}}
Parent(s){{{parents}}}
Mate(s){{{mate}}}
Offspring{{{children}}}
Weight{{{weight}}}
Height{{{height}}}
Appearance{{{appearance}}}
Named after{{{namedafter}}}
Awards{{{awards}}}
{{{module}}}
{{{module2}}}
{{{module3}}}
{{{module4}}}
{{{module5}}}
{{{website}}}
Notes
{{{footnotes}}}

<syntaxhighlight lang="wikitext" style="overflow: auto;"> </syntaxhighlight>

Parameters

Parameter Explanation
name The given name of the animal. Use the animal's common name, typically the name of article, if multiple names are used. If omitted or blank it defaults to the name of the article.
image Image file name. Use only the file name such as abc.jpg, xyz.png, 123.gif, etc. Do not use syntax such as [[File:abc.jpg]] or [[File:abc.jpg|200px]].
image_size For example, 150px
image_upright Image scaling factor, e.g. 1.2 for 120%
landscape Set to "yes" when using wide, short images. The image height (rather than width) will be limited to 200 pixels.
alt The alt attribute for the image, for readers who cannot see the image. See WP:ALT.
caption Photograph caption. Try to include date of photo and the photographer.
birth_name Name at birth if it has changed since birth.
othername Other appellation(s) that the animal has been known by.
species The scientific (aka "Latin") species name of the animal.
breed The breed of the animal.
sex The sex of the animal.
birth_date Date of birth. Consider using {{birth date and age}} if the animal is living, otherwise use {{birth date}}.
birth_place Place of birth: town, city, state, country.
death_date Date of death. Consider using {{death date and age}}.
death_place Place of death: town, city, state, country.
death_cause Should be clearly defined, and should only be included when the cause of death has significance for the subject's notability
resting_place Name of cemetery; place of ash-scattering, etc.
resting_place_coordinates Coordinates of cemetery; place of ash-scattering, etc. using {{coord}} with display=inline,title. For graves, please be as precise as possible.
nationality The country the animal is from.
occupation The occupation(s) animal is known for, e.g. pet, mouser, actor.
employer The employer of the animal.
role If the animal is/was an actor, insert any famous roles the animal is known for.
years_active The years that the animal was active in its career. Use the format:

year of first professional performance–year of final professional appearance

Note: If still active, use "present" in place of the end year.
known A brief description of why the animal is notable.
tricks Notable tricks the animal has been trained to perform.
awards Any awards won.
title Any title the animal has held.
term The years the animal held the title listed above.
predecessor The name of the animal who previously held the title listed above.
successor The name of the animal who subsequently held the title listed above.
owner The animal's owner.
residence Place of residence
parents The names of the animal's notable parent(s) (<br />).
mate The names of especially notable mate(s) of the animal(<br />).
children The names of especially notable offspring of the animal(<br />).
weight The weight of the animal (should also include the date).
height The height of the animal (should also include the date).
appearance The appearance of the animal.
namedafter Who or what the animal was named after.
website The animal's official website. Use only the link such as http://www.example.com/. Do not use syntax such as [http://www.example.com/].
  • module
  • module2
  • module3
  • module4
  • module5
Used for embedding other infoboxes into this one.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox animal in articles based on its TemplateData.

TemplateData for Infobox animal

Infobox used for specific animals with given names, including individual pets

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The given name of the animal. Use the animal's common name, typically the name of article, if multiple names are used. If omitted or blank it defaults to the name of the article.

Stringsuggested
Imageimage

Image file name. Use only the file name such as abc.jpg, xyz.png, 123.gif, etc.

Filesuggested
Image sizeimage_size imagesize image size

For example, 150px

Stringoptional
Image uprightimage_upright

Image scaling factor, e.g. 1.2 for 120%

Numberoptional
Captioncaption image caption image_caption

Photograph caption. Try to include date of photo and the photographer.

Stringsuggested
Landscapelandscape

Set to "yes" when using wide, short images. The image height (rather than width) will be limited to 200 pixels.

Auto value
yes
Stringoptional
Altalt

The [[alt attribute]] for the image, for readers who cannot see the image. See [[WP:ALT]].

Stringoptional
Other nameothername

Other appellation(s) that the animal has been known by.

Stringoptional
Speciesspecies

The scientific (aka "Latin") [[species]] name of the animal.

Stringsuggested
Breedbreed

The [[breed]] of the animal.

Stringsuggested
Sexsex gender

The [[sex]] of the animal.

Stringsuggested
Birth namebirth_name

Name at birth if it has changed since birth.

Stringoptional
Birth datebirth_date

Date of birth. Consider using {{birth date and age}} if the animal is living, otherwise use {{birth date}}.

Stringsuggested
Birth placebirth_place

Place of birth: town, city, state, country.

Stringsuggested
Hatch Namehatch_name

no description

Stringoptional
Hatch Datehatch_date

no description

Unknownoptional
Hatch Placehatch_place

no description

Stringoptional
Death datedeath_date

Date of death. Consider using {{death date and age}}.

Stringoptional
Death placedeath_place

Place of death: town, city, state, country.

Stringoptional
Death causedeath_cause

Should be clearly defined, and should only be included when the cause of death has significance for the subject's notability

Stringoptional
Resting placeresting_place

Name of cemetery; place of ash-scattering, etc.

Stringoptional
Resting place coordinatesresting_place_coordinates

Coordinates of cemetery; place of ash-scattering, etc. using {{coord}} with ''display=inline,title''. For graves, please be as precise as possible.

Stringoptional
Nationalitynationality

The country the animal is from.

Stringoptional
Occupationoccupation

The occupation(s) animal is known for, e.g. [[pet]], [[wiktionary:mouser|mouser]], [[actor]].

Stringoptional
Employeremployer

The employer of the animal.

Stringoptional
Rolerole

If the animal is/was an actor, insert any famous roles the animal is known for.

Stringoptional
Years activeyears_active

The years that the animal was active in its career. Use the format: <blockquote><nowiki>year of first professional performance</nowiki>–<nowiki>year of final professional appearance</nowiki></blockquote>Note: If still active, use "present" in place of the end year.

Stringoptional
Knownknown known_for

A brief description of why the animal is notable.

Unknownoptional
Trickstricks

Notable tricks the animal has been [[animal training|trained]] to perform.

Unknownoptional
Awardsawards

Any awards won.

Unknownoptional
Titletitle

Any title the animal has held.

Unknownoptional
Termterm

The years the animal held the '''title''' listed above.

Unknownoptional
Predecessorpredecessor

The name of the animal who previously held the '''title''' listed above.

Unknownoptional
Successorsuccessor

The name of the animal who subsequently held the '''title''' listed above.

Unknownoptional
Ownerowner

The animal's owner. Use owners if there are multiple.

Stringoptional
Ownersowners

The animal's owners. Use owner if there is only one.

Stringoptional
Residenceresidence

Place of residence

Stringoptional
Parentsparents

The names of the animal's ''notable'' parent(s).

Stringoptional
Matemate

The names of ''especially notable'' mate(s) of the animal.

Stringoptional
Childrenchildren

The names of ''especially notable'' offspring of the animal.

Stringoptional
Weightweight

The weight of the animal (should also include the date).

Unknownoptional
Weight (pounds)weight_lb

The animal's weight, in pounds. Will be converted.

Numberoptional
Weight (kilos)weight_kg

The animal's weight in kilograms. Will be converted automatically.

Numberoptional
weight_stweight_st

no description

Unknownoptional
Heightheight

The height of the animal (should also include the date).

Unknownoptional
Height (cm)height_cm

This animal's height in centimeters. Will be converted.

Numberoptional
Height (ft)height_ft

This animal's height in feet. Will be converted.

Numberoptional
Height (inches)height_in

This animal's height in inches. Will be converted.

Numberoptional
Appearanceappearance

The appearance of the animal.

Unknownoptional
Named Afternamedafter

Who or what the animal was named after.

Stringoptional
Websitewebsite

The animal's official website. Use only the link such as {{URL|example.com}} or {{Official URL}}

Templateoptional
Module 1module misc

Used for embedding other infoboxes into this one.

Templateoptional
Module 2module2

Used for embedding other infoboxes into this one.

Templateoptional
Module 3module3

Used for embedding other infoboxes into this one.

Templateoptional
Module 4module4

Used for embedding other infoboxes into this one.

Templateoptional
Module 5module5

Used for embedding other infoboxes into this one.

Templateoptional
Footnotesfootnotes

Notes at the bottom of the infobox.

Stringoptional
Embedembed child

If this is a child or embed of another infobox

Unknownoptional

Microformat

This template emits a "species" (or "biota") microformat.

The microformat is created by the use of class="biota", and classes for individual taxonomic ranks, such as class="domain" in a span around {{{domain}}} (full list). Please do not change or remove those classes other than as part of development of the microformat. For background information, see microformats on Wikipedia and the microformat specification.

Tracking category