Template:Library infobox work: Difference between revisions

Template page
(Changed parameters from "Written by" to Author, changed "published" to "published_date" and "published_location". Will be batch editing those changes on pages that call this template)
m (Updated TemplateData)
Line 82: Line 82:
"description": "Caption of the image, usually for information about the edition of the cover",
"description": "Caption of the image, usually for information about the edition of the cover",
"type": "string"
"type": "string"
},
"written by": {
"label": "Written by",
"description": "Author of the source work",
"type": "string",
"suggested": true
},
},
"written in": {
"written in": {
"label": "Written in",
"label": "Written in",
"description": "Date or period the work was written",
"description": "Date or period the work was written",
"type": "date",
"suggested": true
},
"published": {
"label": "First published",
"description": "Date the book was first published",
"type": "date",
"type": "date",
"suggested": true
"suggested": true
Line 132: Line 120:
"description": "ISBN number of the work",
"description": "ISBN number of the work",
"type": "number",
"type": "number",
"suggested": true
},
"author": {
"label": "Author",
"description": "Author of the source work",
"type": "string",
"suggested": true
},
"published_date": {
"label": "First published",
"description": "Date the book was first published",
"type": "date",
"suggested": true
},
"published_location": {
"label": "Location published",
"description": "Location the work was published",
"type": "string",
"suggested": true
"suggested": true
}
}
Line 140: Line 146:
"image",
"image",
"caption",
"caption",
"written by",
"author",
"written in",
"written in",
"published",
"published_date",
"published_location",
"type",
"type",
"isbn",
"isbn",

Revision as of 03:33, 23 January 2023

Library infobox work

How to use this template:

{{Library infobox work
| title = 
| subtitle = 
| image =
| image_size =
| image_upright =
| image_alt =
| caption =
| author =
| written in =
| published_date = 
| published_location = 
| type =
| source = 
| audiobook = 
| display_title =
}}

Add "yes" to parameter "display_title" to produce a page title in the format: Title of work, by Author

Adds a small infobox with information for Library works

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title of the work

Stringsuggested
Imageimage

Book cover

Filesuggested
Captioncaption

Caption of the image, usually for information about the edition of the cover

Stringoptional
Authorauthor

Author of the source work

Stringsuggested
Written inwritten in

Date or period the work was written

Datesuggested
First publishedpublished_date

Date the book was first published

Datesuggested
Location publishedpublished_location

Location the work was published

Stringsuggested
Typetype

Type of work

Example
Book, pamphlet, leaflet, speech, video
Stringsuggested
ISBNisbn

ISBN number of the work

Numbersuggested
Sourcesource

URL of the work

URLsuggested
Audiobookaudiobook

URL of an audiobook reading of the work

URLsuggested
Full display titledisplay_title

Adds title in style "Work (in italics), by Author"

Example
Write "yes" to activate the title styling
Auto value
Stringsuggested
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional