More languages
More actions
m (Reverted edits by Ledlecreeper27 (talk) to last revision by Forte) Tag: Rollback |
(Added automatic default sort and parameter for it in case it needs adjusting) |
||
Line 60: | Line 60: | ||
| label14 = Audiobook | | label14 = Audiobook | ||
| data14 = {{{audiobook|}}} | | data14 = {{{audiobook|}}} | ||
}}{{#ifexist:Category:Library works by {{{author|}}}|[[Category:Library works by {{{author}}}]]}}<noinclude> | |||
}}{{#ifexist:Category:Library works by {{{author|}}}|[[Category:Library works by {{{author}}}]]}}{{#if:{{{defaultsort|}}}|{{DEFAULTSORT:{{{defaultsort}}}}}|{{DEFAULTSORT:{{{title|}}}}}}}<noinclude> | |||
How to use this template: | How to use this template: | ||
<nowiki> | <nowiki> | ||
Line 216: | Line 217: | ||
"type": "url", | "type": "url", | ||
"suggested": true | "suggested": true | ||
}, | |||
"defaultsort": { | |||
"label": "Default sort", | |||
"description": "Adding main sorting term for categories" | |||
} | } | ||
}, | }, | ||
Line 245: | Line 250: | ||
"image_size", | "image_size", | ||
"summary", | "summary", | ||
"published" | "published", | ||
"defaultsort" | |||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 12:01, 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_source = | published_location = | publisher = | edition_date = | type = | source = | source_url = | pdf = | libgen = | audiobook = }}
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 | 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 | optional |
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 |
Source URL | source_url | URL where the text can be accessed (not PDF) | URL | suggested |
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 |
_subheader | _subheader | no description | 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 |
Summary | summary | Adds a summary, which is used by external templates | String | optional |
published | published | no description | Unknown | optional |
Default sort | defaultsort | Adding main sorting term for categories | Unknown | optional |