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
m (Using includeonly to not affect template name)
m (Updated templatedata parameters)
 
Line 100: Line 100:
"required": true
"required": true
},
},
"_subheader": {},
"author": {
"author": {
"label": "Author",
"label": "Author",
Line 171: Line 170:
},
},
"published_date": {
"published_date": {
"label": "First published",
"label": "First published date",
"description": "Date the book was first published",
"description": "Date the book was first published",
"type": "date",
"type": "date",
Line 209: Line 208:
"type": "string"
"type": "string"
},
},
"published": {},
"published_source": {
"published_source": {
"label": "First published source",
"label": "First published source",
"description": "The document, book, newspaper where it was first published",
"description": "The document, book, newspaper where it was first published",
"type": "string"
"type": "string"
},
"source_url": {
"label": "Source URL",
"description": "URL where the text can be accessed (not PDF)",
"type": "url",
"suggested": true
},
},
"defaultsort": {
"defaultsort": {
"label": "Default sort",
"label": "Default sort",
"description": "Adding main sorting term for categories"
"description": "Adding main sorting term for categories"
},
"edition": {
"label": "Edition"
},
"source2": {
"label": "Second source",
"description": "In case the work has multiple sources"
},
"source3": {
"label": "Third source",
"description": "In case the work has multiple sources"
},
"source4": {
"label": "Fourth source",
"description": "In case the work has multiple sources"
}
}
},
},
Line 244: Line 251:
"isbn",
"isbn",
"source",
"source",
"source_url",
"source2",
"source3",
"source4",
"edition",
"pdf",
"pdf",
"libgen",
"libgen",
"audiobook",
"audiobook",
"_subheader",
"image_upright",
"image_upright",
"image_alt",
"image_alt",
"image_size",
"image_size",
"summary",
"summary",
"published",
"defaultsort"
"defaultsort"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 13:12, 30 September 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 = 
| published_source =
| publisher =
| edition =
| type =
| source =
| source2 =
| source3 =
| source4 =
| pdf =
| libgen =
| audiobook = 
| defaultsort =
}}

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 published datepublished_date

Date the book was first published

Datesuggested
First published sourcepublished_source

The document, book, newspaper where it was first published

Stringoptional
First published locationpublished_location

Location the work was first 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

Where the text was found (book, collection, etc.)

Stringsuggested
Second sourcesource2

In case the work has multiple sources

Unknownoptional
Third sourcesource3

In case the work has multiple sources

Unknownoptional
Fourth sourcesource4

In case the work has multiple sources

Unknownoptional
Editionedition

no description

Unknownoptional
PDFpdf

URL of a PDF of the work

URLsuggested
Libgenlibgen

Link to the work on Libgen

URLsuggested
Audiobookaudiobook

URL of an audiobook reading of the work

URLsuggested
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
Default sortdefaultsort

Adding main sorting term for categories

Unknownoptional