Template:Library infobox work: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{#if:{{{title|}}}|''{{{title}}}''|''{{PAGENAME}}''}}{{#if:{{{author|}}}|, by {{{author|}}} }}
{{Infobox
{{Infobox
| bodyclass = vcard
| bodyclass = vcard
Line 47: Line 49:
| data10 = {{{audiobook|}}}
| data10 = {{{audiobook|}}}


}}{{#ifeq:{{{display_title|}}}|yes|{{DISPLAYTITLE:{{#if:{{{title|}}}|''{{{title}}}''|''{{PAGENAME}}''}}{{#if:{{{written by|}}}|, by {{{written by|}}}}}}}}}<noinclude>
<noinclude>
How to use this template:
How to use this template:
  <nowiki>
  <nowiki>
Line 68: Line 70:
| source =  
| source =  
| audiobook =  
| audiobook =  
| display_title =
}}
}}
</nowiki>
</nowiki>
Add "yes" to parameter "display_title" to produce a page title in the format: ''Title of work'', by Author
<templatedata>
<templatedata>
{
{
Line 119: Line 119:
"description": "URL of an audiobook reading of the work",
"description": "URL of an audiobook reading of the work",
"type": "url",
"type": "url",
"suggested": true
},
"display_title": {
"label": "Full display title",
"description": "Adds title in style \"Work (in italics), by Author\"",
"example": "Write \"yes\" to activate the title styling",
"type": "string",
"autovalue": "",
"suggested": true
"suggested": true
},
},
Line 188: Line 180:
"source",
"source",
"audiobook",
"audiobook",
"display_title",
"_subheader",
"_subheader",
"image_upright",
"image_upright",

Revision as of 00:53, 28 September 2023

{{DISPLAYTITLE:Library infobox work

{{Infobox | bodyclass = vcard

| abovestyle = padding-top:0; padding-bottom:0;

| above =

Library infobox work

| subheaderstyle = font-size:100%; | subheader =

| imageclass = logo | imagestyle = padding-top:.4em;padding-bottom:.3em; | image = | 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 =

| label2 = Written in | data2 =

| label3 = Spoken on | data3 =

| label4 = Publisher | data4 =

| label5 = First published | data5 =

| label6 = Edition | data6 =

| label7 = Type | data7 =

| label8 = ISBN | data8 =

| label9 = Source | data9 =

| label0 = Audiobook | data10 =


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

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title of the work

Stringsuggested
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

Stringsuggested
Written inwritten in

Date or period the work was written

Datesuggested
Spoken onspoken on

For speeches, the date it was spoken on

Stringsuggested
Publishing housepublisher

Who published this edition

Stringsuggested
First publishedpublished_date

Date the book was first published

Datesuggested
Location publishedpublished_location

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

URL of the work

URLsuggested
Audiobookaudiobook

URL of an audiobook reading of the work

URLsuggested
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional