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
(Forte moved page Template:Library work to Template:Library infobox work: More evident name for what it is, left a redirect)
Tag: New redirect
 
mNo edit summary
(57 intermediate revisions by 4 users not shown)
Line 1: Line 1:
#REDIRECT [[Template:Library infobox work]]
<includeonly>{{#SEO:
|image={{{image|}}}
|title= {{{title|}}}{{#if: {{{author|}}}|,&nbsp;{{{author|}}}|}} {{#if: {{{published_date|}}}|,&nbsp;{{{published_date|}}}|}} - ProleWiki
}}
{{DISPLAYTITLE:''{{{title|}}}''{{#if: {{{author|}}}|&nbsp;({{{author|}}})|}} }}</includeonly>
<span style="display:none;">{{{summary|}}}</span>
{{Infobox
| bodyclass = vcard
 
| abovestyle = padding-top:0; padding-bottom:0;
| above = <div style="padding-top:0.3em; padding-bottom:0.3em; line-height: 1;"><div style="display:inline;" class="fn org">{{if empty|{{{title|}}}|{{BASEPAGENAME}}}}</div></div>
 
| subheaderstyle = font-size:100%;
| subheader = {{{subtitle|}}}
 
| imageclass = logo
| imagestyle = padding-top:.4em;padding-bottom:.3em;
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|upright={{{image_upright|0.8}}}|alt={{{image_alt|}}}|size={{{image_size|}}}}}
| caption = {{{caption|}}}
 
| headerstyle = line-height: 0.8em; padding-top:0.5em; padding-bottom:0;
| labelstyle = line-height:1.3em;
| datastyle = line-height:1.3em;
 
| label1  = Author
|  data1  = {{#ifexist:{{{author|}}}|[[{{{author}}}]]|{{{author|}}}}}
 
| label2  = Written&nbsp;in
|  data2  = {{{written in|}}}
 
| label3  = Spoken&nbsp;on
|  data3  = {{{spoken on|}}}
 
| label4  = Translated&nbsp;by
|  data4  = {{{translated by|}}} {{#if:{{{original language|}}}|from {{{original language|}}}}}
 
| label6  = Publisher
|  data6  = {{{publisher|}}}
 
| label7  = First published
|  data7  = {{Br separated entries|{{{published_date|}}}|{{{published_location|}}}|{{{published_source|}}}}}
 
| label8  = Edition
|  data8  = {{{edition|}}}
 
| label9  = Type
|  data9  = {{{type|}}}
 
| label10  = ISBN
|  data10  = {{{isbn|}}}
 
| label11  = Source
|  data11  = {{Br separated entries|{{{source|}}}|{{{source2|}}}|{{{source3|}}}|{{{source4|}}}}}
 
| label12  = PDF
|  data12  = {{{pdf|}}}
 
| label13  = Libgen
|  data13  = {{{libgen|}}}
 
| label14 = Audiobook
| data14 = {{{audiobook|}}}
 
}}{{#ifexist:Category:Library works by {{{author|}}}|[[Category:Library works by {{{author}}}]]}}{{#if:{{{defaultsort|}}}|{{DEFAULTSORT:{{{defaultsort}}}}}|{{DEFAULTSORT:{{{title|}}}}}}}
<noinclude>
How to use this template:
<nowiki>
{{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 =
}}
</nowiki>
<templatedata>
{
"params": {
"title": {
"label": "Title",
"description": "Title of the work",
"type": "string",
"required": true
},
"author": {
"label": "Author",
"description": "Author of the source work. No need to add link brackets [[ ]], the infobox checks for it.",
"type": "string",
"required": true
},
"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 in": {
"label": "Written in",
"description": "Date or period the work was written",
"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": "Where the text was found (book, collection, etc.)",
"type": "string",
"suggested": true
},
"pdf": {
"label": "PDF",
"description": "URL of a PDF of the work",
"type": "url",
"suggested": true
},
"libgen": {
"label": "Libgen",
"description": "Link to the work on Libgen",
"type": "url",
"suggested": true
},
"audiobook": {
"label": "Audiobook",
"description": "URL of an audiobook reading of the work",
"type": "url",
"suggested": true
},
"isbn": {
"label": "ISBN",
"description": "ISBN number of the work",
"type": "number",
"suggested": true
},
"publisher": {
"label": "Publishing house",
"description": "Who published this edition",
"type": "string",
"suggested": true
},
"published_date": {
"label": "First published date",
"description": "Date the book was first published",
"type": "date",
"suggested": true
},
"published_location": {
"label": "First published location",
"description": "Location the work was first published",
"type": "string",
"suggested": true
},
"edition_date": {
"label": "Edition",
"description": "When was this edition printed",
"type": "string",
"suggested": true
},
"spoken on": {
"label": "Spoken on",
"description": "For speeches, the date it was spoken on",
"type": "string",
"suggested": true
},
"translated by": {
"label": "Translated By",
"description": "The translator(s) who translated this work",
"type": "string"
},
"original language": {
"label": "Original Language",
"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"
},
"published_source": {
"label": "First published source",
"description": "The document, book, newspaper where it was first published",
"type": "string",
"suggested": true
},
"defaultsort": {
"label": "Default sort",
"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"
}
},
"description": "Adds a small infobox with information for Library works",
"paramOrder": [
"title",
"image",
"caption",
"author",
"written in",
"spoken on",
"translated by",
"original language",
"publisher",
"published_date",
"published_source",
"published_location",
"edition_date",
"type",
"isbn",
"source",
"source2",
"source3",
"source4",
"edition",
"pdf",
"libgen",
"audiobook",
"summary",
"defaultsort",
"image_upright",
"image_alt",
"image_size"
]
}
</templatedata>
</noinclude>

Revision as of 19:08, 22 October 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

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

Adds a summary, which is used by external templates

Stringoptional
Default sortdefaultsort

Adding main sorting term for categories

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional