Difference between revisions of "Template:Item"

From ArchivesWiki
(list items using {{items}})
Line 139: Line 139:
 
|-
 
|-
 
|}
 
|}
{{#cargo_query: |table=items
+
{{items
| fields  = _pageName=_pageName, parent_item_sort_key=parent_item_sort_key, image=image, date=date, date_precision=date_precision
+
  | where = parent_item="{{PAGENAME}}"
  | where   = parent_item="{{PAGENAME}}"
+
  | order = parent_item_sort_key ASC, date ASC
  | order by = parent_item_sort_key ASC, date ASC
 
| default  =
 
| format  = template |template=item_thumbnail |named args=yes
 
 
}}
 
}}
 
{{#if: {{{coordinates|}}} | <div id="map">{{#cargo_display_map: |point={{{coordinates|}}} |zoom={{{map_zoom|}}} }}</div> }}
 
{{#if: {{{coordinates|}}} | <div id="map">{{#cargo_display_map: |point={{{coordinates|}}} |zoom={{{map_zoom|}}} }}</div> }}

Revision as of 09:28, 1 December 2019

This template defines the table "items". View table.

Title: Item
Identifier:
Parent item:
Storage location:
Date:
Author:
Source:
Format and extent:
Publisher:
Coordinates:
License: Creative Commons Attribution-ShareAlike 2.0 Generic (CC BY-SA 2.0)
Related people:
Related places:
Keywords:
Description:

No items found.


Documentation

This template defines a record of a physical or digital archive item.

What it is:

  • type
  • format
  • extent

Where in the world it relates to, where it came from, and where it is now:

  • places
  • coordinates
  • location
  • storage_location
  • storage_location_sort_key

Who it relates to, who created it:

  • people
  • authors

What other item it belongs to (in its original series):

  • parent_item
  • parent_item_sort_key

Usage

{{Item
| parent_item    = <!-- semicolon-separated page names -->
| parent_item_sort_key = 
| type           = <!-- one of: photo, letter, book, ephemera, article, object, collection -->
| date           = <!-- yyyy-mm-dd -->
| date_precision = <!-- one of: day, month, year, circa -->
| authors        = <!-- semicolon-separated page names -->
| source         = 
| extent         = 
| format         = 
| license        = <!-- Leave blank to default to CC-BY-SA -->
| places         = <!-- semicolon-separated page names -->
| people         = <!-- semicolon-separated page names -->
| image          = <!-- Without the leading 'File:' prefix. -->
| coordinates    = <!-- latitude, longitude (in decimal degrees) -->
| description    = 
}}

See also Template:Item/preload.

Define an item's metadata.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

no description

Unknownrequired
Datedate

no description

Dateoptional
Date precisiondate_precision

no description

Unknownoptional
Parent itemparent_item

no description

Pageoptional
Parent_item_sort_keyparent_item_sort_key

no description

Unknownoptional
Sourcesource

no description

Unknownoptional
Licencelicence

no description

Unknownoptional
Extentextent

no description

Unknownoptional
Imageimage

Representative image of this item.

Fileoptional
Authorsauthors

Semicolon-separated list of page names.

Unknownoptional
Authorauthor

no description

Unknownoptional
Placesplaces

no description

Unknownoptional
Peoplepeople

no description

Unknownoptional
Storage locationstorage_location

no description

Pageoptional
Storage_location_sort_keystorage_location_sort_key

Storage location sort key

Stringoptional
Descriptiondescription

no description

Contentoptional