Template:Infobox artwork

From Wikipedia, the free encyclopedia
  (Redirected from Template:Artwork)
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

The Potato Eaters
Dutch:De Aardappeleters
Two men and three women eating potatoes.
Artist Vincent van Gogh
Year 1885 (1885)
Catalogue F123
Type Oil on canvas
Dimensions 82 cm × 114 cm (32¼ in × 45 in)
Condition lost
Location Van Gogh Museum, Amsterdam
Coordinates 52°21′30.30″N 4°52′51.90″E / 52.3584167°N 4.8810833°E / 52.3584167; 4.8810833Coordinates: 52°21′30.30″N 4°52′51.90″E / 52.3584167°N 4.8810833°E / 52.3584167; 4.8810833
Owner Made-up Foundation
Accession 1903-1234
URL example.com
{{Infobox artwork
| title              = The Potato Eaters
| image_file         = Vincent Van Gogh - The_Potato_Eaters.png
| painting_alignment = right
| image_size         = 300px
| alt                = Two men and three women eating potatoes.
| other_language_1   = Dutch
| other_title_1      = De Aardappeleters
| type               = [[Oil painting|Oil on canvas]]
| artist             = [[Vincent van Gogh]]
| year               = {{Start date|1885}}
| catalogue          = F123
| height_metric      = 82
| width_metric       = 114
| height_imperial    = 32¼
| width_imperial     = 45
| condition          = lost
| city               = [[Amsterdam]]
| museum             = [[Van Gogh Museum]]
| coordinates        = {{coord|52|21|30.30|N|4|52|51.90|E|region:NL_type:landmark|display=inline,title}} <!-- Only use for the exact coordinates of the artwork itself (and only where known) and not for the coordinates of the museum. Leave blank if coordinates are not known. -->
| owner              = Made-up Foundation
| accession          = 1903-1234
| url                = {{URL|example.com}}
}}

Blank

{{Infobox artwork
| title              = 
| image_file         = 
| caption            = 
| painting_alignment = 
| image_size         = 
| alt                = 
| other_language_1   = 
| other_title_1      = 
| other_language_2   = 
| other_title_2      = 
| artist             = 
| catalogue          = 
| year               = {{start date|YYYY}} <!--remove date template if before 1583 CE -->
| type               = 
| material           = 
| subject            = 
| height_metric      = 
| width_metric       = 
| length_metric      = 
| height_imperial    = 
| width_imperial     = 
| length_imperial    = 
| diameter_metric    = 
| diameter_imperial  = 
| dimensions         = 
| dimensions_ref     = 
| metric_unit        = cm<!--don't leave blank—either don't include it, or include the default cm. -->
| imperial_unit      = in<!--don't leave blank—either don't include it, or include the default in. -->
| condition          = 
| city               = 
| museum             = 
| accession          = 
| coordinates        = <!-- Only use for the exact coordinates of the artwork itself (and only where known) and not for the coordinates of the museum. Leave blank if coordinates are not known. -->
| owner              = 
| url                = <!--{{URL|example.com}} Only for official web pages-->
}}

Parameters

title 
image_file 
caption 
painting_alignment 
image_size 
alt 
other_language_1 
other_title_1 
other_language_2 
other_title_2 
artist 
catalogue 
Reference in a catalogue raisonné
year 
Use {{start date}} unless before 1583 CE
type 
material 
subject 
condition 
city 
museum 
accession 
Accession or similar reference in the museum's database
coordinates 
Use {{Coord}}; but only for the exact coordinates of the artwork itself (and only where known) and not for the coordinates of the museum. Leave blank if coordinates are not known.
owner 
url 
Use {{URL}}

Dimensional data

This template includes code that allows input of dimensional information: any of height, width, length, and diameter, as well as a freeform parameter for adding nonstandard information.

There are 11 parameters, of which most fall into two groups of unit types:

  • height_imperial, width_imperial, length_imperial, and diameter_imperial define the respective values for Imperial or US customary units like the foot or inch. If the imperial unit is set to feet, inch specification can be added with height_inch, width_inch, and length_inch; otherwise the _inch-suffixed parameters should not be used.
  • height_metric, width_metric, length_metric, and diameter_metric define the respective values for SI (metric) units like the metre or centimetre (or, in U.S. spelling, the meter and centimeter).

Once raw numerical values are established in the above parameters, the units are set in the imperial_unit and metric_unit parameters, which default to inches and centimetres respectively.

If information is provided in only one unit system, it is automatically converted to the other using the unit that is defined for that system. In general, this should be used, as for most pieces of artwork measurements will only be taken in one unit system.

Users should take care to avoid false precision: measurements should be provided in the same unit, and with the same number of significant digits, as when they were taken. "1 metre" is far less precise than "1000.00 millimetres", even though they are in theory the same length!

If additional dimensional data is needed, the dimensions parameter can be used to add freeform information to the end of the rendered string. This parameter accepts raw wikitext and is not subject to any automatic conversion or modification—{{convert}} would have to be used manually.

References concerning artwork dimensions can be appended to the dimensional data by placing them in the optional dimensions_ref parameter.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Infobox artwork

An infobox for artwork

Template parameters
Parameter Description Type Default Status
Title title The title of the artwork. Defaults to the page name. string empty optional
Image file image_file The name of the image file to display, without the "File:" prefix string empty optional
Image size image_size The size of the image in pixels, optionally suffixed by "px" number empty optional
Image alternative text alt A description of the image that can be displayed instead of the image and/or read by the blind string empty optional
Caption caption A caption to be displayed under the image string empty optional
Infobox alignment painting_alignment The alignment of the infobox. It should almost always be "right", but can also be "left". Defaults to right-alignment. string empty optional
Secondary title language other_language_1 The language of a secondary title string empty optional
Secondary title other_title_1 A secondary title. string empty optional
Tertiary title language other_language_2 The language of a tertiary title string empty optional
Tertiary title other_title_2 A tertiary title. string empty optional
Artist name artist The name of the artist(s) who created the piece string empty optional
Year year The year the artwork was created string empty optional
Completion date completion_date The date the artwork was completed. Appears only if the year parameter is undefined. string empty optional
Catalogue number catalogue The number of the artwork in a catalogue raisonné, e.g. "F454" string empty optional
Type type The type of the artwork, e.g. "Fresco" string empty optional
Material material The material(s) of the artwork, e.g. "Marble" string empty optional
Subject subject The subject(s) of the artwork string empty optional
Height (metric) height_metric The height of the artwork in metres, centimetres, etc., without unit number empty optional
Width (metric) width_metric The width of the artwork in metres, centimetres, etc., without unit number empty optional
Length (metric) length_metric The length of the artwork in metres, centimetres, etc., without unit number empty optional
Height (imperial) height_imperial The height of the artwork in feet, inches, etc., without unit number empty optional
Height (inch addition) height_inch If the imperial unit is set to feet, this allows inch precision to be added to the height number empty optional
Width (imperial) width_imperial The width of the artwork in feet, inches, etc., without unit number empty optional
Width (inch addition) width_inch If the imperial unit is set to feet, this allows inch precision to be added to the width number empty optional
Length (imperial) length_imperial The length of the artwork in feet, inches, etc., without unit number empty optional
Length (inch addition) length_inch If the imperial unit is set to feet, this allows inch precision to be added to the length, without unit number empty optional
Diameter (metric) diameter_metric The diameter of the artwork in metres, centimetres, etc., without unit number empty optional
Diameter (imperial) diameter_imperial The diameter of the artwork in feet, inches, etc., without unit number empty optional
Metric unit metric_unit The unit to use as the metric unit, e.g. "m" or "cm" string cm optional
Imperial unit imperial_unit The unit to use as the imperial or US customary unit, e.g. "in" or "ft" string in optional
Dimensions dimensions Additional or nonstandard dimensional data can be placed here as raw wikitext. string empty optional
Dimensions reference(s) dimensions_ref Any references concerning the artwork's dimensions can be placed here as raw wikitext (including "ref" tags). string empty optional
Weight weight The weight of the artwork string empty optional
Condition condition The condition of the artwork string empty optional
Owner owner The current owner of the artwork string empty optional
Accession number accession The accession number(s) for the artwork string empty optional
Museum museum The museum that currently houses the artwork string empty optional
City city The city in which the artwork is currently located string empty optional
Coordinates coordinates Coordinates for the artwork, input as a coordinate template string empty optional
URL url A URL for the artwork, input as a URL template string empty optional

Microformat

The HTML markup produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

Dates will only be included if you use {{start date}} or {{end date}} (use the former for single dates; but do not use any of these if the date is before 1583 CE).

URLs will only be included if you use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCalendar uses HTML classes including:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent

Please do not rename or remove these classes, nor collapse nested elements which use them.

See also