Template:Library infobox work: Difference between revisions

Template page
m (Added new Audiobook label to model)
m (Added template data)
Line 55: Line 55:
}}
}}
</nowiki>
</nowiki>
</noinclude>
<templatedata>
{
"params": {
"title": {
"label": "Title",
"description": "Title of the work",
"type": "string",
"suggested": true
},
"native_name": {
"label": "Native title",
"description": "Title in native language",
"type": "string",
"suggested": true
},
"native_name_lang": {
"label": "Native name language",
"type": "string",
"suggested": true
},
"_subheader": {},
"image": {
"label": "Image",
"description": "Book cover",
"type": "wiki-file-name",
"suggested": true
},
"image_upright": {},
"image_alt": {},
"image_size": {},
"caption": {
"label": "Caption",
"description": "Caption of the image, usually for information about the edition of the cover",
"type": "string"
},
"written by": {
"label": "Written by",
"description": "Author of the source work",
"type": "string",
"suggested": true
},
"written in": {
"label": "Written in",
"description": "Date or period the work was written",
"type": "date"
},
"published": {
"label": "First published",
"description": "Date the book was first published",
"type": "date",
"suggested": true
},
"type": {
"label": "Type",
"description": "Type of work",
"example": "Book, pamphlet, leaflet, speech, video",
"type": "string",
"suggested": true
},
"source": {
"label": "Source",
"description": "URL of the work",
"type": "url",
"suggested": true
},
"audiobook": {
"label": "Audiobook",
"description": "URL of an audiobook reading of the work",
"type": "url",
"suggested": true
}
},
"description": "Adds a small infobox with information for Library works",
"paramOrder": [
"title",
"native_name",
"native_name_lang",
"image",
"caption",
"written by",
"written in",
"published",
"type",
"source",
"audiobook",
"_subheader",
"image_upright",
"image_alt",
"image_size"
]
}
</templatedata></noinclude>

Revision as of 18:02, 7 January 2022

Library infobox work

How to use this template:

{{Library work
| image =
| image_size =
| image_upright =
| image_alt =
| caption =
| title = 
| written by =
| written in =
| published = 
| type =
| source = 
| audiobook = 
}}

Adds a small infobox with information for Library works

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title of the work

Stringsuggested
Native titlenative_name

Title in native language

Stringsuggested
Native name languagenative_name_lang

no description

Stringsuggested
Imageimage

Book cover

Filesuggested
Captioncaption

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

Stringoptional
Written bywritten by

Author of the source work

Stringsuggested
Written inwritten in

Date or period the work was written

Dateoptional
First publishedpublished

Date the book was first published

Datesuggested
Typetype

Type of work

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

URL of the work

URLsuggested
Audiobookaudiobook

URL of an audiobook reading of the work

URLsuggested
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional