More languages
More actions
display translation info |
mNo edit summary |
||
| (59 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:''{{{title}}}''{{#if: {{{author|}}}| ({{{ | <includeonly>{{#SEO: | ||
|image={{{image|}}} | |||
|title=Read {{{title|}}}{{#if:{{{author|}}}| ({{{author|}}}|}}{{#if:{{{published_date|}}}|, {{{published_date|}}})|)}} on ProleWiki | |||
}} | |||
{{DISPLAYTITLE:''{{{title|}}}''{{#if:{{{author|}}}{{{authors|}}}| ({{Library work/Multi-author|{{{authors|}}}}}{{{author|}}})|}}}} | |||
{{Infobox | {{Infobox | ||
| bodyclass = vcard | | bodyclass = vcard | ||
| Line 19: | Line 22: | ||
| datastyle = line-height:1.3em; | | datastyle = line-height:1.3em; | ||
| label1 = Author | | label1 = Author{{#if:{{{authors|}}}|s}} | ||
| data1 = {{#ifexist:{{{author|}}}|[[{{{author}}}]]|{{{author|}}}}} | | data1 = {{#if:{{{authors|}}}|{{Library work/Multi-author|{{{authors}}}|func=link}}|{{#ifexist:{{{author|}}}|[[{{{author}}}]]|{{{author|}}}}}}} | ||
| label2 = Written in | | label2 = Written in | ||
| data2 = {{{written in|}}} | | data2 = {{{written in|}}} | ||
| label3 = Spoken on | | label3 = Spoken on | ||
| data3 = {{{spoken on|}}} | | data3 = {{{spoken on|}}} | ||
| label4 = Translated by | | label4 = Translated by | ||
| data4 = {{{translated by|}}} | | data4 = {{{translated by|}}} {{#if:{{{original language|}}}|from {{{original language|}}}}} | ||
| | |||
| | |||
| label6 = Publisher | | label6 = Publisher | ||
| data6 = {{{publisher|}}} | | data6 = {{#ifexist:{{{publisher|}}}|[[{{{publisher}}}]]|{{{publisher|}}}}} | ||
| label7 = First published | | label7 = First published | ||
| data7 = {{ | | data7 = {{Br separated entries|{{{published_date|}}}|{{{published_location|}}}|{{{published_source|}}}}} | ||
| label8 = Edition | | label8 = Edition | ||
| data8 = {{{ | | data8 = {{{edition|}}} | ||
| label9 = Type | | label9 = Type | ||
| Line 50: | Line 50: | ||
| label11 = Source | | label11 = Source | ||
| data11 = {{{source|}}} | | data11 = {{Br separated entries|{{{source|}}}|{{{source2|}}}|{{{source3|}}}|{{{source4|}}}}} | ||
| label12 = PDF | |||
| data12 = {{{pdf|}}} | |||
| label13 = Libgen | |||
| data13 = {{{libgen|}}} | |||
| | | label14 = Audiobook | ||
| | | data14 = {{{audiobook|}}} | ||
}}<noinclude> | |||
{{#if:{{{authors|}}}|{{Library work/Multi-author|{{{authors}}}|func=cat}}|{{#if:{{{author|}}}|{{#ifexist:Category:Library works by {{{author|}}}|[[Category:Library works by {{{author}}}]]}}}}}}{{#if:{{{defaultsort|}}}|{{DEFAULTSORT:{{{defaultsort}}}}}|{{DEFAULTSORT:{{{title|}}}}}}} | |||
{{#if:{{{publisher|}}}|{{#ifexist:Category:Library works published by {{{publisher|}}}|[[Category:Library works published by {{{publisher}}}]]}}}}}}{{#if:{{{defaultsort|}}}|{{DEFAULTSORT:{{{defaultsort}}}}}|{{DEFAULTSORT:{{{title|}}}}}}} | |||
<span style="display:none;">{{#ifexist:{{{summary|}}}|{{{summary|}}}|}}</span></includeonly> | |||
<noinclude> | |||
How to use this template: | How to use this template: | ||
<nowiki> | |||
{{Library work | {{Library work | ||
| title = | | title = | ||
| Line 69: | Line 79: | ||
| spoken on = | | spoken on = | ||
| published_date = | | published_date = | ||
| published_location = | | published_location = | ||
| published_source = | |||
| publisher = | | publisher = | ||
| | | edition = | ||
| type = | | type = | ||
| source = | | source = | ||
| source2 = | |||
| source3 = | |||
| source4 = | |||
| pdf = | |||
| libgen = | |||
| audiobook = | | audiobook = | ||
| defaultsort = | |||
}} | }} | ||
</nowiki> | </nowiki> | ||
| Line 86: | Line 103: | ||
"required": true | "required": true | ||
}, | }, | ||
"author": { | "author": { | ||
"label": "Author", | "label": "Author", | ||
| Line 122: | Line 138: | ||
"source": { | "source": { | ||
"label": "Source", | "label": "Source", | ||
"description": "URL of the work", | "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", | "type": "url", | ||
"suggested": true | "suggested": true | ||
| Line 145: | Line 173: | ||
}, | }, | ||
"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 151: | Line 179: | ||
}, | }, | ||
"published_location": { | "published_location": { | ||
"label": " | "label": "First published location", | ||
"description": "Location the work was published", | "description": "Location the work was first published", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
| Line 177: | Line 205: | ||
"description": "The language this work was translated from", | "description": "The language this work was translated from", | ||
"type": "string" | "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" | |||
} | } | ||
}, | }, | ||
| Line 191: | Line 249: | ||
"publisher", | "publisher", | ||
"published_date", | "published_date", | ||
"published_source", | |||
"published_location", | "published_location", | ||
"edition_date", | "edition_date", | ||
| Line 196: | Line 255: | ||
"isbn", | "isbn", | ||
"source", | "source", | ||
"source2", | |||
"source3", | |||
"source4", | |||
"edition", | |||
"pdf", | |||
"libgen", | |||
"audiobook", | "audiobook", | ||
" | "summary", | ||
"defaultsort", | |||
"image_upright", | "image_upright", | ||
"image_alt", | "image_alt", | ||
| Line 203: | Line 269: | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
</noinclude> | |||
Latest revision as of 19:24, 23 May 2026
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Title of the work | String | required |
| Image | image | Book cover | File | suggested |
| Caption | caption | Caption of the image, usually for information about the edition of the cover | String | optional |
| Author | author | Author of the source work. No need to add link brackets [[ ]], the infobox checks for it. | String | required |
| Written in | written in | Date or period the work was written | Date | suggested |
| Spoken on | spoken on | For speeches, the date it was spoken on | String | suggested |
| Translated By | translated by | The translator(s) who translated this work | String | optional |
| Original Language | original language | The language this work was translated from | String | optional |
| Publishing house | publisher | Who published this edition | String | suggested |
| First published date | published_date | Date the book was first published | Date | suggested |
| First published source | published_source | The document, book, newspaper where it was first published | String | suggested |
| First published location | published_location | Location the work was first published | String | suggested |
| Edition | edition_date | When was this edition printed | String | suggested |
| Type | type | Type of work
| String | suggested |
| ISBN | isbn | ISBN number of the work | Number | suggested |
| Source | source | Where the text was found (book, collection, etc.) | String | suggested |
| Second source | source2 | In case the work has multiple sources | Unknown | optional |
| Third source | source3 | In case the work has multiple sources | Unknown | optional |
| Fourth source | source4 | In case the work has multiple sources | Unknown | optional |
| Edition | edition | no description | Unknown | optional |
pdf | URL of a PDF of the work | URL | suggested | |
| Libgen | libgen | Link to the work on Libgen | URL | suggested |
| Audiobook | audiobook | URL of an audiobook reading of the work | URL | suggested |
| Summary | summary | Adds a summary, which is used by external templates | String | optional |
| Default sort | defaultsort | Adding main sorting term for categories | Unknown | optional |
| image_upright | image_upright | no description | Unknown | optional |
| image_alt | image_alt | no description | Unknown | optional |
| image_size | image_size | no description | Unknown | optional |