More languages
More actions
(Forte moved page Template:Library work to Template:Library infobox work: More evident name for what it is, left a redirect) Tag: New redirect |
(switching Library Work and Library Infobox Work (first was redirect, second was template: now switched)) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | {{DISPLAYTITLE:''{{{title}}}''{{#if: {{{author|}}}| ({{{author|}}})|}} }} | ||
{{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 in | |||
| data2 = {{{written in|}}} | |||
| label3 = Spoken on | |||
| data3 = {{{spoken on|}}} | |||
| label4 = Publisher | |||
| data4 = {{{publisher|}}} | |||
| label5 = First published | |||
| data5 = {{{published_date|}}}{{#if:{{{published_location|}}}|<br/>{{{published_location}}}}} | |||
| label6 = Edition | |||
| data6 = {{{edition_date|}}} | |||
| label7 = Type | |||
| data7 = {{{type|}}} | |||
| label8 = ISBN | |||
| data8 = {{{isbn|}}} | |||
| label9 = Source | |||
| data9 = {{{source|}}} | |||
| label0 = Audiobook | |||
| data10 = {{{audiobook|}}} | |||
}} | |||
<noinclude> | |||
How to use this template: | |||
<nowiki> | |||
{{Library infobox 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 = | |||
}} | |||
</nowiki> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"title": { | |||
"label": "Title", | |||
"description": "Title of the work", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"_subheader": {}, | |||
"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": "URL of the work", | |||
"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", | |||
"description": "Date the book was first published", | |||
"type": "date", | |||
"suggested": true | |||
}, | |||
"published_location": { | |||
"label": "Location published", | |||
"description": "Location the work was 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 | |||
} | |||
}, | |||
"description": "Adds a small infobox with information for Library works", | |||
"paramOrder": [ | |||
"title", | |||
"image", | |||
"caption", | |||
"author", | |||
"written in", | |||
"spoken on", | |||
"publisher", | |||
"published_date", | |||
"published_location", | |||
"edition_date", | |||
"type", | |||
"isbn", | |||
"source", | |||
"audiobook", | |||
"_subheader", | |||
"image_upright", | |||
"image_alt", | |||
"image_size" | |||
] | |||
} | |||
</templatedata></noinclude> |
Revision as of 17:54, 29 September 2023
Library work |
---|
How to use this template:
{{Library infobox 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
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 |
Publishing house | publisher | Who published this edition | String | suggested |
First published | published_date | Date the book was first published | Date | suggested |
Location published | published_location | Location the work was 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 | URL of the work | 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 |