Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Library work: Difference between revisions

Template page
(test with estimated reading time)
(test with estimated reading length)
Line 1: Line 1:
{{DISPLAYTITLE:{{{title}}}{{#if: {{{author|}}}| ({{{author|}}})|}} }}
{{DISPLAYTITLE:{{{title}}}{{#if: {{{author|}}}| ({{{author|}}})|}} }}


<span style="display:none;">{{{summary|}}}, {{#invoke:Reading time|estimateReadingLength|#pagetitle}}
<span style="display:none;">{{{summary|}}}</span>
</span>


{{Infobox
{{Infobox
Line 51: Line 50:
| label0 = Audiobook
| label0 = Audiobook
| data10 = {{{audiobook|}}}
| data10 = {{{audiobook|}}}
| label11 = Length
| data11= {{#invoke:Reading time|estimateReadingLength|#pagetitle}}
}}
}}



Revision as of 19:23, 10 March 2024


Library work
LengthScript error: The function "estimateReadingLength" does not exist.


How to use this template:

{{Library work
| title = 
| subtitle = 
| image =
| image_size =
| image_upright =
| image_alt =
| caption =
| author =
| written in =
| spoken on =
| published_date = 
| published_location =
| publisher =
| edition_date =
| type =
| source = 
| audiobook = 
}}

Adds a small infobox with information for Library works

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

Title of the work

Stringrequired
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. No need to add link brackets [[ ]], the infobox checks for it.

Stringrequired
Written inwritten in

Date or period the work was written

Datesuggested
Spoken onspoken on

For speeches, the date it was spoken on

Stringsuggested
Publishing housepublisher

Who published this edition

Stringsuggested
First publishedpublished_date

Date the book was first published

Datesuggested
Location publishedpublished_location

Location the work was published

Stringsuggested
Editionedition_date

When was this edition printed

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
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional