Template:Library infobox work: Difference between revisions

Template page
No edit summary
No edit summary
Line 20: Line 20:
|  data1  = {{#ifexist:{{{author|}}}|[[{{{author}}}]]|{{{author|}}}}}
|  data1  = {{#ifexist:{{{author|}}}|[[{{{author}}}]]|{{{author|}}}}}


| label3 = Written in
| label2 = Written in
data3 = {{{written in|}}}
data2 = {{{written in|}}}


| label4 = Spoken on
| label3 = Spoken on
data4 = {{{spoken on}}}
data3 = {{{spoken on}}}


| label5 = Publisher
| label4 = Publisher
data5 = {{{publisher}}}
data4 = {{{publisher}}}


| label6 = First published
| label5 = First published
data6 = {{{published_date|}}}{{#if:{{{published_location|}}}|<br/>{{{published_location}}}}}
data5 = {{{published_date|}}}{{#if:{{{published_location|}}}|<br/>{{{published_location}}}}}


| label7 = Edition
| label6 = Edition
data7 = {{{edition_date}}}
data6 = {{{edition_date}}}


| label8 = Type
| label7 = Type
data8 = {{{type|}}}
data7 = {{{type|}}}


| label9 = ISBN
| label8 = ISBN
data9 = {{{isbn|}}}
data8 = {{{isbn|}}}


| label10 = Source
| label9 = Source
data10 = {{{source|}}}
data9 = {{{source|}}}


| label11 = Audiobook
| label0 = Audiobook
| data11 = {{{audiobook|}}}
| data10 = {{{audiobook|}}}


}}{{#ifeq:{{{display_title|}}}|yes|{{DISPLAYTITLE:{{#if:{{{title|}}}|''{{{title}}}''|''{{PAGENAME}}''}}{{#if:{{{written by|}}}|, by {{{written by|}}}}}}}}}<noinclude>
}}{{#ifeq:{{{display_title|}}}|yes|{{DISPLAYTITLE:{{#if:{{{title|}}}|''{{{title}}}''|''{{PAGENAME}}''}}{{#if:{{{written by|}}}|, by {{{written by|}}}}}}}}}<noinclude>
Line 140: Line 140:
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
        },
        "publisher": {
            "label": "Publishing house",
            "description": "Who published this edition",
            "type": "string",
            "suggested": true
        },
"published_date": {
"published_date": {
"label": "First published",
"label": "First published",
Line 153: Line 159:
"suggested": true
"suggested": true
},
},
        "publisher": {
            "label": "Publishing house",
            "description": "Who published this edition",
            "type": "string",
            "suggested": true
        },
         "edition_date": {
         "edition_date": {
             "label": "Edition",
             "label": "Edition",

Revision as of 19:00, 10 July 2023

Library infobox work
Spoken on{{{spoken on}}}
Publisher{{{publisher}}}
Edition{{{edition_date}}}

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 = 
| display_title =
}}

Add "yes" to parameter "display_title" to produce a page title in the format: Title of work, by Author

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
Full display titledisplay_title

Adds title in style "Work (in italics), by Author"

Example
Write "yes" to activate the title styling
Auto value
Stringsuggested
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional