Template:Library work: Difference between revisions

Template page
(display translation info)
m (Added summary)
 
(2 intermediate revisions by 2 users not shown)
Line 29: Line 29:


| label4  = Translated by
| label4  = Translated by
|  data4  = {{{translated by|}}}
|  data4  = {{#ifexist:{{{translated by|}}}|[[{{{translated by}}}]]|{{{translated by|}}}}}


| label5  = Original language
| label5  = Original language
Line 52: Line 52:
|  data11  = {{{source|}}}
|  data11  = {{{source|}}}


| label2 = Audiobook
| label12 = Audiobook
| data12 = {{{audiobook|}}}
| data12 = {{{audiobook|}}}
}}<noinclude>
}}<noinclude>
Line 176: Line 176:
"label": "Original Language",
"label": "Original Language",
"description": "The language this work was translated from",
"description": "The language this work was translated from",
"type": "string"
},
"summary": {
"label": "Summary",
"description": "Adds a summary, which is used by external templates",
"type": "string"
"type": "string"
}
}
Line 200: Line 205:
"image_upright",
"image_upright",
"image_alt",
"image_alt",
"image_size"
"image_size",
"summary"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 12:30, 30 April 2024

Library work

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
Translated Bytranslated by

The translator(s) who translated this work

Stringoptional
Original Languageoriginal language

The language this work was translated from

Stringoptional
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
Summarysummary

Adds a summary, which is used by external templates

Stringoptional