Template:Infobox artwork/wikidata/doc

From Wikipedia, the free encyclopedia

Usage[edit]

{{{title}}}
{{{other_language_1}}}: {{{other_title_1}}}, {{{other_language_2}}}: {{{other_title_2}}}
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright={{{image_upright}}}]]
{{{caption}}}
{{{title}}} is located in Earth
{{{title}}}
{{{title}}}
{{{pushpin_map_caption}}}
Artist{{{artist}}}
Year{{{year}}}
Catalogue{{{catalogue}}}
Medium{{{medium}}}
Movement{{{movement}}}
Subject{{{subject}}}
Dimensions{{{height_metric}}} cm × {{{width_metric}}} cm × {{{length_metric}}} cm ({{{height_imperial}}} in × {{{width_imperial}}} in × {{{length_imperial}}} in); {{{diameter_metric}}} cm diameter ({{{diameter_imperial}}} in); {{{dimensions}}}‍{{{dimensions_ref}}}
Weight{{{weight}}}
Designation{{{designation}}}
Condition{{{condition}}}
Location{{{museum}}}, {{{city}}}
Coordinates0°N 0°E / 0°N 0°E / 0; 0
Accession No.{{{accession}}}
Preceded by{{{preceded_by}}}
Followed by{{{followed_by}}}
{{{module}}}
Website{{{website}}}

Just add:

{{Infobox artwork/wikidata}}

to the top of an article, and data will be automatically included from Wikidata where they are available. These values can be overridden by passing values to the relevant parameters in the article (if need be), e.g.:

{{Infobox artwork/wikidata
| name = 
}}

If you want to not show some properties, you can do so by giving the parameter name to the suppressfields parameter like this:

{{Infobox artwork/wikidata
| suppressfields = subject; movement
}}

Many parameters need references in Wikidata before they will be displayed here.

Parameters[edit]

Parameter Default Description
qid The ID of the Wikidata entry to include if the page is not linked to a Wikidata entry
wikidata Depreciated. Use qid instead.
title Wikidata label (en)
(Or Page name)
The title of the artwork
painting_alignment right Depreciated - do not use. Usages where "left" were specified should be removed.
italic title yes italic title=no to the list of parameters. If this is required but the title is not being italicized, try |italic title=force.
other_language_1 Language of secondary title
other_title_1 Wikidata alias Secondary title
other_language_2 Language of tertiary title
other_title_2 Tertiary title
image image (P18) The name of the image file to display, without the "File:" prefix
image_upright
alt Alternative text for image
caption media legend (P2096) Caption for image
artist creator (P170) Name of the artist(s) who created the piece
year inception (P571) Set sourcing circumstances (P1480) = circa (Q5727902) to display {{circa}} before the date. Use {{start date}} unless before 1583 CE.
completion_date Use {{start date}}; alternative to |year=.
catalogue Reference in a catalogue raisonné.
medium made from material (P186) Material used by the artist or designer to create the work of art. Examples: "Oil on canvas", "Bronze sculpture", "Ceramic tile"
movement movement (P135) Art movement, or movements, typically associated with work of art or time during artist's career when work of art was created. Must be verifiable through sources. Examples: "Post-Impressionism", "Pop art"
type Deprecated due to ambiguity. Use medium and movement instead.
subject main subject (P921) Subject(s) of the artwork
height_metric
height_imperial
height (P2048)
width_metric
width_imperial
width (P2049)
length_metric
length_imperial
length (P2043) or thickness (P2610) Don't include both - if you do you'll end up with four dimensions being shown!
diameter_metric
diameter_imperial
dimensions
dimensions_ref
metric_unit e.g. 'cm'
imperial_unit e.g. 'in'
weight mass (P2067) Weight of the artwork
designation heritage designation (P1435) Legal protection granted to the artwork
condition Condition of the artwork
museum, city located in/on physical feature (P706), location (P276), located in the administrative territorial entity (P131), country (P17) (fallback to continent (P30) for Antarctica) Museum that currently houses the artwork, and city / general place in which the artwork is currently located
coords coordinate location (P625) Use {{coord}}, but only for the exact coordinates (when known) of the artwork's own location, i.e. not coordinates for the site, building, structure, etc. where it is kept; leave blank otherwise.
owner owned by (P127) Current owner of the artwork
commissionedby commissioned by (P88) Commissioner of the work
collection collection (P195)
accession inventory number (P217) Accession or similar reference in the museum's database.
preceded_by follows (P155) Preceding work by the same artist
followed_by followed by (P156) Next work by the same artist
module an embedded template
website
url
official website (P856) Use {{URL}}, but only for an official webpage or website.
id Joconde work ID (P347)
RKDimages ID (P350)
Art UK artwork ID (P1679)
Bildindex der Kunst und Architektur ID (P2092)
The Met object ID (P3634)
Identifiers

Mapframe maps[edit]

A Mapframe map is automatically included if:

  • There are coordinates specified on the page's Wikidata item (or the item specified in |qid=)
  • It has not been turned off by setting |mapframe=no
  • Other map types have not been used (|pushpin_map= |map_type= and |image_map= not used)

The following optional parameters can be used to adjust the map

  • Basic parameters:
    • mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
    • mapframe-caption – Caption for the map. Default: blank (or if |mapframe-geomask= is set, "Location in geomask's label")
    • mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, the subsequent mapframe parameters will be ignored. Default: not specified
    • mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
    • mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g. |coord={{Coord|12.34|N|56.78|E}}. Default: coordinates from Wikidata
    • mapframe-wikidata – Set to yes to show shape/line features from the wikidata item, if any, when |coord= is set. Default: not specified
  • Customise which features are displayed:
    • mapframe-shape – Turn off display of shape feature by setting to none. Use an inverse shape (geomask) instead of a regular shape by setting to inverse. Default: not specified
    • mapframe-point – Turn off display of point feature by setting to none. Force point marker to be displayed by setting to on. Default: not specified
    • mapframe-line – Turn off display of line feature by setting to none. Default: not specified
    • mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country (P17), P131 for located in the administrative territorial entity (P131)). Default: monument
    • mapframe-switcher – set to auto or geomasks or zooms to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
      • auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.
      • geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter
      • zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average
  • Other optional parameters:
    • mapframe-frame-width or mapframe-width – Frame width. Default: 300
    • mapframe-frame-height or mapframe-height – Frame height. Default: 200
    • mapframe-shape-fill – Color used to fill shape features. Default: #606060
    • mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.5
    • mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
    • mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". Default: 5
    • mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: monument
      • Can also be set to blank to override any default marker symbol
    • mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
    • mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
    • mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 2
    • mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
    • mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.5
    • mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 12
    • mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified
    • mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates